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
1.8 |Angry Birds Classic Hd| #games
by Matteo_10-BeloRato
Samsung Galaxy S4 Phone (Black Edition) Vector
by AidenGilleTheAidenTV
45 Buttons Beat Up Template remix
by xmralexx
Raise A Floppa - Pre-Versión 1.12 parte 2 Principe Bingus
by galletoland
Tiger sees the Letter T in chorded
by SprinklesNCupcakes
Sprunki OC But It's Wop Sinner
by dano0219
大道芸 Ver.4.6 --- the シューティング ---
by inotomoking
Part 92,200 to 2,299 Jumpscares (Part 3 of Blue Mist Plus 2,000 All Jumpscares) copy copy copy remix
by Jharring2025_24
Beat up Scratch Cat remix remix
by everton123E
Face Raiders Remake V2 (short version)
by windows-scracher
SPRUNKIS BY ERICK´S
by ArthurSantosC
the battle of animals
by WONKA_cat
AY in Rapid Acids!
by LorenzoFiscoGaming
Beat Up Stickman remix copy-2 remix
by MyCottage
Fail || Hard Multiplayer Platformer remix
by biff2480
(Hardcore + Hidden Wave) Tower Defense Simulator v2.2.7
by RekingRx
Shoot Things! | WW3: Ballistics Testing Lab
by melee2000
Geometry Dash do not dumb here
by iPhone_ATT_TWC115
Beat up Gobo [2.3] remix
by sussybaka1011111111
Beat Up Jacob
by TheFunDeveloper
Escaping the Prision
by SaturnoMan
あずさクリッカー
by oohaexp
METRO-CROSS メトロクロス
by nayuta_solur_
U-15 (LOUD WARNING)
by Zack_39450