Realtime Affine Texture Mapping (WIP) copy

Realtime Affine Texture Mapping (WIP) copy

by DCPU-16

๐Ÿ‘ 6,256 โค๏ธ 239 โญ 190 ๐Ÿ”„ 4
Created: May 30, 2013 Last modified: Jul 23, 2013 Shared: May 30, 2013

Description

UPDATE: Back-ported backface culling. (hohoho) The code includes lots of unrolled loops and duplicated code to save doing things twice or with excessive calculation, so the code is pretty messy. Since this is affine texture mapping, the texturing will look funky when used on perspective transforms (you can see this on the first Playstation). This is the simplest form of texture mapping though, so it makes sense to implement this first. As you can see, this is way too slow to be practical. The framerate could be increased a lot by doing backface culling, which I might copy over from my racetrack project. I'm going to try this on a more advanced model, but it'll probably be a a like render instead of realtime. Credit to Mojang for the grass block texture from Minecraft.

Instructions

Affine Texture Mapping in Scratch. Adjust the distance slider (closer is slower) and Poly Resolution slider. I use the same texture converter as with the Earth Shader: http://dl.dropbox.com/u/12239448/ScratchTexture/index.html Model of Link Imported: http://scratch.mit.edu/projects/10541079/

Project Details

Visibility
Visible
Comments
Enabled

More Cool Projects

Project thumbnail
View Project

Nano Gets Peppa Pig Cancelled/Grounded remix

by AyaanToons

Project thumbnail
View Project

Logo time Beat Up Buttons remix remix remix-2 remix

by German0512

Project thumbnail
View Project

Beat Up Sonic With New Buttons (Early Mid 2023)

by doheodjeoud

Project thumbnail
View Project

Beat Up Nano 2!

by charliechooch101015

Project thumbnail
View Project

UPDATE talking tom and ben news 9 V4 aded all hd remix remix-4 remix remix-3

by bonzi346

Project thumbnail
View Project

Beat Up Funny Valentine (2)

by LGTheScratchfan2011

Project thumbnail
View Project

Beat Up OLEG 4

by lukemanolopoulos8

Project thumbnail
View Project

TVOKids Logo Bloopers 6 Take 2: 21 Bloopers remix

by adewumio

Project thumbnail
View Project

Sprunki oc 113

by TheSwap_Tale

Project thumbnail
View Project

Can somebody help me mutate Nickelodeon Creatures?

by CB3029-X

Project thumbnail
View Project

[HARD] SMB/SMA4 (SUCESSFUL AND BUGGY)

by JuanEn2012

Project thumbnail
View Project

egg dash

by Chopper_is_cute

Project thumbnail
View Project

Scratch Party - Star Scramble v0.0.8.1

by CooperFan5

Project thumbnail
View Project

Garten of Banban 8: Anti Devil - Official Trailer

by King-gamer-bro

Project thumbnail
View Project

beat up molly 1.3.0 remix

by _MadoX_

Project thumbnail
View Project

SIGMA MRL Carpark Elevator

by jc401400

Project thumbnail
View Project

Angry Birds 2!

by ninja-rico-b

Project thumbnail
View Project

Beat up Micky Imposter #all #beat up edward #games #game

by Scratchman2022_no

Project thumbnail
View Project

ๅƒ•ใŸใกใฎๆททๆฒŒไธ–็•Œใ€1่ฉฑใ€€ใผใฃใŸใใ‚Šๅบ—ใ€‘

by yuzucoco507801

Project thumbnail
View Project

Opening to The Sigations 2023 DVD remastred title

by ScoutScratch09

Project thumbnail
View Project

Talking Tom & Ben News ์ž์„

by kimcam012

Project thumbnail
View Project

COSMIBOX P0 โ€“ Moonview โ€“ Remix | "Starlight"

by incredicreepr

Project thumbnail
View Project

Propeller Mario Suit (Animation)

by Falco-Lombardi-2009

Project thumbnail
View Project

Magic Tiles 3 remix

by gozdealsancak