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
Beat Up Kars (6)
by GooleSharty122
The Studio Doors of Numbers (23)
by -Multinia-
Beat Up Cat belle 2
by lukemanolopoulos8
My Super Mega Extremely Ultimately Biggest Effects Kit Ever!!!
by Lateone12
Beat up Black if you hate he
by Theodoro_gamer
PBS KIDS Jump rope but dot sings boom boom boom
by NumberblockFaner303
Ay Black Hole Add Round 2
by Leoox2015
A Dance of Fire and Ice (ADOFAI) remix-2
by 121cristina
incredibox Yubin Niiku remake
by Deathacesion14
Mario kart world! (took me 3 months)
by thetig4
Geek xp 4.0 crazy error maker
by Areo7Royale
Super Mario Bros. remix
by cheetah-plays
Barney Error Game v1.2.5b (Official)
by MMRE7815
Chrome Fidget Spinner remix
by lewtimur
Guitar Hero 3 Online
by bryceman
Beat Up Book v2.4.2 (UNFINSHED)
by StereoupV4VOCODEX3
【#10】ᴡɪɴᴛᴇʀ ᴘʟᴀᴛғᴏʀᴍᴇʀ
by AXTUKUN
Wack Man "Pac Man But Not
by leandrewss
Beat Up Unlimited scratch cat D.I.E. remix
by Traw2016
30 minute timer
by jsmithgaming751
Whirl Airplane
by theultraguy
Base 6
by rii12g
colour your background
by Zen
talking tom and ben news (1)
by GooleSharty122