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 THE FREAKING CREEPER!
by doheodjeoud
Underfell toriel Fight
by FunnysansguyALT
イニクロの直感アニメ #103 - CrossGの日2024
by 1296-cat
Windows ME Simulator (BETA)
by coolguy22456754
Geometry (Egg) Dash Unlimited v4.0 #games #trending new version
by tyiscoolll
Windows 8.1 Simulator
by a_win_adicto
FNF Steve Test and bf test
by BlueHedgehog16
Symbol lore GAME!!!!! remix-91 remix
by infinateyyy
pride flags
by MrBob_Dave
YTP-SuperMartino11 è Diseducativo
by FortnitePlayer6542
sinner phase 5
by NEHEMIAS1974
pvz 2 animation happy Birthday! 467 (植物大戰殭屍2生日快樂!)
by twss2021115
AY in Super Star Mayhem But More Aldien And Alphabet Lore
by KyRoy1988
Sprunki but I animated phase 1
by MSMFubyboy
Sprunki Sinner Edition But Phase 2
by roxan0205
Music?
by EndlessFanSombrero
Mario Invaders!
by atomicmagicnumber
BurgerTime Boss Rush Hacked!!
by coolkidFS
Calculator v.2
by Blade_9009
all numberblocks I
by G00gers
Cats TD 3 RANDOM MOD
by metalkingpig
☾ Midnight ☾
by Fish_Kong
Beat Up DonaldDucc V1.3.1
by SonicFan722
Beat up Scratch Cat! remix FIXED
by hyd3ns33k