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
-

Make your own BFDIA
by mak-muijc1
-

Make your own BFDIA - REMAKE | v1.8.1 - LOLers Pack 5
by SuperScratch1645
-

animal stampede
by animalslover44
-

Rainbow Numbers 200001 to 400000 Music (NEW)
by ms-lexi
-

talking tom and ben news remix
by jacejim1809
-

Basic Rhythm Game Engine (Guitar Hero Inspired) v1.3
by Knucke
-

Scratchy Adventure 2 Deluxe
by The_Updator20
-

Numbers Band 2
by thezirconmaster
-

Some Random Butten (Needs Fixing)
by ColorRat_546754
-

Super Smash Bros. Brawl - Victory Screen Template (HOUZE EDITION)
by bfdifanthegamer
-

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
by EuclidXian
-

Omega Flowey (Handgun Test)
by SrihanAnandaraj
-

REDLINE FORMULA 1 speedometer NEW SOUND
by Tsar_Nicholas2012
-

DNM: Universe Size Comparison Edition: <1 PL objects | -π → -1.5, 8 objects
by KNE101
-

Mario Kart Screluxe : Home Circuit Demo
by RunTheCoins
-

Mario Kart Rainbow Road 3D マリオカート
by yossiy
-

ZXNM: Special Pack
by -Multinia-
-

all once again
by CLAX1212
-

Tower Defense v31.6.2
by neverdieking
-

Undertale Last Breath: Phase 3
by illusionarygull
-

why did i make thi- not for shool
by aydensamphothiyane
-

Pokémon Soul Spirit v1.0.1
by Scorbunny456
-

(REUPLOAD^2) Beat Up Sonic Again remix remix
by jahir67952
-

Beat up duolingo
by piolalina