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
Real Time Clock
by crisgamr562
Schindler 5500 MRL HKtito Spanish Alphabet Lore At My Hotel
by F846playzV2
pen - v1.0 0801
by kasasa01_2009sugu
Beat up Edward [More Buttons] V2.3.1
by cgsd4545
sonic 3 end credits
by Jackal_75
error 404 sans戦 phase2 (my version)
by undertale_fan0_0
Beat Up Scratch Cat
by Blud-OPBR
Green Hill Zone (1998 Mix) - Sonic the Hedgehog
by cs4200621
Tetris
by Wes64
(Simulation) (-2F, -1F, 420m, 460m) Lift 4 at Tom & Ben News Tower 5 Tower Remix (-2F-460m) remix
by Tuud
angry birds 4k full hd
by aperson2460
太鼓の達人 ニジイロ 2000シリーズ+α
by mizunoY
Windows Vista Emulator v1
by AayanScratch7000
Yin Yang Yo - Chung Pow Kitties Sprites
by SticksTheBadgerXP72
CANNOT BEAT UP GIGA WITH CLONE SPINING
by weskone
Beat up Nano PLuS! (3)
by dirtotheobjectrises
【東方コラボ改変PV】春嵐
by sckoko8
SCRATCH CAT 3D
by grupogarzon
FNF Keyboard But with custom characters every song
by Corminator123
Mario and friends walking
by Funes0116
Scratch lookup 1.5 | the ultimate stats viewer
by kokofixcomputers_sa
30 minute Timer
by SublightUp25
talking tom and ben news V2: edición ALL AND THE NEWS remix
by everton_trader
BFB Intro Vector! (but some people is in it)
by FourtheAnimatior