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
add a button to beat up Squidward. [1]
by Super_Isaac_64
fnf Pibby Apocalypse Pibby Test remix
by gatot48000
Day Four: Falling letters (10.17.2024)
by Charlesisbrave
._. AWOOO
by coopstar_white3
Julia With Her Shoes Off
by TheScratchGuy13
UPDATE talking tom and ben news V2 where tom eats a different slice of cake remix copy
by bonzi346
Talking Tom & Ben News EXTRAVAGANZA!
by SillySim_Master
FNF: Proceed (Playable)
by Youneedanamefakit
(AY) The Approaching Black Hole [12]
by oobi124
Numbericons 1-1000
by jayden2015paul
The Studio Doors of Numbers I - Part II (158 Doors) (im back)
by KARises
Advanced Scratcher Lookup
by icmy123
AY in Trauma Wheel REDUX! [ Server 1 | Remix 19 | 26 Players ]
by J0HN_B0MB
invading the ship 1.4
by asdeo1
Five Nights At Kofi's 3 (FULL GAME)
by Scratchingpirate
Matrix Code Rain
by papipupepappa
Goop Game - ☁Cloud Multiplayer Game☁
by JYg3_
Smoke Flow Simulation
by SpicyMelon
BEAT UP SUPER WHY!!!! MORE BUTTONS AND SOUNDS!!!
by liamdvd
Nick movie logo
by brintcha06
Flower Rampage remix-4
by ioneric
mii maker/editor demo
by petergriffinhehe
Beat Up bro77777 remix
by jetJaguaro9
Klaskyklaskyklaskyklasky Gummy Bear song versiooooooooooooooooooooooooooooo
by rayyannsthebest