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
Typing Endless Russian remix
by NumberjackFan2024
Beat Up max 0004 15.5 remix
by jacejimerson7
Jayden's Pocoyo Logo Bloopers 2: Take 5: A New Clapboard Guy!
by JDCommunity2024
Русский Буквария (My Whiz Kid Russian)
by mywhiz
SW Wither Storm Models remix
by withered199
【立体音響】北武鉄道 1000系 シミュレーター (国分寺~恋ヶ窪)
by hujikyuukou-8000
Sprunki Phase 17
by Billi-14
beat up wenda 10.0
by xmrrileyxx
GameToons Sprunki in OG style!
by RLppp645
NO
by RainlovickIncredibox
Part 113B - 21,000s Jumpscares
by Jharring2025_24
= MMGISS's SCRATCH SLOT = ver.β
by MMGISS
Intro Template
by Intro-outro-PERSON
Breaking Into The Vault
by TristanPhoenix
Windows 11 Crazy Error Maker remix
by lando0818
Add A Button To Beat Up Peppa [4]
by Rileyroo2011
Beat Up Book v2.3 remix
by JanKids
3D Pac-Man
by hiiiool
fish
by razrabino
超鬼畜弾幕60秒耐久ゲーム The LIMIT BLEAK
by ryopanda
Blue Mist Plus 90,000,000 All Jumpscares (Added My Other 3 Numberblocks)
by Aaron_TheCreator
Часы Cкретч 1 HD Вести 35 Лет
by TELEVIZORCHIK
ULTRA NUMBERBLOCKS PACK! remix
by DoodlandsAddedParts2
[fooled.] the full RALR cast! but all of the letters
by Laypyae