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

Beat up Scratch Cat but you cant

by RushABCDEFG

Project thumbnail
View Project

Comment animations

by Anim8ify

Project thumbnail
View Project

BFDI & II Simulator Leak 3/3

by Thesonicfan1234

Project thumbnail
View Project

Object Invasion (old version) Contestant Generating Game

by dabbing_woody123

Project thumbnail
View Project

Scratch cat fall down the stairs and die not original

by chubbascratch456

Project thumbnail
View Project

TF! logo evilution (monde des titounis > mdt ! )

by Adriel-B

Project thumbnail
View Project

Pepperman.EXE

by thesecretsussy

Project thumbnail
View Project

Beat Up Pencil: ULTIMATE V1.4 (365 VIEWS!) remix remix

by tnwlss1013

Project thumbnail
View Project

The Uncompleted Endless Number Animations Fixed!

by Crazypantz19

Project thumbnail
View Project

Chibi lou's Jin Cai Bao Zhu

by mooncake2012

Project thumbnail
View Project

talking roby Ultimate remix

by doddwell

Project thumbnail
View Project

Mario Kart For Scratch V1.3

by mr-peperoni211

Project thumbnail
View Project

Stingy text to speech remix remix-2

by sgtshep9249

Project thumbnail
View Project

Bop it

by MiguelLovesCoding

Project thumbnail
View Project

Scratch Marble Race (v4.5) (Final)

by Twin138956Scratch

Project thumbnail
View Project

Epic!Sans Battle (Preview)

by Iseekperfection

Project thumbnail
View Project

The Mega Angry Birds Scene Creator (WIP)

by JSONexe150

Project thumbnail
View Project

last breath sans phase 3 fight FDY remake!

by Heartfulisland13-jp

Project thumbnail
View Project

Windows 7 Virus 2 (Short) remix-2

by Famous_666

Project thumbnail
View Project

「 Sad Cat Dance ✦ ⚠Fast motion⚠ 」

by Underfell_Sens

Project thumbnail
View Project

The Black Hole (Add Round 0) remix

by kaa94

Project thumbnail
View Project

Burmese Alphabet Lore Concept V2:ဆ P1

by 128087t

Project thumbnail
View Project

World's Hardest Spider | GD 2.2 Editor

by geometrydash-creator

Project thumbnail
View Project

ghost pig vector

by taylan52