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
Appel Pro 5.3
by IHENOOB
AY: in flying game [remix: 0 | players: 6]
by mars_2015
A bar song - Shaboozey remix
by fluffykitty35669
Numbericons 1-4000
by jayden2015paul
Roll or Die - Rockit Music
by radi0wav3z
My Teardrop 2009
by Sm64Guy
hypnotizing shrimp!!!!!!!
by wii
They do from pbs kids dash and dot
by WilsonBanks
Mario Invaders!
by atomicmagicnumber
King of the Hill v2.0.0
by SirBuildsALot
make your own bfdia remix
by Dmack881
̷D̷r̷i̷v̷i̷n̷g̷ simulator 2 | #All # Games
by Moon-player
JSAB 2 Recreated - Part 2 #Games #JSAB #Bossfight #Agrobacter
by phcarson
KyleWare: Twisted! Erase file
by CZGamesandshows
Multiplayer Super Mario On Scratch #all#Games#Stories
by GunaSwaminatan
Saus beat up button
by Rileyroo2011
FNF Vs Sonic. exe V3.0 || Too Slow Encore (Updated)
by Boyfriend_2022
Add yourself/ your oc singing Sprites in the Night (0)
by Pup_Music
Beat Up Pico
by AyraTheUwUKitty347
Added Pony Calf Poult And Foal
by Dionellbebe2
I'm on observation duty 1.2
by Sam_is_cool2011
Fifa 23 Pack Opening Simulator!
by FUTSync
SURVIVE TITANIC SINKING v2.0 #titanic #baovinh1028 #game #all
by BaoVinh1028
AY in WarioWare [Remix 11: Players 23]
by Cyanwisp79