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
bad piggies part 2
by Noel445
BubbleWrap
by andresmh
Mephone4 Simulator V1.1!
by TWOTHECREATOR
Numberblocks But it's date
by ElevenFootballThe31
Mii Workplace WIP
by marxsuperstar6
Seadtype V19.4
by Goodall8434
Everyone Is Angry Beat up L add Round 0
by oliveira_7g
BFDI 1a recreated in Scratch! #animations remix
by Briskg
GD faces V5
by owenfreund
Numberblocks Perfect Numbers + Sigma Function band
by nikinik2023
Team Ice Cube (BFDI X MSM)
by Thatonebluetwo275
Beat Up Minions Pig (M) ULITMATE 2.1.0
by LIGHT_PROGRAM
The Studio Door of Numbers X [ 48 Doors ]
by Twin138956Scratch
[ TS!SwapSwap ] Sans Fight Full UST
by SonicTr1327
sky ボールころころ22
by skyblueball2
Gobo Movie DvD Menu Walkthrough (Nederlands Version)
by chikitito77
(Snowballer Tower!!! + FINALLY NEW UPDATE) Tower Blitz v.3.3
by HollowKnightGames
Undertale: Red & Blue Soul Engine (Ver. 1.1) [PC/M]
by BluePheonix25
シムシティー 未来太陽系大航海時代DEMO1.0【アレンジ】
by ringedwood
Plants vs. Zombies DS - Vs. Mode
by GotsaGoFest
Give me an OC and i'll make it as a beat up X button! remix-2 remix-3
by bartolomai
[201] Beat up Sonic Definitive Edition remix
by zwillis11
Beat up й v2
by jojocon657
Talking Tom Cat 2 remix
by HarrisT2016