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
ULTIMATE SONIC SPRITES
by muymik123
-<[{(Collabs)}]>- Jacob And Friends News
by LisaGamingYT
Numbericons 1-1100
by jayden2015paul
SpongeBob SquarePants: Intro 2026
by amigoboy2
Beat Up Handy Manny but with Acid remix
by LiamPenPal026
(ill be yellow face ig) NEED A WAY TO MAKE YOUR OWN TPOT?? THEN START A TPOT CAMP!!
by tannerjj11
animation pt.2
by mars_2015
yeah i gotta agree with my oc star
by sonic_thejojo
Grow a Garden
by pikachu_90854
Talking Tom And Ben News remix-2
by KUKupono
Sonic The Hedgehog Maker
by cs1155403
超短編アニメ #6 ー 踊り
by sab_pg
messing with the mine song, part 2 (Give Me Your Suggestions About What I Should Add Next!)
by tamagotchigamer5
Make Your Own BFDI/BFB but Only Warm
by ZayaTheIncredible
Studio
by Louison-B
Kirby Klash Healthbar Tech Demo
by SUPA61
Record Player - AMCE
by Puffin43
Beat Up PB (Puffballs Revenges)
by funnyare2312
S̵̱̑ā̷͜n̵͓̈́s̸͙̒a̸̢͘ť̸͎i̴̩̇o̵͈͘n̶̗̊å̷̮l̷̢̽ ̴̼̀ḭ̸̓l̶̟͒l̵͕͊n̷̘͋e̵̤̾s̶̙̐s̷̔ͅ
by Eli333GD
Angry Birds 2 Game
by Super_1234Super
Beat up Sonic (Updated)
by Kuba-Kolodziejczak2
the full RALR cast 15.0! remix
by PisAWEsome
[オンライン氷鬼] サーバー1 ver1.40
by huaiyaaaa
add a button to beat up Nano: 2024 edition [9]
by newmyles