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
-

The DEFINITIVE Klasky Error Template V3
by Thatklaskyerrormaker
-

Sonic test
by siennad-scratch
-

Uppercase Good Letters dancing to It Has To Be This Way
by Zachary13265
-

windows 7 simulator ultra
by Piratdrogowy180
-

Corrupted Talking Tom And Ben News
by furbylover123
-

Seadtype V18.3
by BonesonScratch
-

beat up molly 0.25 (add buttons to upgrade to 0.5!)
by The_btnl_project_guy
-

illusions
by notaplayer12w
-

bas30, 2
by Davidmillan1234_
-

PBS Kids Dash ID
by SuperMartino11
-

The Mine Song but everything is instrumental
by __Stingy__
-

AdaptiveMind Falling Into A Cliff
by AngelTheCoolUser
-

Sunny Bunnies FontType 0.2
by CodyWrightBack927
-

First project for Halloween 2026!
by RockmanAnimations
-

Sans素材
by Mozuku2006
-

Tower Defense Simulator Recreation
by ansgarz5
-

Geometry dash mini wave spam chal
by ENTERNITY_ANIMATION
-

Five Nigths At Pro3 V0.0 Mantenimiento
by pro3yt
-

Lemonoid Invasion v1.08
by Dandyprogrammer12
-

Conway's Game of Life (Goody) add random set
by Goody666
-

Add Yourself Singing Ashes - FNF Imposter V4
by WowBroThatsFunny
-

Super Mario World Maker - V.16 super
by skeletonslayer7
-

Super Mario Maker - A Platformer Creator remix
by gamingwithjo7008
-

Mettaton EX fight
by eekeekturtle