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
Baskin Robbins Logo Vetcor [free to use]
by -yellpixel2014-
My take of Filipino Alphabet Lore.
by NJPHLLSH2008
Scratch Shorts Season 5 Episode 3: The New Year
by JBurgers87
Liam Gonzalez's EFBU (Add Round 3)
by nickelodeon316
小田急4000の警笛
by odakyudaisuki8000kei
Beat up P-head remix
by coolboy1919sigma
Color Merger 3000 | Learn About Colors!
by WatermelonMan10
Leon and Tucaneon: Asian Animals Stampede Green Screen
by KhatounationsCreator
Roblox on scratch!!!!
by kip9785
Letter Q
by Abdullahcodes1234569
Fidget spinners for days
by tyerone11
linux mint
by awesome133
Numberblocks Band Retro 31-40
by Trioctoblock24
Fruit Ninja First Version Scratched V2
by juliangamer555
beat up numberblock 1 remix-3
by zoomanimal
Dateblocks Band 18 (Aidans Version)
by AidanScratchMaker
Beat up Scratch Cat: Collab Edition [4]
by isaac-MCcreeper14
Sesame Street Elmo's World theme song
by aubycs32
beat up bonzi yeah (unfinished)
by Desktop-Friend
FNF Reanimated BF test v2
by Jayden40175
PVZ Indo RE-xtended
by MenjiBenji
Geometry Dash Clubstep (2023 Remake)
by 5437638
Maze Run 2
by Finite_Games
(REUPLOAD^2/REFIXED) How Was Klasky Csupo Robot Invented in G Major 2
by RealAKReuploads