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
I Added Preview 2 X + super duper low pitched + Something + Super Duper High Pitched
by vtd78_second_account
Geometry Dash GRIEF
by altshiftw
Android 13 Incoming call
by VuQuocViet12
Raycaster E7 Assets
by scratcher743299
Beat Up Stepshape [21]
by newmyles
Oh my li'l baby boy || PANGO and Friends
by Casndra2012
â 1.5k+ art tutorial !!
by _Inkspot_
My KLasKY CSUPO (Late 2025) Is Turning Into The Real KLasKY CSUPO
by MMF75000_Scratch
The Studio Doors of Numbers I - Part II (187oors)
by bfdi041
ć°ć»æšĄæćš
by xx090611
Random Tycoon Thing
by chick_animations
ă€ăă«é»ćč〿ïŒćć Žçăă”ăă©ăŒăŻïŒă ăăăłăźćéșăăăŒăâ€ăç«ăźç„ă
by Sheeptch
VS. Greg Heffley (Wimpy Kid) FNF
by nguyen_gia_thanh
Harry Potter and the philosopher's stone video game
by 123goss
ADOFAI - Neo Cosmos T4 but there are no holds and there's only 2 balls remix
by IDKwat2put4a_name
ăăăă鿿Рâ (Online Platformer) (Some parts WIP)
by fymann_
Every Windows Setup Simulator
by jorgeAGomez
ABEPIC 2 - Early Access 0.4.5 (under maintenence)
by mariolover5678
ç Žæ» ăźăă«ăČă珏äș話ăăăčăăă€ă
by zeronnekoo
beat up rocky 0.1
by hyd3ns33k
PBS Kids Dash Logo Bloopers
by scratchbaby2016
Angry birds level creator
by epic12121
Beat up f remix
by sgtshep161
did 756 (read inside sprite)
by -Matteo8-