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
2005 Discover Card New Year countdown remake
by SkyPPTOScratch
Interactive FLQ Spanish Alphabet Lore [FIXED C] animated
by Wow_The_Wow_Eric
Beat up the goomba! remix
by jace1809
Strepsils "Alphabet lore" (Gala Khol... Khul ke Bol!)
by Alphabe-Lore
Peppa Pig Gets Grounded 5 for HDS
by StormProductions7
Beat up Sonic reboot
by lukemanolopoulos8
Taiko Station Ultimate (Pop Tap Beat Controls)
by reeshaha
Minecraft Java Edition 3
by nhuedoanh5b
my planetblocks band 1
by numberblocks415
fanf for free!
by KO0L_
⊹ ࣪ ˖͙͘͡★ LIFELIGHT⊹ ࣪ ˖͙͘͡★ Part 8 () WIP
by 91207
MR. (Ant) TENNA'S TV TIME!!! (Deltarune Chapter 3 Recreation)
by SealsCoolCreations
Beat Up Emily Remastered
by Johnnythemenesetwo
make your own BFB ( SPRITES CHANGED) remix
by boeeeeyyy
オンライン! スーパーバトルゲーム!
by mochimochiG
青の塔6階
by sakaryuu
The Studio Door of Numbers X (30 Doors) remix
by D_buff
1-1000
by mrdapotato
UNDERBLUE sans theme【Stop Genocide】
by SYASYASYANOSYA
add some stuff to beat up scratch cat 3.0 remix
by Dylan71312
ball clicker
by bestcoderever1298
Blue Mist Plus 7,000 All Jumpscares
by Jharring20
ᴘʟᴜɢ ᴍᴇ ɪɴ || meme || ft. The Chosen One
by justcode12
Z-60
by E-200_Interm-Rooms