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
sussy all
by SamiSamantaG
Masha and the Bear Russia End Credits Lost Episode
by zyron74
Beat up Edward DLC 2 remix-2
by Alfie_Ben16
Drastic Fish - go fishing 1.4 #game #all
by SKYLER_sc
The Spy Divide Movie
by KawaiGirl789
Beat Up Bonzi Buddy -REVAMPED- Edition V6 remix remix
by doddwell
SpongeBob animation
by Locomule
killertale killersans fight bug fix
by 5-23
3D game
by j_minecraft
第一回 scratch逃走中 逃走者発表!!
by syunku
nice game!
by bshavit
カカポクリッカー
by ameezingutanaka
Numbericons 1-1000 Edit
by Stefaniko2010
KyleWare: Ultimate Microgames! (v1.85) 8 bit stages
by CZ2746isbackscratch
Xbox Series X/S Startup
by KingPinWeeks
[part12] intro for atyapi-FX
by spaoa
survivor.io V1.7 #games #survivor #io games
by -SpoiledMilkMan-
年越しカウンター
by Fkn-6m_fU7e-gPd
椅子鳥GAME -鷲- 第二 Full op 「アンヘル」
by mikorin
Impossible Jump 3
by BlockPhysics
wither stor r/ m high effort real
by Butterknives64
3d Plane Sim
by aarambh100
Talking q and d news HD remix-2
by jayjayy1809
Project Blue BETA
by Qweffor