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
-

SMPS: Ghost Run (Mario Party Scratch)
by isaiahandrews07
-

PBS Kids Video App
by StrawberryGuy2016
-

Numberblock 1-1000
by jayden2015paul
-

beat up ydjek 91 remix remix
by SamiSamantaG
-

Rendering Engine
by quadruple_door
-

Plants vs. Zombies (PVZ) V1.6
by soccerfifa2025
-

マリオメーカー remix
by kmsw4020
-

Plataforma 360
by hodein2014
-

Beat up Edward DLC Remastered remix
by doddwell
-

Sunken | #games #all #trending
by Stealish
-

Pyoro for Scratch
by EthobubJuice
-

Numberblocks Generator [allowed keys]
by number93893829
-

The Mine Song but it echoes
by doofus6367353
-

Super Mario Online Multiplayer
by Playstation666
-

Talking tom and ben news remake
by Rocking3490
-

add a button to beat up I like ya cut g.
by FireNixelComedian
-

Numbericons 1-1400
by jaydens27
-

Talking ABC Update
by MightyMaximus2526
-

Nyan Cat Game: eating hearts
by OpEnSaDoR
-

Tasty planet 1 Chapter 1 Remake Alpha. V. 1.4
by Arniscom123
-

Peep and The Big Wide World- Hungry Games
by GabiS104
-

Hill Climb Racing v6.4 remix
by mbscratcherpro
-

click the only button available to beat up superwhy! remix-3
by Traw2016
-

Beat Up E
by Joenielads