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
Ghost Adventures
by 24softball
under the water sound
by aliawan777
WIP Little Gadgets Plus! [v0.7]
by Johannthekuya
Nokia startup
by hamdan1khan
Mario 85, but it's pure brainrott xd
by xnh11wynn
Klasky Csupo Robot logo Logo and Sound Con.
by jeffrey2112
Numberblocks Band Quarters 3
by TheReturnOfJog
Milk
by Bubbles_Official
The maze of doom
by Herobrine84726
Scratch Cat Adventure 2: Colorless Worlds || 1.4.2
by JackHenryHanson
棒人間バトル10人抜き
by Salad_Soup
Real Time Day-Night Cycle V0.1
by Odeboy
fnf indie cross cuphead test ver]9.3/10 [©GGFNF]
by ggfnf
Fifa 22 Pack Opening Simulator! v3.0
by BerlinEPIAS
Scrolling engine [EXPERIMENT VERSION] (2)
by KevinCreator_Test
endless alphabet stampede
by Ilikecolorsnumbers
Beat Up U Part 2
by aaroncrist7
Face Raiders The Remake Bonus Stage
by ZooWeeMinecraft
(COMING SOON) It's-a Mario Day!!
by s_123_345
My take of Portuguese Alphabet Lore
by NJsaurus
Dutch Alphabet Lore (My Version)
by bren319
Beat Up Test Dummy (with some extra content)
by glitchton
Egg - 100% Pen Animation
by hugmyster
Beat Up the Scratch Cat! remix
by lukee339