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 zombie cuz he in your house remix
by iangoku
-

Ultimate Custom Night
by Joker0220
-

Plants vs. Zombies (PVZ) V1.4 remix
by germgamerz
-

DVD run
by ElKu3005
-

Portal 2 - Want You Gone
by HannahBearNYC
-

Talking Tom and Ben News Brawl Stars EDITION V1.6
by Vovavovavovavovavova
-

how to beat up the past
by Dish_2
-

パズドラ
by naritaku
-

Klasky Csupo 2002 Remake BIG SCREEN
by lolsmonster321
-

Sonic 3D Blast: for Scratch!
by Sonic-The-Hedgehog-_
-

ねこジャンプMAX -Mighty Cat Adventures-
by waremegane
-

ʀʜʏᴛʜм
by so-se_san
-

abby hatcher gets cancelled remix
by edward955acount
-

Stingy text to speech remix
by amongus-red4
-

FNF - Sonic EXE 2.0 IDK
by coolsonicfanboy23
-

FNF Mickey Mouse Vs OSWALD
by thebig95739
-

Hooked v1.02
by KarivanaButReal
-

Apple Watch Ultra
by sumgy
-

Beat Up Z
by aaroncrist7
-

updated?
by Simlleryger
-

Number block two dancing
by Mario_6000
-

All My Fellas by Classroom_GD | Geometry Dash Revamped (GD 2.2)
by Classroom_GD
-

Preview 2 Scratch Cat In Chorded + G Major 2015
by gamerboy1228
-

Beat up Scratch Cat (1)
by gulkd2023