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
Despicable Me 2 Title Card (New Variant)
by pihg003320
windows xp home edition
by Pulsarsoftware
Classic Numbericons 1-3500
by jayden2015paul
☘Spring! - A Platformer☘ #games #all
by _AurorazGames_
Seadtype V15.5
by BonesonScratch
Golden King Pig Animation Test
by RandomSuperMarioFan
Galaga
by Simoneek12
[GvNPP] Unit 1 RBMK Nuclear Fission Reactor
by gammaRaysDev
(comments closed!) Beat up simon from sprunki!
by Myownscratchuser31
AY in Roulette of Trapdoors! [ Remix 1 | 11 Players ]
by kydenj179
TVOkids logo bloopers take 11 FIGHT TIME
by Robofun220507
My Singing Schoolhouse (Point Plus) #02
by LDH110630
Beat up Pico!
by BLOCK_STRIKE
Four error 3.75:The longest Four error Part 1 ??
by Raph15Gamer
移動・回転が可能な3D
by vgnz93hs
ボールコロコロ‼
by dkassy
Apple Watch Demo
by alfiecat12
Kapi Test
by Ramirito2011
Glücksspiel_2 #☁️Cloud☁️Projekts☁️☁️Studio☁️
by YannmWin
Astro Quan Jia HD Logo Animation (TF! Edition)
by TF1AndAstro12123
Province Online 2.5
by Raccoon228_Test_2
Undertale aisu-teo fight! DEMO 制作中(Under production)
by aisu-teo
My talking scratch cat 2 best version, capped
by MicroCoderX99X
ABC Song
by BraxtonDill