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
Windows Thin PC Remasted Sound Effects Edition Crazy Error Maker (Very Funny and G-Major Sound)
by CatCzE
Plants vs Zombies
by CHEEZ_WHIZZ
III simulator but with people's characters (3/18)
by snowmanpizzaboy
talking tom and ben news part 3
by PRINCESS000000001
[new letter!] the full RALR cast! remix-3 remix
by laypyaehtike
Make Your Own BFDIA remix
by mikeymcg75
Nickelodeon Creatures Text Engine 9.0 Fixed
by benlogofan
flappy bird!
by nugzy_301
Nickelodeon Creature Letters Interactive (49)
by DCTS0317
AY in Conveyor Runners! [ Remix 4 | 23 Players ]
by lillyk2021
Beat Up Bonzi Buddy DLC remastered remix remix
by matheuscm1
BFB 1 Four screeching scene ReReReanimated
by mrbloxykid
talking tom cat skibidi version
by duarterobin_pao
Secret Staycation Band 7 (@misternop’s Version)
by duxipa19
FNAF Fangames Ultimate Custom Night Scratch Edition
by EmeraldStan16
【架空LCD】中央本線 あずさ・富士回遊3号
by syogo_solur_n
Tug of war squid game
by sweetment
Santa's Retrieval Mission || A platformer #All #Games #Art #Music #Stories #Trending
by dwseoh127
Armed || Tower Defense 2 #games #all
by clnsbstnkng
【アニメ】異世界からの脱出 #19
by harukingusann
【東方PV(一番のみ)】酔いどれ知らず ~レミリア・スカーレットver.~
by BlueYTR35
iPad Goes Flush ☠️ remix
by CozmoGaming
Alphabet Lore Band miscellaneous 3 (Symbol Lore Band 2) remix
by hotwheelskell
ฉ | Thai Alphabet Lore Reloaded
by sebretes