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
-

Interactive Spanish Alphabet Lore
by infinateyyy
-

PBS KIDS Video App remix
by stevenritch
-

Beat up lnne 5
by SamiSamantaG
-

Beat up blocky
by tiguy2
-

A | Spanish alphabet lore
by Kingtyler04
-

Samsung Galaxy S24 Ultra
by logitech100
-

Incredibox - Sprunki Fate Swap
by Sontrol_3
-

48,s sprite pack bases argam Dateblocks all remix
by Congolea
-

FAVORITE THIS TO MAKE ME SO HAPPY!!!!
by TheStarcoinComedian
-

Tidal Wave Geometry Dash v2.2
by kazumadayone
-

Carlos’ Spanish Alphabet Lore sound effect (A-Z)
by Carlos_AltAccount
-

Wither Storm Files remix-11
by TheSunOfSpikeball
-

FC 26
by kreekcraftfanrblx
-

2048 tiles to 9223372037494000000 (2⁶³)
by 2048isoof
-

BCE for Gllit-Wonhee~ illit‧₊ ꒱
by pusheenqueen703
-

☁️Ventureland a scrolling mobile multiplayer game☁️ #games #art #music
by Super_Scratcher07
-

Saturday night scratchin v1.5
by kalod011-308
-

Paper Minecraft with MODDED v30.0 remix
by kc25I21
-

mgm logo 1921 part 2
by thecartoonychannel2
-

Beat up Edward 7 remix
by Andyspiffy
-

Hill Climb Racing v6.4 remix
by tkpmp191099
-

LG Smart TV Simulator (unfinished)
by itsRealM10C
-

Blue Mist Plus - 1 to 10 jumpscares
by Jharring20
-

One Night At picos (100 FOLLOWE SPECIAL!) #onaa#horror#asian#100follows remix
by mightySi-guy