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
beat up tennis man
by marijn111
Endless Russian!
by imalink100
Buttons All
by xanderafa
Rainbow Numbers 400001 to 600000 (Part 3 of Numbers 0 to 1000000)
by matthewlin1013
Secret staycation Green Apple blows an Inflatable Apple
by coopstar_white3
counting numbers
by lemon12121212
MTV’S SPECIAL REMIX CHAIN [REMIX: 31]
by eljulvazgamerHD
Jelly Run 2048 Tiles remix remix
by scf9876
My Inner Planetballs art + the moon woke up + Planetballs art
by aamirgamingtv
マリオメーカー remix
by kmsw4020
diep.io v4.8
by -Cobalt-
Wow! Wow! Wubbzy End Credits PAL (Pitched up) (minikaGO)
by mohammedsalih160910
Spiffy Pictures EXE Buttons Part 16 PMEth of 1 ate
by Oooot5
make your own BFB no split, no rejoins, no debuts
by Xavierl118
WHY with Sneaky Escapist Music
by CharlesCalvin2
Super Purple Guy Galaxy 2.0!
by JPANDD
映画(過去編) 1
by Pikurin
⤥ RECORD PLAYER // DTAE amv ⤣
by Shattered_Diamond
Basketball Clicker!
by reneleo2021
【東方PV(一番のみ)】酔いどれ知らず ~レミリア・スカーレットver.~
by BlueYTR35
Battery overcharging to ↇ percent???!!!
by minhkien3h
My Qwarlijan Alphabet Lore in Bren319's Style
by SillygooseMike
Windows 98 (1998)
by hawleydm
Preview 2 Scratch Cat G-Major Effects Part 9
by gamerboy1228