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
-

Add a button to Beat up Edward extreme remix
by everton_trader2
-

talking tom and ben news in scratch version remix remix remix-6 remix New Update remix remix remix
by everton_trader
-

Beat Up Kijobal 0.1
by TheCarlos3214
-

Bop It Extreme 2 FIXED SOUNDS, FIXED END BEAT
by LEOTRAN2015
-

Numberblock 1-3700
by jayden2015paul
-

Bilinmeyen numara arıyor…
by tofasci_mehmet
-

Numberblocks Times Table Grid remix
by vrbali78
-

minikaGO Windows 10 Killscreen remix remix
by PlanetCocukYediYasve
-

Siya's AYS engine - Defeat V6
by light_imposter
-

Sonic the Hedgehog remix
by Saramartim
-

Beat Up Talking Tom Cat 7: Unlock These Buttons (2)
by tiziland009
-

FIFA 23 WORLD CUP EDITION
by popes8326wrdsbca
-

Everybody Edits (READ NOTES) remix
by Quackerpingu
-

New year with the scratchers!! | #animations #music #all
by RedFedoraz
-

Scratch Tales Season 18 Episode 12: Lincoln Loud's Birthday Party
by MasterZenoUltimate
-

Annie Clubhouse Picking The Mouseketools In S01E12 Dora Meet Family Guy
by JaydenHu2009
-

Awesome Old Kone Ecodisc Lift Horribly Modded By Otis At Endermen Mall
by jyor6696
-

Sans Boss Fight with Bad Time WIP
by ws15052001
-

FIDGETY TOY!!!! (fidget spinner)
by fireflip123
-

Ball Bounce
by Boone4108
-

new buttons for beat up games
by dirtotheobjectrises
-

The Story Button but it's Custom Mouseheadz
by ChefJ456
-

CONDEMN EDWARD TO THE INFIRMARY
by Rewtwo
-

Calculator
by BubbleFred