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 X Button
by crazycrazybaby17
Beat Up Horrid Henry (Ultimate Edition)
by MixelsFans2014
More Button remix remix
by jakubko2010
Numberblocks Intro gone wrong Even more rCRYA
by oliveira_7g
Fidget Spinner HD v2
by Raimds
Forsaken SCRATCH(0.9.0)
by Egor0509
Klasky Csupo Nightmares (The Official yoyo Retake)
by yoyo17988
إنذار EAS الألماني remix
by PlanetCocukYediYasve
Magic Tiles 3
by skyfall123321
Dodge the Nerf // #Games
by Jeby1003
Leon and Tucaneon Arts: Leon and Tucaneon meets Old Clones
by CyAndreaJune272010
Numbericons 1-2400
by vanhouchin
Angry Birds Remake remix
by lev123a
⭑ ★ ❶❷❸❹❺ | TᕼE ᔕTᑌᗪIO ᗪOOᖇᔕ Oᖴ ᑎᑌᗰᗷEᖇᔕ • ᑭᗩᖇT ❻ • 520 ᗪOOᖇᔕ | ❻❼❽❾❿ ★ ⭑
by Kyle3912Again
Scammed!... | #All #Animations #Games #Art #Stories
by Cool_NickXD
Beat up Giga (MOST VIEWED) remix
by hyd3ns33k
【3D】car race!車のレース! remix remix-2
by janbbbb
Beat up Gelatin DLC v50.67
by gavinandrei23
☁️ Among Us (hide and seek)
by HuggsyWuggsy
Pizza Tower Engine Cooldude's Lap Mod v1.7!
by Cool_DUDE_78
5NAF 1 / FNAF 1 - Five Nights at Freddy's [Remastered]
by real_tj
Make Your Own BFDI/A//IDFB/BFB/TPOT (rejoin fixed!) (includes easter eggs!)!) remix
by Yoshilover2023
Endless Wordplay Russian: Question
by JOAOPEDROeULIANA
Add To Button to Beat Up Stickman (31)
by GooleSharty122