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
English Alphabet remix
by kendellgrady
Thingbox V4: Feugebrokier (Reupload)
by mikey_mike
Beat up Four
by FinneganThao
TFH Memes Part 1
by A-MARIO-PLAYER
Numbericons 1-2200
by jayden2015paul
HollowTale sans simulator. but with damage
by DustSans1991
WarioWare Gold Microgame Template (Improved)
by RFGuy1378490
Beat up Edward DLC Remastered remix-3
by guarner2024
Beat Up Talking Tom Cat 5: THE SEIZURE MAN!!! (0)
by RGYBProductions
what if anglow on mech islet
by Fadzilla
Fire in the hole!
by ArtKhu
My Favourite Skins
by norbu123321
Super Mario Bloopers 9 (part 1)
by logray
Gacha Dress Up - Alien Party!
by huagoose
Green Empire.EXE Button 57!!!!!!!
by IpadUser555
Super Mario Scratch(WIP(V2))
by 8165718568
✧✨❖確率3分の1?!SNOW-Platformer❖✨✧
by Subaru_Raimu
"RGB color code×Sprite"program
by R1NFJHS2103_1
Numberblocks sad
by superneonbros
Numberblock 2 Becoming Uncanny "you drived".
by arcadestuff
BEAT UP THAT VEGAN TEACHER
by Bonin675
Angry Birds (Beta)
by ScratchCoder1890
[ * ALPHATALE * ] - Error 404 sans simulator
by fredbeargamingbros1
Deluxe Digital Studios (2006-2016)
by saulosergio2017