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
(チャット翻訳機能)☁️アモングアス オンライン 日本語版 / Among Us Online Scratch Remake Japanese Version remix copy
by AI_HABU_A_PENN_sub
Franchise QB (pt.1)
by JaydenDaniels24
TPOT: Your Way!
by Coolhunt5
Seadtype V10.7
by 123456free
chick figures ep 2 dress to impress
by 6lebs
Playing Foxo on a Nintendo Controller
by Me222229
Sonic Scratch Demo 722
by ugandaknucklesboii
face
by piczy25
Candy S3rl |ft: Yatta
by I_love_eating_lychee
ASCII Key Detector
by griffpatch
Space Sphere
by hugmyster
Scratch Bloons TD HACKED!
by QwertyMaker2019
Simple Platformer Game
by warfame_test
Tom and Ben РЕКЛАМА
by fedyafedin
(FANMADE) Ohio EAS Alarm
by 09jonahboy
online PLATFORMER!! プラットフォーマー オンライン
by RRR-scratch
どっちぼおる逸話 能力者
by kinnsiwa-do
Часы Мир 2016-н.в Скринсейвер
by PlayGamePad
Numberblocks Band Retro 1 761-1 770
by Mecurn
Sharkbite (Roblox) [Switch4FortNite contest] #all #games
by FirePicx
[Broken in Scratch3] Pen Vid-player +Pokemon & Dr Who demos
by DadOfMrLog
Spanish Alphbet lore | A
by CH_creator
The Railways Of Crotoonia: The Movie: Blu-ray DVD Menu
by Bearvrick
ADD YOURSELF USING TOOLS TO DEMOLISH SPRITE1
by Greenwave_Rebirth