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
-

Endless Music Notes
by minecrafter289
-

Days of School Bands: Day 84
by CranberryDigeli
-

Foxo meets new Foxo
by JCLaus14OG
-

Elmo Knows Where You Live! remix
by cal_cal1
-

Numberblocks Band: Another Way Up! (Number Fun)
by trexzachary14
-

[Big update] (Sprunki) AY in Noggin's RL, GL Game Redux [ Server 1 Remix 1 20 Players ] remix
by cociiee56
-

BFDI: GC Episode 3: False Pledge
by coolpotatowado2667
-

My BFAM Intro
by Hydrogen_Copter
-

Scratch Tales Season 19 Episode 8: Pee Emergency!
by MasterZenoUltimate
-

Егор Крид продал почки для...
by lunyak
-

Roblox 2010
by ScottAnimates
-

BFDI BFDIA IDFB BFB TPOT Host Generating Game
by ScratcherChain
-

Entertainment One Logo (2010-2015) remake
by MrAstronaut17
-

Smooth Intro
by cs5122271
-

Jerry and Tuffy all-stars (Adventure)
by Jerry2909
-

Mission Neon | Original Version
by Kirbster7gaming
-

Talking ABC Update (Upcoming)
by StarDrawing2008
-

Tile Miner V.2! #all
by Vozify--
-

【ゲーム】激難弾幕(pen)
by cider1
-

The Henry Stickmin Collection
by InnerslothLLC_
-

Super Mario Chronos v0.7.3
by Fun_Stuff100
-

Help wanted part 1 Spongebob full episode s1
by Yourboyspong
-

Talking Tom & Ben News
by SrSudamericano
-

(Save Cat) Task1: You Better Listen.
by RandomGuyzz