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
Endless Reader but i remade it because why not remix
by leiner77
[-Underswap: Distrust-] Sans
by ScratchGamesCreator-
Scratch Mod
by Techyjr
Make your own BFDIA
by Coincreature34
Klasky Csupo Nightmares Logo
by NFV2
AY In Who is the Impostor! Server 5 (22)
by AdewaleTheBest
Newton's orbital cannon gamified
by MalinC
Among Us | #All #Games remix
by monit7523032
AIRSHIP Among Us es
by J4K5E1
マイクラ 1.21.11 / Paper Minecraft 1.21.11 baldi basics
by ewesome123
Naruto
by Taddbeast
My Talking Tom 2 beats up CPHSP.EXE remix-2
by KlaskyCsupoRip
Super Angry Birds World 2: Red's Island
by RoyalCHARLIE
FNF Shaggy Full Week (Old)
by MoseCoder
スマホ対応!しょぼねこのテニス!
by bitamon
Make Your Own Hurricane Season v1.1.3 (2023 names) remix smaller icons, faster icons
by sebastianfon0829
Roblox DOORS: Scratch Edition
by TNKProgram
Five Nights at Endro's v1.1.1
by EnderGamer7777
アニメ FOURVERSE 第31話「難敵」
by kesikesi_gomugomu
Beat Up Pico 2 but all buttons!
by newmyles
☁ Fall Guys Online Battles REDUX by:@Voltfire1234
by voltfire1234
Beat up Nix remix remix remix remix remix remix remix remix remix remix remix remix remix rem… remix
by MarioLu13
My take of Danish Alphabet Lore
by NJsaurus
Super Mario Bros. Wonder Maker
by scratchy8_