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
-

add a button to beat up nano!! (8)
by crazybabybaby16
-

Wario Land 5, 2
by Wa-Greek
-

Beat up puffball Even Moar remix
by xmrrileyxx
-

PBS Kids Bus
by scratchkid201224
-

My Russian Alphabet Lore Sprite pack
by dwtdir
-

Forgotten Rooms entity maker (update)
by super_sigma900
-

Super Mario 2D Odyssey DEMO
by kidsRus2023
-

Everybody Loves Me // Animation
by DigitalWeirdo
-

Negative Numbers Band 2 remix
by nunyaG
-

ELTIS ц100 td22 с Контроллером Z-5R
by GOLIAFSPB
-

Scratch Tales Season 13 Episode 16: Three New Friends
by MasterZenoUltimate
-

Three's numberblocks mathlink cubes group photo!
by numberblock-3
-

GoofyAaProd’s Universe Size Comparison
by GoofyAaProd
-

Super Mario Bros Adventure®
by ETMBear2015
-

scribbler
by scratchman
-

messing with mine song more
by Whatcouldyousay
-

705第7-2組-蕭裔洋
by ktjh1080510
-

Fnf Sonic.exe v2 you can't run Burst Mechanic
by dminecart88
-

Spiffy.EXE Buttons Infinity
by kari1213
-

バトルバウンド オンライン☁ v1.0.6 remix
by SMG1126
-

playkids band 1 to 9
by chiamason82
-

Beat up Edward but more fun remix remix remix
by FullandER2025
-

Bukvariya dance to the Monsters inc
by jacobzaia15
-

New interactive Spanish Alphabet Lore from wario100 if I made it remix
by ZefunGR