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 Me 3
by crazybabybaby16
-

Nuclear reactor meltdown test (RBMK)
by Bad992
-

talking tom and ben news 9: muchos gracias @CatalinaMax2006 remix
by NICKNAME_34526
-

Seadtype V5.6
by crazymilkandres
-

Hill climb racing 2.0 #All#Games#Trending#Popular
by ZAQXS23
-

Pac-Man
by maxk5A
-

Among Us Dash
by Maloof9
-

(most viewed) beat up super why lots of buttons! remix
by coolman-1000
-

UnderTale sans boss fight (mobile)
by renanctrlplay
-

Beat Up Jenny (XJ-9)
by AngryBirdsCreations
-

Snack Time #BobTheAnimatorX #Trending #Animations
by BobTheAnimatorX
-

honda fit speedometer
by maliik999
-

Crafting Craze - Minecraft Game
by 23ScratchMan
-

Basketball!
by Acrion
-

Cat Clicker
by S0cCrePunch
-

Beat Up Pico Ultimate
by zzhhooookk
-

Dateblocks Band 14 Fixed
by dps_second_account
-

talking ginger ON SCRATCH
by Janeczekgorcz
-

Plants vs Zombies DS [v0.1 BETA]
by MasterEpic777
-

Clock! (Analogue/Digital)
by Cheetah_Coder
-

Beat Up Ginger (V1)
by TylerJesse65
-

angry birds friends V2
by macsimus777
-

Samsung logo in G Major 2
by Little_Cat2014
-

Save cat life ! 1 (Normal mode)
by hkmlc151910