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
a bit of code (blockly in scratch) (0.1)
by kikiboom7_3023
Geometry Dash turned into Mickey Mouse?!
by Kitcat123slay
Beat Up Dirty P Head 3
by christywifi
Plants vs zombies DS remix
by Yuf-panpan
talking tom and ben news ohio 3 v0.1 remix-2 part 2 remix-3 remix
by Outfit721-Games
AY: In Four Corners Deluxe! Remastered (R0|P7) remix-5
by clanito12
I sing goodbye to a world
by pikachu_pokemonfan
Happy Font V19.2
by stevenrobloxisback
Cottage4 but ao oni is the monster
by sonictherad
bas101, 1
by 4ftwinsTWO
キャット製造工場
by pupon
Ball Blast hacked
by Bennimages
Rhythm Bingo (sixteenth notes)
by ccarlsond64
MLB PFP+Banner Creator!
by cubexp
epic wario land 4 demo
by arturo-mario-fan-2
Talking Tom And Ben News version 10.0.0
by christywifi
Chilled Windows V3
by HappyMatty07
The TVOKids Party!!!!! remix remix remix remix
by qred_chua
Scratch BF Test
by UnderFanTale30
Friday Night Funkin' VS Scratchy
by ZxverOwner
Super Mario Bros. S - The New Desert Update
by superpi2
[UPDATE] SFNF vs. stev
by FastyRBLX
Geometry Dash SLAUGHTERHOUSE WAVE remix
by bre2boy
The Beat up Games!!!!! (9)
by gulkd2023