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
-

Added Franklin, Ben & Holly and Lalaloopsy
by zanderzander1
-

Endless alphabet OC FURBY
by splashyideas
-

Spanish Alphabet Lore (My Take!) (MOST VIEWED PROJECT)
by PidiAmo
-

FNF: Proceed (Playable)
by Youneedanamefakit
-

why is moth in my paint 3d
by penglingonafridge
-

TENNANT-Demo from a game wich will never exist
by rmarbel1502
-

Pacman game
by 24syedi
-

GhostBusters - Zap 'em!
by cat_rh
-

Warner Bros. Pictures logo (2023-Present)
by TheDeformedMushroom
-

Sprunki losaine part 3
by Thegood1700
-

Saying the numbers from 1 to 150 with collab anyone (10)
by Morasch23
-

Steamed Hams
by Ludominous
-

Talking ABC (Feece) A
by mahhi-train
-

Rope Physics v3.6.6
by MathPuppy314
-

Stingy text to speech 3
by -_-SharkPuppet-_-
-

Deltarune Battle Simulator V4
by Scube3000
-

(MORE PATHOGENS UPDATE) Immune Tycoon V1.10 #games #covid-19 #immune #tycoon #all
by NN0717
-

Add yourself/your oc singing THEARCHY 1.2.2
by Mercyplz
-

Scratch Party 1.2.1 is a fun and interactive way to learn coding and programming
by BombStar15
-

BFDI your way
by oliveguy2233
-

Blue Mist Plus 99,000s All Jumpscares P1 (99,000 to 99,099)
by Jharring20
-

The 53 mouseheadz Game
by MaryannKitty11
-

Talking Tom and Ben News but it's sad music and gets wrong
by JacksonFanGamer54
-

Super Sonic Maker remix
by JerryAde-creator