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
-

talking roby Ultimate 2
by cocoandco560
-

MAZE
by garychell08
-

1VI-10VI.avi remix
by A2_is_here
-

Big Mouth Billy Bass
by BlobfishLoverMan
-

Add yourself watching a movie V2
by RealFire294
-

Sprunki Deluxe + Your ocs! (Update) remix
by im_a_sproutnerd
-

PBS Logo With Announcer Voice (inspired by logobro's video PBS Alt. Timeline)
by bbctimermaker22
-

Grow a Garden remix
by ElodeyNaarden
-

Incredibox - Sprunki Sinner Edition but FALSE
by everfree79
-

30 MATH PUZZLES
by HoangNam626
-

Numberblocks Generator remix
by jamescooperbait
-

scribbler
by scratchman
-

Windows Vista Simulator V2 (Original) remix
by raphichou33
-

Numberblocks Band 51-60
by StevenScratchy123
-

Ink Sans Phase 3 Fight.
by bruhba
-

Magic tiles 3
by Paula_Marie123
-

Beat up Henry Stickmin Forever V2.5
by MyCottage
-

beat up donald trump
by 20Ruby21
-

BLUEBERRY FAYGO
by Dsvet27
-

Every Caretaker album as humans
by CoinCatcher13
-

Beat up Edward QERI 2
by hyd3ns33k
-

NEW!ONLINEplatformer_NEW!オンラインプラットフォーマー rgame4
by rgame4
-

I am who I am and I love fluvsies
by teamthem
-

Windows 8.1 crazy error [part 1-3]
by WinDogeNT