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 Nightshift (Observation Duty)
by Red_Scarecrow
end event (Add Round 3)
by earlham11
Beat Up evilbross Reboot
by lukemanolopoulos8
FLUSH THE TOILET
by spaceplayer_
SQuake Ver1.5
by SMG_Scratch04
Awesome SPRUNKI DELUXE SONG
by awesome-plush
Carlos’ Spanish Alphabet Lore sound effect (A-Z)
by Carlos_AltAccount
YGL Black Hole V2 Add Round 30
by YGL2K14copy2
ロマンスカーがはしる
by jaiannn
Yearblocks band 1996-2000!!!!!!!!!!!!!!!!!
by donati-027
Super sledge
by munkeeb
heat cat (better version)
by Lenny12121
Five Nights at Freddy's
by SwimmingGecko101
Beat up Four 3!!
by _mespritsinnoh_
Rede Globo Yoshi's Island Saindo-do-ar (1979-1985)
by Mariofans1981
The mine song but its ruined
by firefloss20
Griffpatch soundboard mini sparta remix
by SleepyGamerYT
FNF - Among Us Mini Crewmate remix
by Gam3r7777777
Lego angry birds level creator
by Danny-remakes
Windows 8 Beta 1.0.2 remix
by marti1902
Death lives
by therat20
Beat up й 4.1
by jojocon657
Old Vyond Effects Kit
by xanderafa
Among Us! Online and mobile Alpha v0.2.1
by awsomeezra88