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
omega flowey and bad piggies mashup But Its HELP_Tale
by farzankhalid
Samsung Galaxy Note 7 (BETA)
by mpguser004
Lost Project: Beat Up Evil Scratch Cat More Buttons remix
by Lestat1025
john The Stickman THE PRISON | 1.0.2c | #GAME #JTSP remix
by blazer55455
Urbanbox Track 01 - Symphonia
by Thinglet247
Dead Hope/Faceless
by MrGreen_engine
Squiddlefinger (RED MIST)
by JimmyJohnsJuices
NBA imperialism how it works
by BAAADHORNET
Numberblocks Times Tables Chart (10x10)
by DanieltheNB81
Filipino Alphabet Lore: C
by Jmati0ns
Fnf sprites I made..
by ricej742-
Super Mario Maker [New Features Added!]
by Brad-Games
Scratch Calculator 2 v1
by PapaPierrePizza
BRAWL STARS (SCRATCH)
by Sunny313
Portrait Dancing line
by tdoug2
Scratchnapped: The Ultimate Sequel v1.3
by LSPECTRONIZTAR
Talking News Trolls The Beat Goes On
by Reid2813
ι»ε²γθ¨ι²δΌγ(Shooting game)
by mirukuma
Sega OS
by StarCoder64
Beat Up Logo Robo
by jcbautista1515
Sonic Level Maker
by Peashooter_Password
Letters Dancing
by sebas1383
Closing to HGG: Don't Try at Home! (Main Episodes only) (1992 VHS)
by Superbega429
BFB intro but its a party
by numberblock333477