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 Edward 6! remix-2

by everton_trader

Project thumbnail
View Project

Beat Up X Button

by crazycrazybaby17

Project thumbnail
View Project

[TSDoN-9 | 1000] ⭑★- ȶɦɛ ֆȶʊɖɨօ ɖօօʀֆ օʄ ռʊʍɮɛʀֆ ‣ քǟʀȶ 9 -★⭑

by elliotthenice

Project thumbnail
View Project

geometry dash 1

by erdemboylu

Project thumbnail
View Project

Talking Gummy Ask and Jackson Ask News Fast

by CanLoveToms

Project thumbnail
View Project

(VIRAL) Interactive Endless Numbers

by BTM2913

Project thumbnail
View Project

My New Numberblocks Set (Gen-4)

by SlugUser55

Project thumbnail
View Project

Mega Black Hole Add Round 5

by llya2023

Project thumbnail
View Project

OSU!

by QuarterWhite

Project thumbnail
View Project

world of jumpscares (add more jumpscares) remix

by bonzi346

Project thumbnail
View Project

Sonic the Hedgehog remix

by Saramartim

Project thumbnail
View Project

Endless Alphabet Lowercase: Bus

by ngocha5g1

Project thumbnail
View Project

Beat up the guy 2 v.4

by harrypotter4528

Project thumbnail
View Project

[Deltarune] The Roaring Knight Fight

by Bad_Time_Trio1

Project thumbnail
View Project

Wee wook pew an hau we wew

by azoriad

Project thumbnail
View Project

NumberIcons! Episode c: Мультипликационные Орбы! But Translated To English And Fixed

by nelon1029

Project thumbnail
View Project

beat up book 1.2

by Kaizo_Kolors3333

Project thumbnail
View Project

Beat Up Dot Add Round 1

by cleverkids06

Project thumbnail
View Project

ONLINE広場4

by puru01010

Project thumbnail
View Project

AY black hole

by enzo2011uk

Project thumbnail
View Project

Plane Game v0.7

by asherpiazzola

Project thumbnail
View Project

Beat Up Pb@j Otter

by JonDoe128

Project thumbnail
View Project

★★❶❷❸ • тнє ѕтυ∂ισ ∂σσяѕ σƒ ηυмвєяѕ • ραят ❼ • 738 ∂σσяѕ • ❹❺❻★★

by KARises

Project thumbnail
View Project

(RARE) NBC Logo (1954-1956)

by Chugvolution