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 2 (2) remix
by jace1809
-

Numbers 1 to 1000000 Inspired by Numbers Tada (100 Fonts Soundtrack Music)
by matthewlin1013
-

Sprunki 1996 Free Fun [incredibox]
by dani0913
-

PS2 yayy (update)
by Milanovv
-

I know all of these
by Pierrot2030
-

3D Gmod Update
by Dubby4321
-

Hey Duggee - The Days of the Week Badge (VECTOR LOOK)
by DeanUnketnetter
-

cube root numbers band 15 - 16 for sj
by infinityruan
-

TheDisback New Comunity Event: Elementibox Remodel
by TheDisBack
-

Beat Up Sky remix remix
by everton123E
-

Lancer and Dominator 3 vs EF-3??? tornado. Episode 2 S1
by sonicviktor
-

JJK RP: Infinite Shrines Sign Up!
by DaBalla182
-

Extended JumpStart Band 1
by KMJF_2015
-

すごいたたかい すくろーる
by kanto254
-

Fidget Spinner game remix
by coolkittykittykitty
-

Beat Up Peppa Pig
by hk3botiMLG
-

-<[{(Collabs)}]>- talking tom and ben news HD v2 remix-2
by gerofernandez
-

TurboWarp Server Multiplayer Star Wars 3D
by theanonymousweirdo
-

KyleWare: Ultimate Microgames! (err, its no way to have kururin) remix
by GFFHGJGHDGJHBCFLJH
-

Drawing Morpher
by Dinosu
-

Windows 7 virus Game v1.1 #games
by Jupiter013
-

東方三日月夜 〜 Lost myself EXTRA
by Tokoyo_mituki
-

Just try to beat up Shadow Epic ! ver1.01
by dfg287
-

Plants Vs. Zombies. My edition.
by SamuelReedOliver