Realtime Affine Texture Mapping (WIP) copy

Realtime Affine Texture Mapping (WIP) copy

by DCPU-16

👁 6,256 ❤️ 239 ⭐ 190 🔄 4
Created: May 30, 2013 Last modified: Jul 23, 2013 Shared: May 30, 2013

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

Project thumbnail
View Project

UPDATE talking tom and ben news 9 V4 added all hd 9 zero tweqq eewqeqwq qweqwq ewqrty ertyip … remix

by everton_trader

Project thumbnail
View Project

Nich Fight Cloud (CartoonMania MEME)

by jaeonr

Project thumbnail
View Project

catたちがファイブボンバーに挑戦するようです

by kawachi-kun

Project thumbnail
View Project

(AY) The Approaching Black Hole [3] remix-2

by Knox123ABC

Project thumbnail
View Project

Make Your Own IDFB

by FanInanimateInsanity

Project thumbnail
View Project

Squid Game (Part 3): Tug of War

by Vlad0-0

Project thumbnail
View Project

Die of death [V2]

by _V2_Purple_V2_

Project thumbnail
View Project

Mingle / (SD-K’s trauma of losing her parents)

by aphmau_kid

Project thumbnail
View Project

The Scratch 3.0 Show: GameBoy-@!4#%%#%#.>$.565.66.5.42,111#2,,,

by Windows_error2

Project thumbnail
View Project

Super Mario Bros. 'Unofficial PC Remake'! (READ DESC)

by myeongchan

Project thumbnail
View Project

The Studio Doors of Numbers I - Part II (151 Doors)

by Twin138956Scratch

Project thumbnail
View Project

四角んの旅~3Dバージョン6~

by coding0619

Project thumbnail
View Project

Beat Up Evilbross extreme

by newmyles

Project thumbnail
View Project

Beat up dora remix

by newmyles

Project thumbnail
View Project

Image antialiaser V1.1

by AntoineTelgruc2

Project thumbnail
View Project

VOIDCRAFT - Open World Space Survival V1.7

by JOSHUA_PRODUCTIONS

Project thumbnail
View Project

UNDERTALE HARDMODE SANS FIGHT!

by tomokatu_game

Project thumbnail
View Project

Beat Up Ballerina V 1.1 remix all button

by GRECIALINDA

Project thumbnail
View Project

Super Sonic Maker remix

by Classictails1991

Project thumbnail
View Project

beat up Giga! 1!

by Dre-8-years-old

Project thumbnail
View Project

f n a f 2 + custom night ;) remix

by blue-dinosaur123456

Project thumbnail
View Project

if the darkness took over unlock the door meme

by Paramountgamerfan

Project thumbnail
View Project

ADD YOURSELF USING TOOLS TO DEMOLISH SPRITE1 (MY UPDATE!)

by dirtotheobjectrises

Project thumbnail
View Project

Opening to Inanimate Insanity: The Complete First Season 2015 DVD (Entertainment One print)

by squarebrett