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
fnf two test
by dark_slayer_2000
number time
by StellaZan2025
Incredibox - Sprunki Sinner Edition loll
by ELPODEROSOPQ
Super Smash Bros. Melee Marble Race
by MinionPigFan21
Numbers Band 64 311-345
by tatudobenja2407
BEAT ME UP!!! [EFFECTS!!!]
by Alfredo-Multiverse
Sussy Schoolgrounds 6 but Better
by 096_Aiden
Sprunki Oc Real Sprite Pack (1) remix-7 [not mine]
by mariaeunia3785
bfdi lipsync and blink thing test
by rofunkin
Holy Bear? // ft Buddy The Blue Dog
by AnimatorExpands
Flappy Bird! remix
by khramskid
Beat up Edward Omega (3)
by everton123E
Square-Triangle-Numberblocks band
by Kareem_j32
AY in Hextic! [ R7C | P22 ]
by RDash75
KyleWare: Ultimate Microgames! (v1.1)
by TheScarfedStickman
Pac-Man Classic (Credit to Bandai Namco)
by Taylor_Scratch_21
3D Platformer γ’γγ’γγΉγ©γ€γ γ2γοΌοΌ 100%PEN οΌγΉγγε―ΎεΏοΌ
by nakakouTV
I might have burnt my tamales
by Redd_Chili
Beat up Evil Green Square
by jl381367
New Super Mario World v4.0
by _nakashima
Platformer γγ©γγγγ©γΌγγΌ
by shu73
MSDos: Stickman Adventure
by SuperOscarJrScratch
Minecraft Battery OVERCHARGING to ABSOLUTE INFINITY remix
by tuifortkutus
project
by jamesmj300