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
-

Endless Georgian Alphabet Song
by AnGe-me12
-

Numbers Band 3
by PrincipeJosh
-

Numberblocks But it's date
by ElevenFootballThe31
-

Beat up Edward remix-2
by xmrrileyxx
-

talking tom and ben news part 3
by PRINCESS000000001
-

Cart brushes Amy's hair
by Nonny187
-

angry birds scratch editon
by scratch_cat_123576
-

Bfb intro but made different
by Himper_SILLY123
-

Android 4.2.x incoming call remix remix
by FNFpibbycorrupted123
-

Pentations of 3 band
by nikinik2023
-

terariam
by sanhit123
-

Hyehehe! Shadow Islet Expanded Remixer | My Singing Monsters
by Anuar24
-

beat up SteFan444 Remastered 4
by Macjun12
-

Fidget toys v0.3
by bb6800
-

やるきのない銀河に願いを Unwilling Milky Way Wishes
by silsil_misil
-

Stingy text to speech remix
by Pszczolka_Erina
-

vehicle engine
by fab60
-

Death run online V1.2 [#Games #All]
by maDU59_
-

Sesame Paradise 3 REBOOTED
by LegendaryJoshua13
-

Beat Up Dio New Buttons
by peggraz51
-

Helix Jump Hardcore
by Wisp999
-

Reaction Diffusion
by lolucky
-

Unshared projects are no longer visible
by Bean_man08
-

Fidget Spinner
by yl5135_pluto