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
BFDI Balance Beam Randomizer Remastered But Almost Everyone Has Their Own Ability remix
by Antwaniquahill235
Talking tom and ben remix 12x remix remix-2 remix remix remix remix remix
by everton_trader2
endless music extra notes remix
by jade101717jade
Nightmare | Just Shapes And Beats Custom Level #games
by nak2-
Microsoft Windows 2000 TE
by tkomps201016
Remix Then Make The Black Hole Bigger! | 1
by MakeingDone
Beat Up Stepshape [6]
by Delightful2025
-<[{(Collabs)}]>- talking tom and ben news 1080P V3
by lukemanolopoulos8
Asriel Fight PREVIEW (But with better graphics)
by Balunsat123
Seadtype V26.3
by stevenrobloxisback
(AY) When you RUNNIN' In The Leaf Storm [0]
by MMF75000_Scratch
R
by -_-Kirio-Kun-_-
Twister Run | tornado chasing
by masonaura25
cnv
by hadar12
All Numbericons 1-2000 Different Styles
by vanhouchin
Super Mario Odyssey sprite pack
by K00PA_K1D
Deltarune Battle Simulator V4
by Scube3000
ARE YOU LOOKING AT THIS?! (but its flumpy) remix
by CLAX1212
Bouncy Ninja 2 Hacked Hacked
by KoreanCoder7931
JumpStart Number Band: 701-800 (Individuals) remix
by bhfrhfh
ABC Song Remix
by BraxtonDill
Beat Up Disney Junior O vr 1.3
by JPPORTUGAL
DEFACE ELSA: Derpy Afro Billybob w/ a Unibrow and Snot
by VCcortex
Mappy Demo
by Etech4