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
-

Banned Messages Soundboard Thingy
by X-332official
-

Beat Up Klasky Csupo! remix
by jace1809
-

Seadtime Font V0.7
by BonesonScratch
-

Conway's game of life V9.8 [featuring Hashlife]
by scratch99911
-

Beat up Krash (use turbowarp)
by puppetchileno
-

Technical Difficulties Please Stand By
by EliScratch0204_
-

Windows Never Released Mockups 1 (Old) (REUPLOAD)
by aykutsrandomstufflol
-

AY: Bubble Trouble [ Remix #10 | 39 Players ]
by saharraza1990
-

30 minute timer
by tornadoyay1
-

New Super Mario Bros. For Scratch
by Brad-Games
-

☁Online freeze tag renewal/オンラインこおりおにリニューアル#games (3)
by pocopocojohn
-

ギョ~転! ガッポリすし / Getting a lot of sushi
by Futureland
-

Miner Cat 4 (Scratch version) HACKED
by yoooCAT
-

Face Raiders 1.0
by helaypersion
-

Add a Button to Beat Up Bacon Hair [4]
by elfrida1981
-

Beat up Klasky Csupo
by newmyles
-

Beat Up Evil Squidward 2 The rise of memes remix
by AlecThai
-

Outfit7 Talking Larry the Bird
by Lunablz
-

Talking 2 And 4 News (Mine) remix-2
by Abramsmom4
-

Endless Alphabet ALARM remix
by abclore5
-

Microsoft Anna: Stomach Growing
by kizulove
-

⚡-Geometry Dash Wave-⚡
by Masteryko
-

Super Mario Mayhem Maker - Mario Maker Crossover remix
by CHEVI13
-

UNIVERSE Size Comparison Remix 1
by SonicDot55