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
-

Scrolling Platformer test (looks easy, is hard)
by davidkt
-

beat up elmo.exe
by Lestat1025
-

New UKTV rebrand, this is NOT a drill remix
by jjones27026
-

Jester Mod ☁️ Among Us Scratch v0.27 (online)
by pbps2666
-

Multiverses Combine 4: Thunder Chaos (21)
by noob_boy1234
-

Klasky Csupo Vs Klasky Opusc
by JoshuaTorres30
-

Paper Minecraft
by katariyar
-

BEAT UP ELMO remix
by Shamiir
-

HELP_tale photoshop flowey (MY TAKE)
by IsaacMan2016
-

BF Generations FNF Test
by Pro376978
-

Klasky Csupo Logo Scratch
by TheAmazingPlayer_2-0
-

miss henry steals Powerade/GROUNDED remix
by Petar1928Serbia
-

Endless Music Kit (+Added Songs) remix
by chrisdberry
-

talking friends - Boss Rush! remix
by ronincianconnors
-

[TSDoN-10 | 1090] -+★• ȶɦɛ ֆȶʊɖɨօ ɖօօʀֆ օʄ ռʊʍɮɛʀֆ ◆ քǟʀȶ 10 •★+-
by KTF_OFFICIAL
-

The Numberblocks Game a cookie symbol lore remix
by AvocadoChips16
-

Make your own BFDIA/IDFB + BFDIA 5B CAST
by sajand888
-

Windows clicker
by und3rf4n
-

The Mine Song But the letter "i" dosen't exist
by fishu4
-

Elemental Playground!
by Thebenjiball
-

3D Engine + Map Maker
by prodforer
-

Numberblocks Basics All Jumpscares (NEO)
by happy122111
-

(for peggraz51) Beat up Motato
by tatatino150
-

Forest In The Bear Hunt
by GalaxyBoy14169