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
Beat up Scratch Cat but you cant
by RushABCDEFG
Comment animations
by Anim8ify
BFDI & II Simulator Leak 3/3
by Thesonicfan1234
Object Invasion (old version) Contestant Generating Game
by dabbing_woody123
Scratch cat fall down the stairs and die not original
by chubbascratch456
TF! logo evilution (monde des titounis > mdt ! )
by Adriel-B
Pepperman.EXE
by thesecretsussy
Beat Up Pencil: ULTIMATE V1.4 (365 VIEWS!) remix remix
by tnwlss1013
The Uncompleted Endless Number Animations Fixed!
by Crazypantz19
Chibi lou's Jin Cai Bao Zhu
by mooncake2012
talking roby Ultimate remix
by doddwell
Mario Kart For Scratch V1.3
by mr-peperoni211
Stingy text to speech remix remix-2
by sgtshep9249
Bop it
by MiguelLovesCoding
Scratch Marble Race (v4.5) (Final)
by Twin138956Scratch
Epic!Sans Battle (Preview)
by Iseekperfection
The Mega Angry Birds Scene Creator (WIP)
by JSONexe150
last breath sans phase 3 fight FDY remake!
by Heartfulisland13-jp
Windows 7 Virus 2 (Short) remix-2
by Famous_666
「 Sad Cat Dance ✦ ⚠Fast motion⚠ 」
by Underfell_Sens
The Black Hole (Add Round 0) remix
by kaa94
Burmese Alphabet Lore Concept V2:ဆ P1
by 128087t
World's Hardest Spider | GD 2.2 Editor
by geometrydash-creator
ghost pig vector
by taylan52