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
-

Angry Birds Scratch: Menu crazy
by oliveira_7g
-

Clifford The Big Red Dog Destroys Antz VHS and Gets Grounded
by gabbyabi15
-

Add Yourself Singing Secrets remix
by sethieB2013
-

Animal Stampede Green Screen remix-4
by StrongAnimals13
-

Hotblocks Band 781-790
by aydossabit
-

Endless IPA Animations and Sounds
by PokemonFonzu2025
-

new music codes Skin Codes for SNES Mayonaisio Pre-Alpha (Roblox) remix-2
by frodfaz
-

▣PIXELATION▣ Cutscene || Sols RNG
by Qwyns
-

Happy 5th Anniversary Of Klasky Csupo YouTube
by ArleneKlaskyagain
-

Black hole evolution
by Totical2516
-

Scary stories that will make you scream
by sussyboy11222
-

Nickelodeon Creatures Text Engine 21.5 (remix)
by ToadFriend12
-

AY In Color Loops Of Fate! (Fun Show Party) (8 Players) V0.08 remix remix
by maxileon15
-

The Fight Cloud has begun
by Paka_Chako
-

NGG: Nano gets grounded | Nano destroys his military school?!?!? | EP 5 | Season 2
by SAC_2103
-

~Fish aquarium drawing~
by Moonwatcher1073
-

beat up scratch cat, ultimate edition remix
by goodguyofcourse
-

Cytus but I cant make the circles even appear right
by thisLost
-

Chromedon
by pooiod7
-

フォロワー100人&1周年記念!!オンラインプラットフォーマー!!
by PI-RI-TABETAI
-

Progbuntu 12.34 - WIP Build 1-5
by game-master124
-

Beat Up Bonnie: 3D Land
by UltraspaceStudio
-

Beat up Edward 6!
by Traw2016
-

Super Mario Bros.
by Cameron_Johnson