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
WGBH Kids/9 Story Entertainment/TVO Kids (2010-2011) remix
by henriLindo4
Uncannystart Band Remastered (1-10)
by bau2213
Sesame Street Ending But It's Animated Part 3
by PuchungoLopez
Beat Up 20TH CENTURY FOX Remastred remix
by andpsaid
Oobi escape the evil doll clip 5
by FriedaFan13
Paper Minecraft v11.3 (Minecraft 2D) PLUGGINS BROKEN! remix-5
by Brawlersurgeiscool
Numberblocks Intro But It's 2025 ,Learning blocks Theme Song
by nirvaan2016
Among Us | #All #Games remix
by monit7523032
try to Beat Up Masy... or not.
by BruceDee1
Super Pixel Aquarium remix
by zaid_salahuddin
20th Century Fox becomes 20th Century Studios
by carlosomari78
Snake (with Cloud Leaderboard)
by Nathan98765
BFB Mini Intro (TPOT Style)
by Red_Rain01
Abc Song for AaronLeABC123 And DFRstudio
by Angel45eci
[StoryShift] StoryShift Chara
by Breath_Of_Dust
Geometry Dash: Spam Test Series #1 (Wave)
by wallyt12
Spring - A scrolling Platformer #scrolling platformers
by hamzai20
FNF HD Test Dad
by spierdalajcwelu123
2022 New Year
by Evil_V
Windows 7 Virus 2 (Short) remix-2
by Famous_666
Create A Button To Beat Up X! [1]
by newmyles
HELP_tale OMEGA Flowey (EXTRA PARTS)
by OMEGABOY_224
SAVE CAT!!!
by THECRINGETOAD
The Black Hole (Add Round 8) remix-134 (1000 Projects!)
by earlham11