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
-

Leg my version of that one thingy lol
by HikaruDraws
-

Alphabet Lore but the word is Energized
by SillyGooseReturns
-

Spacertale Remastered v.1.2
by Spacer789
-

Happy Font V19
by stevenrobloxisback
-

Spiderman
by 2031jtorluccio
-

(ROYAL) RNG Battles v1 BETA
by thatnatee
-

Cuphead vs Hilda Berg (impossible mode)
by kartalleaf
-

Add objects calling on disc (32)
by texasisthebestbc
-

(AY) Run! remix
by 192ore
-

Nuclear Reactor
by UnscrambledEgg
-

sprunki definitive phase 10 (port) remix
by vrbali78
-

Scratch cat fall down the stairs and die remix
by jltheross
-

Bruhbox - around the world (Old)
by RabbidUltimateFan
-

-Vector Art- Toyota Yaris (only the "essentials"....)
by IAm_aScratchCat
-

asdf 3 sound only!
by TMNTultimateFan
-

[!] Aesthetic Dress Up Game
by AuroSoky
-

Rainbow Paint
by Bat_Bat
-

Argam Add One Part 62: scrambled pieces
by ErikKoevOffical_2nd
-

Minecraft 1‘19
by kousuke113
-

Odd Friend - VS. Rainbow Friends (Friday Night Funkin')
by FlyingMusicNote
-

[UTSA]SPMY!sans(phase2) fullあにまちおn
by black3122
-

Pikmin Scratch - Early Demo 1.1
by Spaghetman89
-

Interactive Endless Letters (Lowercase) animated entirely remix wordplay sound
by kidslearningtube1234
-

talking tom and ben news remix-3 remix
by jayjayy1809