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
AY In Water Rush Remix 14/23 Players
by roo543
My R.I.P Year Numbers For My Upcoming Series
by KidCoder32
Б My Russian Alphabet Lore but In scratch
by Pierrot2030
Underwater with the sea animals
by mkamsi
angry birds scratch editon
by scratch_cat_123576
Super Mario odyssey V2.0
by pokeslayer4
Infinty Knock Benja v1.85 FUNNY BOY
by benjaminsecondary24
Nick@Nite Creatures Interactive (Alternate)
by KyleHenry2009Rises
Заставка для БОДО БОРОДО - Страны (Бодо Страны)
by j7-_
gun game endless v1
by SUPERDUPERHUSHBRUSH2
AY in Birthday Blowout! [ Remix 20 | 58 Players ]
by Alphabe-Lore
Bike Simulator | Alpha V. 0.1.3 #All #all #games
by KoT_Haker777
カービィのBGMプレイヤー Kirby's BGM Player
by surumeika3
⭑ ★ ❶❷❸❹❺ | TᕼE ᔕTᑌᗪIO ᗪOOᖇᔕ Oᖴ ᑎᑌᗰᗷEᖇᔕ • ᑭᗩᖇT ❻ • 600 ᗪOOᖇᔕ | ❻❼❽❾❿ ★ ⭑
by OisinFan62
THX Parody (My Version) remix-3
by Izzalovesrainbows
|| Pの冒険/platformer 【拡散希望】
by YSTT491
Scratch Kart 9 Remastered v5.10
by Rabbidinho
Reprogrammed [Too Slow - B-Scratch Mix]
by bfad2435
Vyond Effects (Test #24) [Last]
by MonicaNunez50000
Frums - Jam with Pancake remix-4
by asakkeluhi
Filipino Alphabet Lore: C
by AlexTheCreationer
Furby hangout-2
by Akura2023
Every ALBTWIABCDEFGHIJKLMNOPQRSTUVWXYZIOF letter before Z rewound time...
by SillyGooseReturns
Vyond Effects Kit 2015-2017 (EXTENDED ^2) Added Even more
by lateone1