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
-

ゴンザレスから逃げろ‼︎ ver1.50
by takadora3
-

Beat up stars 2
by GhostFactor333
-

Robot Destructor ☁ PVP v3.0 [DEMO]
by --Styx--
-

Incredibox - Sprunki but it’s from sprunki 3D rp
by Asprunki
-

beat up penny bleat (demo 3)
by thesecretsussy
-

Paper Minecraft v11.7 (Minecraft 2D) remix-2
by NikLouis
-

How a tornado forms WIP
by hshaffer2378
-

小田急駅メロ集
by upa-sho
-

BFDI: Your Way mobile remix
by vladcrb17
-

Blue Lock Heroes v5.4
by rdyyfuygyfuy
-

not quite finished (paper minecraft version)
by shaunkirbyvoid
-

Para @russellhtf
by Pacuddlesfan
-

Flyin' Back
by cheekybubba5
-

Mario Party + Scratch (zqsd) (fr)
by kbcrafts
-

Shucks but scratch 12+ wip 5
by CJJR-GOD-777-OG
-

Numberblocks Sandbox Game: Thirties Edition
by yellowmacdog345
-

Fnf Kapi but i added black out arrows
by dminecart88
-

Henry stickmin : Regaining the airship V.1
by naruto_arv
-

マリオカートっぽい!?プラットフォーマー!!9!!
by sgihyt781
-

Talking ellie
by 777shark
-

More beat up characters
by tatatino150
-

SPARTANS VS ELITES
by Empirekid
-

Qserf meme 1
by fusioncrazy17
-

アンサイクロペディア:風が吹けば桶屋が儲かる
by kwods