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 White F (ghostbusters85's Imposter Clone) 5
by LBTheELAFan2011Alt
Charlie the steak
by Xxuttercasher
Super Punch Out Macho man demo 3
by reallythebest45
Numberblocks Band Retro 11100-12000
by alt1043
Windows XP
by Fedor_Barkun
difficulty emoji cat set! remix
by MusicalIsland1
spru...but what is this? (in progress)
by skibiditoilet5012
(13+UPDATE) Mario Madness-Demise-(Playable) remix
by Meggal
Toodles And TubbDub Are Step Brothers!
by JoshuaThePea
Green Sans Phase 1-3 Battle Overview [Unofficial]
by BossHim
triagonal
by djsparta
Super Mike World - Full Version
by ToadfanSchool
Numberblocks Band Quarters 4 (Version 2 + For MrBond,Band Version)
by atakan9
Celebrating Scratch Week!
by ScratchCat
Battle royal online | #games #all #art #annimation #english #french #online #bingfox1
by bingfox1
Severance V2
by MossyDataBase
Do you ever look at someone and wonder...
by TheRedOrzu2
Playkids Band 9 (Remake)
by SharkyBlues3rd
夏のプラットフォーマー summer platformer
by KARAAGEP
東方宵弾捧 深闇の炎花火
by EUotsuma
ᴢᴏᴍʙʟᴇᴛ 2 BLOOD RUSH (OPEN BETA)
by screencheese_youtube
Interactive Endless Letters (Uppercase) Greek remix
by JaydenGamerzTube
beat up Omega Flowey! (41 buttons)
by Joseph-9c
Barney OS glitch (Read notes!) remix
by julitohernande