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 alphabet A-1 - ALARM remix
by KLTWild
Scratch cat eats a lemon and dies
by Scratchrockin934
Beat Up Steve From Blues Clues! (1) remix
by everton_trader
Discover Card 2000 Countdown Remake
by Robmug940
amung us online!
by Smerich
The Wither Storm V31.2
by witherstormcool235
sprunki banana porridge official + lily and more remix-2
by Sprunki125536
Nickelodeon Creatures Text Engine 9.0 remix
by JAYDENTHEMAN123456
Numbers 0 to Absolute Infinity - [10^6 to 10^9] Part 2
by invitedleek2441
The Roaring Knight Attacks(Updated)
by Bacon-XD
(UNFINISHED) AY in Avoid the Spears Redux [ CS Takeover ] v1.2
by miguelhauck
Zanta Remade in Scratch but it's sprunki- Friday Night Funkin remix
by Guilhermepiggy999
Fidget Spinner remix
by JEA_530
Lazy Town - The Mine Song CG5 Remix [visualizer] remix
by 456344s
ALL XBOX STARTUP SCREENS
by HALO_MANIA2018
IDFB 2: I'm so happy to see you again
by jcuega
Numberblocks Intro But Itβs 37000
by wadertaters5
Fruit Ninja First Version Scratched V2
by juliangamer555
NEW Super Mario Galaxy Demo In October 2021. remix
by loannlidon
Minec;'raft Corupption
by justxcat
Among Us FNF Assets V3 (OFFICIALLY RESTORED)
by BrainiacMonkey
The scratch 3.0 fan made show: the ball
by susibaka332
γγγ€γ―γ©γ’γγ‘γζΏηͺοΌγ°γγΌγγ«γ»γγ³γΏγΌοΌγζ΅γδ»²ιγ«γ§γγγγΌγγ³γ’γ
by Rozuki-masuhi
Talking ABC VHS Edition!
by thesecretsussy