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! Four (BFDI)
by MarcIglesiasLinares
-

Preview 2 Scratch Cat in Super Duper Low Pitched remix
by iminherenow
-

Geometry (Pig) Dash v1.1
by chipm0nk
-

the flash
by gabeadams4-2033
-

Beat Up ANDREIA: Community Edition! remix remix
by andpsaid
-

SPRUNKI WITH OC remix-3 remix remix
by scratch8060
-

Minecraft multiplayer
by Jai_Friki
-

windows 10 10074 crazy error
by nihaelmannukadan35
-

For CrazyBFDI beat up yo
by janeeva072116
-

Rabbids Dash! 2.0
by Iamyee2222
-

Bloxburg Klasky Csupo News Guy
by Gaebzianreturns
-

Geometry Dash (DASH!)
by mario_rr11
-

Alphablocks Intro backward and forward effects
by milldell
-

bfb recovery center (alpha)
by BlueBlurHedgehog
-

Make your own BFDI-BFDIA!
by Davidola8
-

Land || A Mobile Friendly Platformer
by -Quanx-
-

(V0.7 UPDATE CANCELED) Barney Error Maker (Axel Edition)
by axelthegdkidl839
-

Beat up bfb marker version 0.1
by SBAgamer2048
-

Joe's Bizarre Game 2 V1.0
by thebigUWU
-

DANGER Platform v4.6|| #games #all #mobile friendly #platforms
by scratchguy599
-

BFDIA: HPHPRCC
by Zebu-out-of-Context
-

Numberblocks Generator
by AngelOneTheTeddy
-

Bfb recovery center v1.1
by bfdigameboy101
-

We Become What We Behold 3D Demo
by mirksle