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
All Numbericons 1-450
by Nataliehouchin
BFDI DVD Menu
by nanajeu
Seadtime Font V0.4
by crazymilkandres
Beat Up Bonzi Buddy: DEFINITE EDITION ADD ATTACKS! remix remix remix remix remix remix
by kubakoodziejczak
Henry Stickman
by sentyabr-2
Scratch's Eternal Ultimate Remix Challenge! | Part 1 | Mega | Level 166/3,000
by oO-RemixMaster-Oo
Windows XP - Happy Tree Friends Edition (Windows XP HTF Edition)
by MikileyHeeler
☁ Uno Online! #games ☁ remix
by TOM27102011
FNF: Pibby apocalypse Suffering siblings test
by SONICZIN21
SANDBOX MODE Pvz Fusion 3.7.1 (Mobile Friendly) upgrade
by quantoan
домофон гуськториал/Intercom Goosektorial
by cat_minecraft_6
Yearblocks Band 2001-2026
by IgnatiusGaming12345
Scratch 4.0 ideas
by Jurassic_World123
p head beat ups you
by mateo2ninja
The Windows 10 virus
by errorsans213
Beat Up Super Why! with way too much buttons
by liamdvd
Beta Super Mario Bros 3 Scratch Edition
by mohsinmahboob1
jumpstart AABBCC band Added More!
by CoolNumbe23
Lost World The Previous Ver.1.1.4
by hr0909z
The Flying Sleigh ★★★★★☆
by kumafuji1202
Explorers Geometry Dash Sneak Peak 2
by ScratchBoxI
Hill Climb Racing v1.0 remix remix
by koudaiyugo
tvokids bloopers 1 (1/10)
by GraysonLore
the full RALR cast chaos! (Done!)
by UNOREVERSECARDLO