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
-

B (Russian Alphabet Lore)
by kossy897
-

Sonic And Pico fnf test but better? (no mobile)
by PJSmash5
-

Mashupbox V-1 - Others (FANMADE)
by beastyfan
-

Sonic The Hedgehog 3: The Game + Movie For Dreamcast Concept
by ScratchNationalCoder
-

trophy truck
by wynnpants
-

Beat Up Vivi! (Version 0.5 / 8 Buttons)
by newmyles
-

(DON'T REPORT) Evil Nano gives Nano a punishment day/GROUNDED in @PICARO660 style
by nanogetsungrounded16
-

Important note
by NovaShrugs926Rises
-

Pizza tower engine and the underestimated noise
by Adlercobra2
-

Windows 7 windows 8 edicton
by orenci
-

Beat Up Banana Porridge! (18)
by tiziland009
-

The black hole add round 1
by EthanJaime
-

BFDI: TPOT 23 Leak.
by JacknJell1fy
-

BFDIA 23: Shattered!
by NicoCreaciones
-

TIV 2 EF4 LEBANON KANSAS INTERCEPT ANIMATION
by Cyril_T
-

スプラトゥーン / splatoon
by syokaki
-

Klasky Csupo (SM64 Error)
by lolmanxd768
-

Bonus Buttons Spiffy Exe Buttons Park
by kari1213
-

脱出ゲーム
by aoi1011
-

undertale sans phase2
by gojo704
-

sad three my version
by OmegaGolemGame
-

Beat Up Scratch Cat
by EC_Gamer2
-

Beat up Sonic (5)
by mavincraft34
-

Chirpy Reverie Sonic Mod v1.5
by Kairi2022km