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 hjg
by SamiSamantaG
Numbericons 4501-6200 (Numbericons 1-4500)
by jayden2015paul
add a button beat up mickey mouse poster remix remix remix
by kubakoodziejczak
Beat Up X Button remix
by jacejim1809
Beat Up 1-Ball! [1]
by newmyles
BazMannBach's Russian Alphabet Lore in RALR style
by Pierrot2030_4th
Fire Truck Rescue!
by catathebest100
カービィのピクセルRPGシューティング v0.7
by su2014080902
Charlie the steak (v4.5.1)
by infinateyyy
Scratch4.0
by Nishikobito
Alphabet Lore but the word is "FF" instead of "FRIENDS"
by earthmarble
Flappy Dragon!
by LPalmtree
Paper Minecraft Updated (1.22) #popular #trending #minecraft #games remix
by banditbonfire
make your own BFB / TPOT but humans???
by Sprunkina
the mine song but its text to mp3
by Antcruz
Add a button to beat up Microsoft Sam even more!
by safetystephen
Wafer Gets Candy And Ungrounded!
by xxxAnimeGachaxxx
Make Your Own Hurricane Season 5 v1.21
by qwe200
Beat up Herobrine with angry birds
by TheReturnOfDraco
Minecraft
by TestificateT
Super Princess Peach Odyssey 2D | Super Mario Odyssey 2D Remake | Cascade Kingdom
by yappydo
Beat up King Pig 2 (add a button) [5]
by JPPORTUGAL
Baile de la vaca polaca (sub. Volumen)
by ReyTaragranca
add a button to beat up me
by everton_trader2