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
talking tom and ben news 7: [edición] [extendida] remix remix remix-2 remix remix remix remix
by everton_trader
Титры из Машины сказки. 20
by vol_wubbox12
Beat Up Pencil 2 Ver2.2: LOBOTOMY UPDATE (OH YEAH!)
by KHOPERIATEDO
Incredibox-Sprunki [discontinued]:(
by TheDJC_geometry_dash
-<[{(Collabs)}]>- talking tom and ben news HD
by Sprunki_God
The Studio Doors of Numbers - Part 1.11
by Figoor
Evil Stephanie Cat swaps her report card with Daniel’s/GROUNDED (FIXED)
by ChaseJ15
(( | Insane Satanos Test. | ))
by Impostward_23
Among Us
by SweatyG23
Windows 8 build 8888 crazy error maker
by Areo7Royale
FNF: Rewrite Sonic Test: Trinity remix
by creeper123gamer
FNF: Racing
by BlueHedgehog16
Cut The Rope 2 (MD Bootleg) Game Over
by lau0029
Scratch Cat's Adventure! #all #all #games #games
by bigstunstar
スターシュートVS モモンガせいじん
by monnsutaaboru
Codebreakers Fully Immersed mod - SSS2
by JamesRayAwsome
Five Nights At Shorty's (Ver 1.1)
by Donut_Star
this is why you never drive with terrible dad
by hey5668872
Scrolling and Zooming engine
by vast_gamer
Numberblocks Band: Rebooted (OUTDATED)
by Blueswedy_Scratch
The joy of Creation [TJOC:R]
by ramen575
[Later] Chill Intro for harukun19!
by laggylaggy
(Outdated, Legacy) Vs Mouse 2.6 SuperDavi2-0 Edition
by superdavi2-0
Voiid Bf
by VoiidSides