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
-

Closing To The Scratch Movie 2020 DVD
by RicardMarc
-

PlayStation 2 Red Screen of Death (RSoD) Recreation
by Phant2394
-

Incredibox - Sprunki but Ocs added
by AbcAbcAbcqwe
-

BFDI 1a but it's Firey and Leafy
by Vlad9407
-

[ドア開閉機構]ドアチャイムと盲動鈴が劣化してる小田急5000形5056Fドア開閉機構
by 123densya
-

Among Us | #All #Games remix
by monit7523032
-

The Incident
by Animatic_Addict
-

Endless Numbers 1-100 copy
by Zhiware
-

Colorbox Ultraviolet AYS/IRT (9/21)
by babyboy246
-

Blender v0.9.6.5 (Ray Tracing)
by HappyDay4
-

Super Smash Bros. Extreme 2
by Ryomaster54
-

UNDERSWAP DISTRUST sans FIGHT
by leaf_san
-

Tio becomes Pro
by miiname
-

Brawl of War (Remake)(1.5)
by DarMan228
-

The Art's Mission Collection Menu Music episode 1-3
by P-XH
-

Beat Up Scratch Cat! (Added duck) remix remix remix remix remix
by Mathew5555555555555
-

beat up scratch cat 2
by Nonee2014rises
-

FNF Test Playground (WIP) Anti-Piracy Screen
by Willboy201111
-

Stingy text to speech remix
by paulinelesz
-

Beat up scratch cat again again
by paata27747438
-

Beat Up Squidward 2017
by Dollfriends
-

banana cat crying effects
by andbaq500
-

-<[{(Collabs)}]>- talking tom and ben news HD remix
by German0512
-

Add A Button To Beat Up Nibble Nom [Remix 6]
by goofy_cat9