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
Flush toilet sound effect
by Daoundama99
CBTIH over the moon ID - Clock
by IONTOONNET
Seadtype V13.7
by BonesonScratch
Crm tpop bfdi
by Manu37xd47
AY in Balance Beam! [ Remix 14 _ Players 23 ] (552485383)
by Pacuddlesfan
Pokemon Battle Test 2: Clash of Legends!
by J42
Chez is dead
by -Dabigchez-
GEOMETRY DASH WAWE CHALLENGE remix
by kiutierekle
Numberblocks Playground V3.8.5 remix
by TimCale
steam train Climb Racing remix
by thom1983
Chess
by cmj2638
Symphony - part 7 (Tryout)
by -Phantom_studios-
Beat up d
by Jonahbeen2012
パズルゲーム・車を脱出させろ!
by tomo2323
ネプリーグ 漢字テストツアーズ追加版 remix
by souyutumu
Beat up android weekly 4!!!!!!!!!
by tatatino150
平均計算機
by zisyouusotuki
Beat Up Squidward 2315
by kikiboom7
BFDI BFDIA IDFB BFB TPOT Contestant Generating Game, all 103
by CWHXD
Catch the coin
by Code-Gear
Beat up 2 (TPOT)[1]
by 2014ohmye
Tpot Contestant Generating Game
by Switchy1024
windows 8.1 by virtual desktop
by virtual_desktop
Scratch Party - Star Scramble v0.0.7.1
by SuperCoolCoder9500