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
pizza tower but ultra bad
by igorkot14
Talking Ben The Dog MORE
by nathygames9087
BEAT UP STARBURST And Amy Nozecua (1)
by newmyles
browser change time
by LiftFan1997
MYO: Disventure Camp Total Drama
by StylishOlivia
Super Mario 64 (with cheats)
by pkliewer
OSU
by 2p0h1u5c
Ohio Sound board
by ajbtech
Minecraft vs zombies 1.5 #all
by breidy66
[WIP] Ohio Boss 3D Engine v0.16.0
by mu_gua
Best beepbox song I made ^_^( part 2 )
by leoleow16
>>>>Dragon Runner<<<< MOBILE
by Im_Him00007
Add Yourself Singing: Terabrachical
by nhaxton19
γγγΈγ£γ³γMAX -Mighty Cat Adventures-
by waremegane
Numberblocks Band Retro 121-130 (Band Version)
by Trioctoblock24
Matrix Code Rain
by papipupepappa
Ideas In June!
by 419ghLifts
γγ±γ’γ³ε€§ζ¦δΊ
by ydn0414
Armenian JumpStart Band (Band Version)
by AlfabetonsOfficial
Dateblocks Band 27 (Aidans Version) (WIDESCREEN UNTIL BAND 36) (FIXED)
by AidanScratchMaker
γγ«γγ£γ~Nightmare 13th~第δΌζΎε£±θ©±γθθ¦ηγ γ
by tyomuko22
Scratch Block Generator remix
by pyromoose
Beat Up Dirty P-Head
by Lalajo3232
Beat Up Kirby Complete
by Codeyoshi_6