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
Spanish Alphabet Lore - A
by thethecreator2ndacc
ABC Lore Song For Kids
by sebas1383
Thomas The Tank Engine (Finnish dub) - Classical Baby: The Art Show - End Credits
by pinkkyjae
TALKING TOM AND BEN NEWS CHRISTMAS 2023 remix
by Cwks20092
Scratch Cat Run Cycle
by ad1406
Dalgona
by captain_haha
Hickory dickory dock scratch 2.0 game broke the clock remix
by eesa1987
Time of Day (V2)
by snake20202020
banana clicker
by lennovic23
fps where you shoot zombies
by pringle_doezstuffs
BFDI/BFDIA intro gone wrong
by _Alphabet_Lore_V
R
by -_-Kirio-Kun-_-
Harry Potter Musical v2.1
by griffpatch
honda fit speedometer
by maliik999
The Studio Doors of Numbers I - Part I (Final!) remix
by Taterbot44
カービィ大戦争 kirby war
by norumaku
BFB Contestant Generator 2 (WIP) ALPHA
by sanjay2133
Bop-It! XT Pass It
by BupDeBup
Ultialphabet Friends: Henry
by letterlanguagessaver
Beat up NEED-TOO DLC Update 2
by YoSoyUnImpostor
SUPER MEGA HYPER ULTRA BEAT UP STUFF!!!
by JPPORTUGAL
The Black Hole Add Round 0 remix
by nihirbarman
roll the dice
by SpeedBee411
THX Parody Movie Theater Party 2 Lovely_YT And Create-A-UserName-27 remix
by amgel14-0