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 vupsen (2024)
by andrewfans-scratch
Baby Santa’s music box Zastrow Edition DVD Menu
by Jaxonzastrow63
Jujutsu Showdown (Release)
by Superdudethatscool15
MIXELS: Season 2 - Introduction
by Malememe
Beat Up Trash Can (8/FINALE)
by JPPORTUGAL
Barney Error (FOR SCRATCHFLIX)
by BTBFanaticCBB2015
[Deltarune] - Gaster Fight
by chairwithpencil3
Yeeting more Sonic AUs into Warrior Cats
by Funnymon260
This Week in the UFL: Week 10 (2025)
by 3136146
Glaxinkan Alphabet Lore scenes: N finally seeing F back to normal
by DZSTheCreator
Part 92,200 to 2,299 Jumpscares (Part 3 of Blue Mist Plus 2,000 All Jumpscares) copy copy copy remix
by Jharring2025_24
Avoid it for cancelling Warner Bros. Discovery!
by TerrytoonsFan1930
Beat up stickman another new mini update
by bennybean07
Add a button to beat up Nano! (Remixed too many times!) remix remix
by Klaskychoopo64
Among Us [v 1.3] Beta
by LightDarkYT
Numbericons 1-1000 remix remix remix
by nguyenmai405
Saus beat up button
by Rileyroo2011
OutSpare Sans Fight phase1 (Demo)
by Xx_Kimchi_xX
Scratch Shooter
by Doggymeowroar
Endless Monsters Vectors Rainbow (Old) remix-2
by Dejvid2115
dots and death!
by Guzuv
Beat up Edward DLC 3.0 remix-2 remix remix remix
by ffgbgffgbfg
MeladzeLuka05's Klasky Error Template!
by carternhala7
BFDI Two vector tracing
by Palmossi