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
UPDATE talking tom and ben news 9 V4 added all hd 9 zero tweqq eewqeqwq qweqwq ewqrty ertyip … remix
by everton_trader
Nich Fight Cloud (CartoonMania MEME)
by jaeonr
catたちがファイブボンバーに挑戦するようです
by kawachi-kun
(AY) The Approaching Black Hole [3] remix-2
by Knox123ABC
Make Your Own IDFB
by FanInanimateInsanity
Squid Game (Part 3): Tug of War
by Vlad0-0
Die of death [V2]
by _V2_Purple_V2_
Mingle / (SD-K’s trauma of losing her parents)
by aphmau_kid
The Scratch 3.0 Show: GameBoy-@!4#%%#%#.>$.565.66.5.42,111#2,,,
by Windows_error2
Super Mario Bros. 'Unofficial PC Remake'! (READ DESC)
by myeongchan
The Studio Doors of Numbers I - Part II (151 Doors)
by Twin138956Scratch
四角んの旅~3Dバージョン6~
by coding0619
Beat Up Evilbross extreme
by newmyles
Beat up dora remix
by newmyles
Image antialiaser V1.1
by AntoineTelgruc2
VOIDCRAFT - Open World Space Survival V1.7
by JOSHUA_PRODUCTIONS
UNDERTALE HARDMODE SANS FIGHT!
by tomokatu_game
Beat Up Ballerina V 1.1 remix all button
by GRECIALINDA
Super Sonic Maker remix
by Classictails1991
beat up Giga! 1!
by Dre-8-years-old
f n a f 2 + custom night ;) remix
by blue-dinosaur123456
if the darkness took over unlock the door meme
by Paramountgamerfan
ADD YOURSELF USING TOOLS TO DEMOLISH SPRITE1 (MY UPDATE!)
by dirtotheobjectrises
Opening to Inanimate Insanity: The Complete First Season 2015 DVD (Entertainment One print)
by squarebrett