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 X Button
by crazycrazybaby17
IPH5's Shidinn Alphabet Lore
by insert-profile-here5
Beat Up Klasky Csupo! remix remix remix remix remix
by kubakoodziejczak
Sunnder and dusty saying mean stuff to Kiki and Bouba and starts to apologize to Kiki and Bouba.
by LydiaFoofa
Demon Vortex(All Pen) remix
by hwaJackson
Sprunki Bonus 2
by TheNightz_
Nickelodeon Creatures spell a game I made
by siddharth1717
Animation! with your Stylized tunner but...
by greytobeyall
[AYS] One Bounce (DIE OF DEATH)
by facerig_rig
爆笑短編アニメ #1041 人のものを勝手に取る奴
by ahun0918
I FINALLY GOT SHADOW MILK COOKIE!
by -Midnight-The-Wolf-
Black Hole bfdi sound
by Whenis2027
BEAT UP REPTLOW!!!
by coche60
Draw: The Platformer Level Editor
by Mrk20200
Beat Up Scratchy! added 2 more buttons
by DogDvd
Beat Up Scratch 3.0 (Added Ice) remix
by CLAX1212
Beat up Hammer Mario 3: Add a button edition [1]
by ismiiboy
Wii (MOST VIEWED PROJECT)
by gannongamescom
Fidget spinner
by Amityblue2022
ネプリーグ プレッシャークロック
by daisuke225
Angry Birds Lite
by Bob-Friend
Beat Up Scratch Cat 2.0 Chromebook Edition
by dfg287
The Longest Platformer ever- KAIZO edition
by LVgaming
tiny11 (Windows 11 Lite) 22H2 64-bit (NEW APP)
by logoalec