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
-

Clock
by Gladius247
-

dmca peppino vs debbug0
by DominicIsNOTsus
-

(FIXED) Old Contender Entertainment Group Logo Vector
by logosfan12
-

Beat up Pocoyo 2.75 remix
by Draven1205
-

Add A Button to Beat Up Ñ (27)
by Salamander123isback
-

Add yourself watching a Movie!
by KicketyTheKickBall
-

Paper Minecraft speed run (2D) mod
by Goofyahh_kid123
-

remix and add a button to beat up garfield! [2]
by tiziland009
-

My Singing Monsters: Fusion Plant Island
by MSM_YSM
-

MY Talking Tom 2 Reboot!
by Wendel2022
-

Tree mosiac
by mathmachickn
-

Chalkboard Clock
by jayboy2089
-

Image band 7 7a
by Lucianedaghetti
-

Dodge SRT Charger Hawk 1200+hp speedometer remix
by Dodgekid9017
-

Add a button to Beat Up Nano! [5]
by Super_Isaac_64
-

Magic Tiles 3
by unikittygirl345
-

Mario buys a nintendo switch game
by GaleemDharkon
-

Slider V1.4.5 (DEMO)
by -PixelBeast-
-

OH, MR MAYOR IM MAKING A LIST IM A BAAAAASEBALLLLL
by dublexygamer
-

Pac-Mania Arrangement
by james_waring
-

Beat Up Bowser remix
by 12tyyt
-

Beat up Shelley Bain Deluxe (REUPLOADED)
by TheLatinScratcher
-

☁Battle Arena Online☁ [マインクラフト バトルアリーナ!]
by hayatiburusu
-

Mario Tennis: Rally Challenge
by MarioFan3629