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
-

PVZ3 Multiplayer (Prototype V3)
by SomebodylikesMe4840
-

Final Dust Sans Updated. (test project) remix
by amongusman33
-

Outfit7 Talking Tom for Messenger (Realistic lite version)
by lami_scratch
-

тема "Windows 7 Ultimate"
by r5d6dr
-

stampede animals escape from in the ark remix
by kenpot15
-

Beat Up Talking Tom Cat 5: THE SEIZURE MAN!!! (2)
by RGYBProductions
-

Spiderman meme
by TaviDaBest
-

hydrogen.exe in my iPad (FULL)
by Leva_Russian_6156
-

Interactive Endle
by chaparro201777
-

Ay Black Hole add round 2/5
by Ilya2013O
-

Talking Tom & Ben News EXTRAVAGANZA 6!
by KhaleefSyahmie
-

Storm Chasers (100+ views)
by TornadoGirl918
-

連打しまくれ! 連打ゲーム !(世界記録あり)
by aogaku
-

Beat up Spiffy Pictures 2
by Julius250
-

Among Us Platformer!
by atomicmagicnumber
-

音ゲー〔極ノ壱〕
by norumaku
-

Beat up Henry Stickmin Forever V1.9
by Dontec8
-

Updated OC!
by Lasercartoon127
-

アモングアス‼️
by takeru20100523
-

✦ Scratch Party Ultimate ✦ Splatoon 3 Edition
by Rabbidinho
-

Beat up Edward More stuff version 2
by JevonTheOutfit7Beast
-

Beat Up Roblox Noob but the sounds are low qualuity remix
by bluesonic45
-

Add a Button to Beat up Bacon Hair (3) remix
by Batatapo89Rises
-

★★ ȶɦɛ ֆȶʊɖɨօ ɖօօʀֆ օʄ ռʊʍɮɛʀֆ • քǟʀȶ 8 • 837 ɖօօʀֆ ★★
by elliotthenice