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
-

Russian alphabet lore vectors by dumbwaystodieinrio
by Pierrot2030
-

Beat Up Edward Extreme
by Tyler-Time
-

RNG gods [sols rng] Era 1
by BlazingdreamsB4Home
-

Add yourself beating up Sonic! remix
by kubakoodziejczak
-

Beat up Sonic (1) 4remixs at once remix
by kubakoodziejczak
-

Escape cat (hard mode is being updated yay :3)
by taecatdo
-

Add Yourself watching a movie (3)
by tobiasthescratcher_2
-

FNAF UCN
by Rybags20000
-

New Scratch City Subway Blue Line.
by southen_mate05
-

Talking Tom Band 31-32
by JLLeonScratchy
-

Wither storm engender
by sprunki_oc_hkjr
-

BFDIA 18 + 25 Cake at Stake Intro
by 404_on_Scratch
-

Metropolis Zone (Rock Version) - Sonic the Hedgehog 2
by CDTheHedgehog
-

lost sky Geometry Dash ! level demon fun10/7 #all #game #games #geometry dash #lost sky
by taira__haru2
-

Zombie Defense
by PapaPierrePizza
-

Undertale Bad Time Trio IT'S THE HUMAN
by 0111288
-

Super Mario World
by wesleyparker2010
-

Astro Ria Plus Logo Animation (TF! Edition)
by TF1AndAstro12123
-

beat up 4 V1.5
by Kaizo_Kolors3333
-

Beat Up 1 The Noom [21] (Final) But there some changes
by ismiiboy
-

Friends To Your End
by sonohii
-

beat up monkey!!!!!!! (not curious gergoe)
by JonDoe128
-

add a button to beat up four remix copy copy
by Lestat1025
-

After Hours [v0.1]
by CJSkitss