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
Roblox Multiplayer Tower Obby
by alekseyalesha27
Kirby Mage : Curse update Part 2
by Eevee_MasterNZ
Disney Junior Russia and Coca-Cola Logo
by AidenTV604
endless reader alphabet remix-3
by RonaldMcDonald-MAK
destroy scratch cat 2
by wisco11
(UPDATE) Beat up black V6
by userfiona
Seadtype V8.8
by crazymilkandres
Space Fighters
by benri-Xx
Evil Sparkles says yes Family Guy/GROUNDED
by Dokimascota22
Beat Up yellow shark remix
by Alfie_Ben16
My oc Beat ups my oc i make i was 10
by jasiel37
Thingbox Extras: Graduation
by mikey_mike
Geometry Dash Lite (Adam Edition)
by ScratcherMacherCoder
my oc,s
by Logie_TheDestroyer
take care of yo child mr yellow
by 900502704
京急線シミュレーター v1.6.2 Keikyu Line Drive Simurator
by onara_go
STRAIGHT [棒界リレー] No.1
by 8810taka
Toes Engine: THe Anubis (JJba)
by necoluga123
Б is an Ad
by meglgh5
roblox clicker but you press space you get infinity robu
by xlegends123456789
Pizza Tower Ranks (A-Z)
by The_Gamer-Studios
FNF Bambi Strident Crisis Test 1.5! Freeplay!!!
by SanadMDQ
(Project Cancelled Today) Talking Tom And Ben News remix
by hoopsandyoyo2006
Add A Button To Beat Up Windows Ugly!!! (7)
by newmyles