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
-

All BFDI/BFDIA/IDFB/BFB/TPOT/BFDI mini/some rc's (A) Vector Sprites remix remix remix
by Firebook_
-

VHS Last Breath Sans Simulator
by GOOB-11
-

Add a Nintendo (from Mario) Character in Lakitu's Spinies ! (Super Mario Party Scratch inspired)
by Noe_school
-

AY: In Four Corners Deluxe! Remastered (R0|P7) remix-5
by clanito12
-

Get Ungrounded Trivia! Talking Tom's version
by The-Outfit7-Limited
-

Algodoo Space Numberblocks
by elias_2018guy
-

Nickelodeon Creatures Text Engine 10.8
by Jjye2024
-

找不同
by brianchow
-

Sprunki oc real v3 part 1/3 Retake
by TheNightz_
-

6 Klasky Csupo in Low Voice Render Pack Round 57:
by Bellaswan_is_Back
-

Beat up Squidward 1.1.10 game! By Jared :D remix
by tracer09
-

The Miner #games
by -zerx-
-

cool 3d among us
by HHS26
-

Stingy is cool
by AbbyHatcherRocks2889
-

scratch cat, THE MOVIE
by TEAMTIMELESS
-

FNF - VS Whitty but Harder definitive edition
by N30_G30
-

Argam Add One Part 75: la alfbeet
by ArthurTheArtist
-

Dateblocks Band 7 (Aidans Version) (THE BONUS OF BAND 6 (JOE 7) IS BACK! Only With A Different Band)
by AidanScratchMaker
-

Super 3D Maze!!!
by Joculator
-

rick roll qr code
by coderboi50
-

What is 6x3? Scratcherballs
by Han_Creation
-

3D素材
by tyaotyuru
-

Windows 10X Simulator
by LiliachOS
-

Beat up BradBartley31506 (3)
by newmyles