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
-

wii menu fixed
by leon_237
-

Pendrive FNF Test
by 1-3_4
-

Russian Alphabet Lore Platformer (Remastered)
by DwtdirBackIs
-

Genocide Omega Flowey Fight V1 (W.I.P)
by Thiago20221516
-

= Super Mario Bros but on Scratch =
by ronaldra0914
-

Pac-Reggie (Old Ver.)
by TheArcade-Man
-

面白い画像100連発!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
by honndaltuti
-

Incredibox - Dandy world
by kaydenburgess12
-

A Oh My God Bueno use turbowrap
by XavierRDL
-

Windows edit
by N1kita215
-

SAME!
by 155Jose
-

the endless reader show episode 2: milk
by Tvokids_D_Returns
-

Dashie Csupo (Klasky Csupo Parody!)
by ColePretzelHayes
-

Destroy All Aliens
by Yello
-

mappy game
by bball9211
-

Sticky Situation :: v1.2 :: #games
by LilyMakesThings
-

Numberblocks Band Hundredths 23
by Windows11Scratch470
-

sky ボールころころ9
by skyblueball2
-

RED OS 7 Desktop System
by scratching_claws
-

Master Card 71
by MasterCard71
-

Cuphead Moonshine Mob Boss Fight
by NinjaBenM
-

Make your own BFDI
by Stickman_Studios_22
-

Make your own BFB / TPOT Mobile
by Bfbnosplit
-

Beat Up Sid Phillip (6)
by everton_trader