Realtime Affine Texture Mapping (WIP) copy
by DCPU-16
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
All the Endless Alphabet files! (WIP)
by bukvariya1243
Every ALBTWIWIOF Letters right before Z rewound time…
by AlfabetoLoreSerie
Beat Up The Bad Apple remix
by likemargherita
Beat Up Tennis Ball 1.8 remix
by kubakoodziejczak
Beat Up Viacom v of doom
by lukemanolopoulos8
P as Equivalent of @bren319's SALR R
by SillyGooseReturns
Beat Up Sonic 7 (7)
by lukemanolopoulos8
Noisy Guests (A SCRATCHMITED34 MEME)
by ScratchMited34
NumberBlocks Sandbox (UPD 56)
by coinyfrombfb574
(AY) The Approaching Black Hole [9]
by leoprincipe04
I'm Not A Robot Clicker
by David_lily
MORE BEES!!!!!! (FOUNDATION)
by zyron74
Spamton Mini-game 2 players
by Scrater_happy
Spelling the letter M
by mfahrenwald
Angry Birds-Make Your Own Levels
by jupster123
Beat Up Dude v.4 [NEW ITEM, DUDES AND MAPS]
by --da_BLOBS--
Scratch Music Maker [V.0.1]
by IronStriker1037z
Make Your Own TPOT Game.
by GokuGohan300
Breakthroughs In Science
by codeGIO
Beat up guy 2
by MinecraftKid2
Conway's Life NO Clones
by TurboWarpDango
Daniel the Fox says yes Pokémon/GROUNDED
by Pondaroonialt
My take of Hungarian Alphabet Lore
by NJsaurus
CWSKB Free For All Elimination! 27 players
by 3395332659