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
G, Ballerina S6 Dora, Leafy, Firey, Bubble, Abby, Pinkerton Little Blue, Scampi, Yoshi, Rocky (Endle
by imstillback08
Make your own Inanimate Insanity Invitational!
by ReidRulesIT
Endless letters
by 29sea11
MARIO KART 720
by mynamisaxel
Detyra-Text to speech
by probitmedina
TORNADO
by CirroCellus
dont let your kids watch it! But Combo remix remix
by tiziland009
JSAB: MissionForceThree's Take
by MissionForceThree
Beat up Edward remix-2
by azoriad
Beat up Barney!
by Klaskychoopo64
AMMO is your HEALTH
by Trooper_31
Magic Tiles 3
by unikittygirl345
Angry birds level maker!
by Marcel1607
Samsung Galaxy z flip 3 5g βSimulatorβ
by petergamesapple
Matrix Code Rain
by papipupepappa
EAS Alarm Collection
by Emerald2019
Beat up Numberblock 1 DLC remix
by pocoyoKirk
COS v1.3
by Collertabber
ε½ι»ε°ηγεηΎγγ¦γΏγ(ζη°η·ζη°ι§ θ»ζγ²γΌγ )
by stomo_x
[ * ALPHATALE * ] - Error 404 sans simulator
by fredbeargamingbros1
Add a button to beat up Mega Photo 2
by juliescott12
Xbox 360 startup
by ZeeGaming1520
Har har har clicker remix
by rubiksprofessor
Preview 2 Scratch Cat In Chorded + G Major 11
by Little_Cat2014