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
IDFB/BFB Contestant Generator Game remix
by dougz00
-<[{(Collabs)}]>- Talking Tom And Ben News Retake's. (VERSION 1/OLD VERSION)
by PixarFoxTUBA2024
FNF : {PLAYED} ANSCRATCHER0 ENGINE
by AnScratcher0
Make your own BFB / TPOT vectors
by pete347
Beat Up 1-Ball! [5]
by newmyles
RBMK-1000 NPP simulator ver 1.4
by TomCatMad
Beat up black V3
by Ken2012dog
Beat Up OLEG 4 (1)
by pmz34
Make your own BFB / TPOT but every team is different versions of one character
by skylerthecoolguy1234
Magic Tiles 3 but better
by SMILEINGCRITERS1234
Now I'm BANNED FROM CHATING FOR 30 MIN FOR ASKING FOR SPRITES!!!!
by DBGT12345
Geometry Dash
by EskolabarriPiero
Log In! | Puzzle Game
by Draiveri
BFB 22 Elimination Song
by tungster938
☁Fighters2 ゴンザレス追加!
by taku4-3-12
Dodge Game
by DarioGAMER64
ビル経営ゲームv6.0 _ remix
by dmmo-com-jp
♪ Alone / Alan Walker ♪
by K-Orange
Numberblocks intro season 8 remix-2
by scratchbaby2016
太鼓ですドンV2 ソーラン節
by programing-kaisya
[Pre-Scratch 3.0] Numbericons 1-3720 Vectors remix
by jayden2015paul
Super Mario Land 3
by ecertcytutor
Numbers Negative Absolute Infinity to Beyond Skibiditoiletplex (Part-3)
by carryondaksh133
Difficultyblocks Band new and old
by mugpanic