Realtime Affine Texture Mapping (WIP) copy
by DCPU-16
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
Add MEGA to beat up baby shark!
by zboytheidiot
Algebrailien's world | BFDI:TPOT platformer
by trong_nhan
Super Mario Bros
by Crafting_block
The Cracked Earth
by Jayden_The_Legend07
AY in Fire Ball! [Remix 4 | 37 Players] remix
by Mizumi2011
【拡散希望】Windows10 HOME Scratch
by KS1220Island
FNF | Recovery Center
by rayoflight29
goofy ahh yearblocks band 2027-2050
by Michael266Hut-ec
Sony xperia ZX1 incoming call update
by Ilovescratchanymore
Stingy text to speech READ THE DESC
by TheGucciKId
Dancing Sprites
by emilia_pradocncp
That Girl.. || A Valentines Day Special
by -NerdAnimator-
Forest Remake | Chapter 1
by SDR-
H.A.T.N.O
by Raccoon228
Add a button to beat up scratch cat remix remix remix remix
by CLAX1212
(180TH PROJECT SPECIAL) NumberblocksUltra Becoming Canny To Uncanny (ALL PHASES -10 TO 30)
by NumberblocksUltra
Peppa Pig Gets Grounded China
by baldiii
[discontinued!] Friday Night Funkin v2.9.14 remix
by cobb0000
Cat Adventure 3! Chapter 1 “Cavort Port” #game #all #animation
by cloudy0260
[TNT Mod]日本語版Paper Minecraft v1.2 #game 傾向入り!!! remix
by kureiemu
numberblocks band 64ths 1 - 5
by Santiaze
GOOFY LOMANDO FANGAME
by kanun_s
BEAT UP ROBBER
by mateothebb
[1] II your way
by Boberoni112