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
-

Klasky Csupo Meets Ultra Too Many Others
by scratchkid201224
-

no context
by Littlelookie
-

Me when I get the Valiant Hero ending
by LanSkiFlyKid13
-

Ultra Numberblocks Night 2020 Plus reupload
by capatidesmond
-

The Modern Fan Co Altus Flush
by gsluns94
-

Klasky Csupo/ME! remix-4
by Liamcoco1234
-

Anti Piracy Screen Reappearance
by KMJHJHY7I7Y97
-

Paper Minecraft 1.22 - Minecraft 1.22 - English Version
by __cola-coca__
-

Beat Up Me: Ultimate Edition
by funforhappylots
-

Beat Up Super Why but there's way too much buttons! (Now with Pango and Friends Button)
by liamdvdthe2nd
-

AY in 10x10 Crossout Showdown [ Branch 0 | R0 | 10P ]
by cybeville
-

Tix clicker fixed
by Raptors_R_cool888
-

AY In Free-For-All Elimination (Broker and Friends)
by 12727954
-

The Lag Test! (EXTREME LAG)
by nyankatpro
-

peppa tells her friends she beat up johnny test with her cousins
by oddbodsfan
-

FNF - Disruption V2
by Ninjatintin
-

beat up iris the sunny bunny!
by JonDoe128
-

(kind of) Physics Platformer
by Finntastico
-

Windows Vista Crazy Error
by Nicolasf1109scratch
-

Beat up piggy 7
by Batatapo89Rises
-

Taboo!Sans Fight
by inkerrormagic00
-

Preview 2 Scratch Cat In Chorded + G Major 4
by Little_Cat2014
-

Geometry Dash SLAUGHTERHOUSE WAVE remix
by bre2boy
-

1.6 Maze 9 remix Angie Tudon
by A_2385