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
Windows 9 Build 1443 Beta
by bruh_nugget3142
My Talking Scratch Cat
by YoshiFan2021
The Evil Square Tape Recorder
by Vieten2012
Nickelodeon Creatures Text Engine 8.0 remix
by Your_Local_Ice_Cube
Ling Ling Sprunki Greencore!!! We are in a different planet
by OrenxPinkilove
Gobo's Insane Dream
by angbingjieBT
Did you like TPOT 18 (BFB 31)?
by OMandJJ
Lightcube Platformer
by firstject
Littlest Pet Shop Star Wars!
by LegoGirl99
Undertale Bad Time Trio IT'S THE HUMAN
by 0111288
Multiply away!
by AAAAAwinnerGLT
Omega Flowey Fight (Simulator)
by Memeies_Mmm
Just try to beat up Shadow ! remix remix remix
by piggy-fan-jumpscares
‹Surfmaster› V.2.2.7
by aigledor
Just Shapes And Beats (JSAB) Online
by ColorlessWing_Studio
Random Terrain Generator _ 0% Pen! v1.1
by formulacarbon
Ark Reaper Queen Simulation (WIP)
by _-Axo-Raptor-_
Artistic Text 7.0
by W2KFisback
(Reupload)Beat Up Edward 2
by Andricxa
Matt Wii Sports FNF Test (wasd+arrows) [+MATT VOIID SIDES]
by Reknah
Talking Nano and Pico News remix-3
by ianmumuk0610
Endless alphabet D-5 - DYE
by ILikeLogos
Destroy Scratch Cat!!!! (Mobile)
by STANFEE
Beat up Edward 2 remix
by Menxtin