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
Magic Tiles 3
by 1cutie0cats
If BFDI Mini Characters were on BFB Teams (Expansion, now with 56 Contestants!)
by Nicole304910
Seadtype V10.3
by crazymilkandres
Beat Up Bonzi Buddy: DEFINITE EDITION ADD ATTACKS! remix remix remix remix remix remix remix … remix
by kubakoodziejczak
Beat up Kyle Walker: DLC Remastered (Trailer)
by JPPORTUGAL
[Chess Type Beat] Secret Staycation animation meme
by 23sse20
Beat up BonziBUDDY! IXXX
by XavierChannelUS
ai slop analog horror (i tried)
by DzayBestLol
unlucky stickman 5
by hawkdude12
MintOS • BETA
by MiniCoder11
megalovania with sans voice
by rockyfan75000
Make Your Own BFDI/BFB but I did some things
by ServantofWaluigi
scratch musics 2 #music
by PAtech
SIDE-SIDE
by S-1014
FNFGF - FNF [REDACTED] Mod
by Bob-FNF
shooting game
by Hoshadu
pizza tower but bad
by YourLocalNoob502
Contender Entertainment Group Logo (2005-2009)
by Fionn2021
Beat up Nano (Overdrive Edition) [1]
by JPPORTUGAL
Beat up Buttons
by ptv_23
Challenge 2: Morse Code Remix remix
by 706-12-SH
Bren319's Russian Alphabet Lore 3.0 Zooming out
by DanScratch_1
BarOS History (Update 7.2) remix
by ffffffffffijijijijij
Super mario odyssey wooded kindom
by LazarLok67Yt