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
The Black Hole Add Round 56
by charliechooch101015
sinner edition but Mr. BALCK from paraspeunki is here
by catboy0228
Team 2 Network Button Heads
by S15RMXPictures
Street Vehicles 2
by myself_-_-_alt
// Wobbly Life // Cloud Mutliplayer // EARLY ACCESS //
by tcsmc-ljcoder
Creatures of the past
by PyroTheDemonWolf
Beat Up Baby Shark (2)
by Traw2016
Russian alphabet lore interactive
by Myownscratchuser31
Beat up False Report (6)
by chriswal1200
Piano player #Music
by MikhailKachan11
作成中[3D] 8ツアー 8Tour
by T2014322
UPDATE talking tom and ben news 9 V4 aded all hd remix remix-4 remix remix-2 remix remix
by doddwell
Samsung Galaxy S21 Shutdown
by kagel
SA! DUSTTRUST
by SCHOOLTALE_ACCOUNT
Symphony II AMV
by mashkosh319
qwertころころ17「Rolling Sky Edit - Summer (Desert Bonus) ✩✩✩」
by qwert-hptgbdesu
Fidget Spinner V.XII
by shadow10988
this is why you never drive with terrible dad
by hey5668872
maybe it's the way your dressed
by superkirbyjr
Geometry Dash wave (extreme wave challenge super hard)
by bradlyjr
Super Nano DVD Menu Test
by NanotheMaker
Beat up Tennis Ball Ω
by HomeWithKuya
Blood and Steel
by Daysquirrell3408
Endless Numbers Divided concept remix
by tetinmouse