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
Beat Up Talking Ben
by jakubko2010
Beat up Edward But With More Buttons remix remix
by bonzi346
Windows Mirar pack (a.k.a. Windows 7 in the alternative universe)
by patrule789678
Play My Mod Now
by liamt2807
BEAT UP PURPLE BLOCK IS BACK!
by DeTangoleafMan
My new bfb intro
by 1spaCe2dinOs
what if anglow on mech islet
by Fadzilla
Let's Draw!
by skylight-animator
LIGHTNERS LIVE - Deltarune Rhythm Game
by theemeraldsword85
Piconian Nano scares his Dad...GROUNDED!!! remix
by onecnc
Scratch Editor Vector Art
by JukeboxGames
Beat Up Cyborg 2: daisy? (0)
by elevatorkoneecodise
A two million celebration
by Vitality
Jumpscares
by JCPOOH
[100%pen]Animation Creation
by _applemango_
BOSSFIGHT Pt2: The Eye of the Eclipse
by bulbadolph
Interactive Endless Letters (Uppercase) Russian but its animated entirely
by uppersin
lolecos doggy 2
by misha
Life after people great collapses ver. 2 reversed
by epicboiiiiiq
The LMNOP Crew but they are all Equivalents of N (2.0) (NOW WITH J, K, Q, R & S!) remix
by decimalblocker
BFB/TPOT Contestant Generating Game But It's Unreal BFDI
by Lime549
Eat Em’ All ☁️
by PRINTMYLIFE
Windows vista Setup Simulator
by Jrr2014
BFDI Mini Contestant Generating Game
by SuperMissleAttack2