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
BFDI Contestant generating game
by MagmaIcicle_01
Super Mario Bros. Arcade Mockup (WIP)
by PacclesEatsSushi
Free DVD Menu
by doble_bubble6
Angry Birds Maker
by RandomSuperMarioFan
Interactive RALR Aliens
by WHYPHABET
Beat Up Granny (12)
by galaxylgnokiasamsung
I made Aiden's Number lore remade (1-100)
by 29dhills
My Spanish alphabet lore
by kristian104
Norwegian/Danish Alphabet Lore (Remastered)
by scratch_EMT
Abnormal - GRTG (Official + Playable)
by luis_tv_animations
Numberblocks Intro but Ones
by oliveira_7g
Geomtry dash マイクラ版
by honndaltuti
BFDI 17 But Modern TPOT but i made it more accurate
by OwlCuteness
argam too?!
by tcsmv_rbarreto
Beat up Edward [3]
by Scratchki8364091
Friday Night Funkin' Stev Mod
by DuceTheCat
ポイズンサバイバー poison survivor 第壹話 「ポイズンの"怨み"」
by tyu3501tgat
NANO GETS GROUNDED THE MOVIE (Christmas Edtiton)
by epicboy1998
by EXE-Sonic
Add A Button To Beat Up Evil BBC One! (4) remix remix
by goofy_cat9
PM 6:06 V2.3.17c4a
by antimatter310isreal
Beat Up Noo-Loo MOAR! remix
by zanderzander1
Black Hole Add Round 9
by raptorman53
1年アニメ+ 4/13 1 billion!
by 1296-cat