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
-

BEAT UP EVIL SCARTCH CAT (Mobile Friendly) ReUploaded
by NYC_Trains2010
-

лифт кмз
by SAMLIK_123
-

Numbericons 1-1000
by jayden2015paul
-

Ultra Numberblocks Night 2020 (With Old Five Mod) remix
by capatidesmond
-

Numbericons 1-7000
by sprunkigamer23
-

Minecraft v11.7 (Minecraft 2D)
by Vector10002
-

Chess Type beat remix
by red_adc
-

Colours in different languages
by Skrypka_Adzin
-

Super Mario Bros. remix
by cheetah-plays
-

Thingbox V4: Feugebrokier (Remake)
by mikey_mike
-

Slime Ninja
by DarkLava
-

Kick the Buddy remix
by BrickManSam123
-

青の塔18階
by sakaryuu
-

miroqqwy初プラットフォーマー
by miroqqwy
-

A very unexpected adventure in teletubbie land - sds thingy
by GaleemDharkon
-

【モバイル対応】リズムゲーム「rhythm3」
by 1STEP621
-

青鬼 修学旅行編 #1
by huyuga
-

Add a button to beat up scratch cat remix
by Nonee2014rises
-

Scratch Platforms Ultimate (v2.5)
by EditingkittehEffects
-

Friday night funkin vs orange impostor V4.0 the full mod
by 1973346982
-

Beat up Kingdcnt!
by newmyles
-

Bloons TD 6 v3 Full Unblocked (Re-Attempted)
by TheDipler
-

アモングアスかくれんぼオンライン
by peikun90020220
-

add a button to beat up rusty (3)
by dirtotheobjectrises