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
the number blocks reband!
by mars_2015
Numbericons 1-2900
by jayden2015paul
Brawl star
by Lokichat21
Sprunked?
by Xurpanrt
This Week in the UFL: Week 10 (2025)
by 3136146
Who took my food (my version.)
by DrBeatrizTF2Gamer
Pac-Man DX (Credit to Bandai Namco)
by funnycarkingfan34
P2SC Scan d minor
by Alexmacwwww
310 Projects.
by MasterZenoUltimate
Beat Up Sonic Again remix remix
by MyCottage
Numbers 1 to 1000 Part 1/10 (Numbers 1 to 100(1 to 50)
by cs4566078
Elevator Simulation v3.0 [BETA] remix remix
by DiKR9000
Super Mario Advanced 4 || A Platformer
by icey-creamy
Solar System Planets and Dwarf Planets
by DAVE79CH8M0RT
FNABH x I'm on a watcher duty Deα΄α΅
by BoXy_1234
Cabin Guide β The Lost City of Mysteria β SRC April '22
by Reva-Scifi_Lover
Find the Circles (164)
by astrocreeper30
Add yourself in BonziWORLD remix remix
by 463student
Uncannyblocks Band All Stars -4 The End?
by macareno85
Beat Up Scratch Cat
by hyd3ns33k
Barney OS (Read notes!) remix
by mazenmalekwael
The Black Hole (Add Round 4)
by earlham11
Endless Reader Fox Wolf And Kangaroo
by NumbersGuy789
Wii Menu
by PeeuaAlphabetLore