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
Thingbox V4: Feugebrokier (Reupload)
by mikey_mike
Universe Size Comparison
by gobo-on-youtube
All Effects 27 remix
by clanito12
【最強】しりとりAI
by tanukidoraemon625
AY In Russian Alphabet Lore Battle (0)
by fabielreyes
Beat up bonzi buddy remix-3 remix remix remix remix remix
by bonzi346
Sonic Frenzy -PLUS-
by riptaha
Angry Birds Scene Creator remix
by natsukun3844
Piano Color Bounce v1.0.2
by brothers_coding
Plants vs. Zombies (PVZ) Kuta edition
by pqqq08
Klaskyklaskyklaskyklasky Gummy Bear song version remix-12
by Gum1my
Adventures in Bayclan- The Coming Storm
by Wildflight
Glitching over it
by ZBiddy
triangle vortex (flashing color warning!)
by BrookAnd2021
GALAXY S4
by DUXDIMON25
DogOS - An OS with a scripting language 0.6.0 (SmartDog), Dog OS
by o97doge
部屋からの脱出ver1.4
by okasinaokasii
Windows 9 With Cortana 1.9 (fan-made) (Not-done)
by SPIDERKID3
Nintendo Wii V1.2
by fnf_lover-
Add a button to beat up Pico! [12] remix
by VanshikaChannel
Seth takes some gold
by Haider
fnf test (wip)
by scratchycwm
beat up Amy (endless monsters)
by dirtotheobjectrises
Angry Birds HD remix-2
by brandonyukodit