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 Sonic the Hedgehog (Fixed And For All Ages!)
by ProGummy1
-

Gamer but Dave & Tristan
by cs2116171
-

Angry Birds Re-Scratched
by Bioshy_2012
-

Stupid unary??
by 492Oc
-

slither.io v1.13 (#1)
by griffpatch
-

I know all of these
by Pierrot2030
-

Sprunki oc real remix
by loren223355
-

Scratch Shorts Season 6 Episode 8 | Robert's Skateboard
by JBurgers87
-

BFDI fastest
by Himper_SILLY123
-

Beat Up Talking Pierre Free remix remix
by doddwell
-

Endless Russian With A Bit Of Style
by arithegr33k
-

Car Anatomy² 09 Chevy silverado 1500 (this is going to be a build series) remix remix-7
by RATCHET135
-

The Triagonal Song
by billysackboy
-

Make an iPhone App remix!!
by Mughead_Cup
-

Solar System Builder v3.7
by scratchscope11
-

Sonic Adventure 2D Scratch
by SuperStarScratcherCC
-

A Better Talking Nano
by KGcodeclub
-

old beat up game i never finished
by PK_Fire75
-

Add a Button to Beat up Cat [3] remix remix remix remix remix remix remix remix remix remix
by pstrayer
-

TPOT ReAnimated Intro With old assets
by MeowMeow2500
-

DRIFT CHASE v1.2 [ENTRY] #Games
by FreNZyFIRE
-

Windows Vista Crazy Error
by Nicolasf1109scratch
-

Beat Up Kirby Complete
by Codeyoshi_6
-

Paper Minecraft v1.20 remix
by NATE20149