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 Isaac Mii Remastered [2]
by supermariojoseph27
-

New! Super Mario Maker Super Mario Bros. 3 Sounds And Music
by Mario_126754
-

New Looks for My Fanmade 120s (Ft. 130)
by RedDogAssistant2009
-

Osu! Mania V5.6
by IM0_0
-

A Oh My God Bueno use turbowrap
by XavierRDL
-

Talking Tom And Ben News version 10.0.0 but is here
by kikachou
-

Pac & Pal namco arcade
by jrsp
-

fictional tornado interceptor
by TheKINGpenguinN
-

My Spanish Alphabet Lore A and I Diffrent Gemini Al’s
by pook67
-

123qwe
by joshua1234s
-

Talking grey jevin and pluplu
by sharique05
-

ULTIMATE Sprunke template remix
by pocoyoemma
-

Super Pixel Aquarium V 1.5 remix
by sweet-kitten
-

NEOTANK (100% pen)
by VinCrafts
-

scratch musics #music
by PAtech
-

Lemonoid Assets (part 1 & 2)
by griffpatch_tutor
-

bandyBlocks band 2
by puncc
-

RGB - Concept
by MegaKidAxl
-

IF MONEY COULD BUY TIME
by sharkfinsoup1001
-

クリーパーのプラットフォーマー(第一章)v32.2
by sorehaikenaine
-

Talking tom and ben news DELUXE (21th Year Anniversary Special) remix-2
by mateothebb
-

beat up mr bean god editon
by JonDoe128
-

Beat up Scratch Cat (UPDATE 2)
by Kason12271
-

the kirby movie 2 dvd menu
by sonic-billie