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
Aircat's Spanish Alphabet Lore in Bren319's style (Read the instructions). remix
by bluey697
Interactive Endless Numbers 58-75
by BTM2913
Jester Mod ☁️ Among Us Scratch v0.27 (online) remix
by Sonic_Bruh
PvZ3: The New and Improved Version!
by RandomSuperMarioFan
Endless Music Mary Had a Little Lamb But Different by using New Endless Music Song Maker
by PersonalizePrint
Beat Up Super WHY!
by liamdvdthe2nd
Block blaster! CV Games
by LukaSikkel
☁ Scratch City ☁ Roleplay ☁ remix
by jozekmuzyk
Opening to dvd asdf50
by asdf50
2 Player Sans Fight, but with extra stuff. 1.3.4
by 25jverdin
test project sonic 2
by TTTEfanSQB
PBS Kids Fishbowl Id Remake
by SC9622
Elmo try's to beat up chuck e cheese and gets eaten by chuck e cheese remix
by chuck-e77
[SH04]史縫 月華珠薬 ~ Moon Rabbit's Medicine
by AT-8
Beat Up Cartoon Network [9]
by zzhhooookk
fish simulation (roi)
by guy670
Вести недели. 2 выпуск.
by PBSKidsFan2017
Discover Card 2004 Countdown Remake
by VinnieJay
Decision Number Morph III (pi > 12:34:56 pm)
by LD123Rises
Ultra Numberblocks Night 2020 remix
by Pavlyk1818
Beat up Edward DLC Reimagined 6
by kuyalouie
i wanna test the game
by 5A5LMINH
Bren319's Spanish Alphabet Lore 3.0
by zach20042013
Beat Up Mario
by ptv_23