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
-

talking tom and ben news everywhere remix
by everton_trader
-

Beat up Edward [More Buttons]
by xanderafa
-

Ami Onuki Hides The Green Screen (Template)
by Josue-Fanboy21
-

Viacom Destroys the 1971 PBS Logo the 2nd Time (FIXED)
by Josue-Fanboy21
-

Cut The Rope Logos Vector Look (Updated) remix
by professor_newton
-

KINEMASTER V5.1.2.34828.GP
by Barry-_
-

Roblox Rivals
by Ilikeroblox890
-

talking tom and ben news 2 v2.5 But i edited it IN HORROR
by jacejim1809
-

Trix Me Once, Shame On You but they're Rainlovicks
by TheDisBack
-

meow
by Mame
-

AY in Block Party! 12 players!
by JonathanRueda1-again
-

minecraft game
by levtheboss17
-

Windows install
by TheCATofSOAP
-

Nano Gets Grounded For Being Last At Swimming Race real voice
by codingrocks9_55
-

Beat up Elmo! v0.6.6
by christywifi
-

Paper Minecraft Bow Update
by kakakaui
-

Scratch Brawl 2
by KillerByte
-

3D Plane Sim w/ Perlin Noise
by Stookalacka
-

The Pillar of Gods v1.18
by WaddleIsGood
-

Free DVD Menu remix
by JaydenCruz33
-

Calling All Mixels.com (Series 2 Update)
by FixerGuy1234
-

Talking tom and ben news 2
by gerofernandez666
-

Meme Soundboard
by TheGamePro24
-

(AY Minigame) Balloon Bang! [Remix: 19 | Players 32 ]
by MPFan2018Scratch