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
Beat Up Me DLC Remastered!
by Bunnyz_UwU_Alt
interactive RALR [REVAMPED] V.1.1
by Declinpikachu
Color Mixer
by Amplifyre
[ALMOST ACCURATURE] NumberBlocks Basics: 27 Levels Sprite Pack
by XxCreeper2kScratchxX
9 Story Kids/Coca-Cola/Animal Planet/Disney Junior.Co.Uk/Nick Jr Productions (2021)
by eliascape
Beat Up BonziBuddy (LAUNCH DAY!)
by boiboiboiboi6566343
Beat up Edward DLC 2 remix-2
by Alfie_Ben16
Effects RNG
by Bradderz121
Beat Up Red Bally V0.14
by Caxis1904
Super Mario Bros. Wii V0.7
by NightCat28
Useful Custom Blocks
by bwinder
Vs. Kapi with unused song (full week) - Arcade Showdown
by frostzzone
FNF ◤GHOST◢ VS.Camellia
by 999qwas
20th Century Fox Destroyed
by kylo1234567
Super Sonic Maker - 8 Bit Platformer Creator V1.3
by 16BitGAMER132
イントロ
by kyosuke_nishida
Spiffy Pictures.EXE Buttons C (Second Mode)
by solooloo
Beat up Coral
by BestboyJulian
(没)Bad Time Trio
by aboabk
Beauty and the Beast Animation - Scratchtober Beast #animations remix
by WALLEANDAVA
Argam Blocks
by Duke_loves_scratch
Beat up Squidward (Add a button) [26] remix
by everton_trader
Ultialphabet Vector Poses
by awaysoonery123
BFB TPOT Marble Race v5.0
by ChingHei1015