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
-

☁ Scratch Chat | Online Chat
by Saber_Z
-

Preview 2 Scratch Cat in G Major 22 by CYRYUSBOI02
by iminherenow
-

IDFB Contestant Generating remix
by monicatoyfan2016
-

あぐぇる鬼ごっこ Online
by pafeiwasi
-

Msoft Windows 2000 Simulator
by Apreskid
-

Beat up Sonic new year remix (FIRST 2025 PROJECT) remix
by kkdc2010
-

PVZ Fusion Generator
by lionelbfb
-

Beat Up Greeny V0.1
by newmyles
-

Learn the letter sounds with The Artistic Alphabet! Unused 8.1
by OmariAhmad
-

Type!
by TOPAZBOA757
-

windows XD remix
by Shamiir
-

Untitled-15
by doddwell
-

Beat Up Bonzi Buddy (Aidenhox remake) remix remix
by doddwell
-

Size comparison 2
by Otterboi777
-

Getting Over It [Griffpatch Remix]
by proprogrammer44
-

【3D】Avoid! 迫りくるハードルを避けろ!100%pen
by hclhcl
-

Wolf and Hare from "Ну, погоди!" are sad.
by ALIHAN10
-

Beat up CHUCK E. CHEESE 3 remix
by CLAX1212
-

Grindcraft 0.745
by EpicClickerZ123
-

Scratch RPG engine
by lioonJ
-

Satisfying patterns...
by minetester
-

映画1-7
by Pikurin
-

Beat Up Squidward 2018 [Add Yourself] ultimate
by sumcaznis
-

mina girl angry laugh
by elrabbid