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

Aircat's Spanish Alphabet Lore in Bren319's style (Read the instructions). remix

by bluey697

Project thumbnail
View Project

Interactive Endless Numbers 58-75

by BTM2913

Project thumbnail
View Project

Jester Mod ☁️ Among Us Scratch v0.27 (online) remix

by Sonic_Bruh

Project thumbnail
View Project

PvZ3: The New and Improved Version!

by RandomSuperMarioFan

Project thumbnail
View Project

Endless Music Mary Had a Little Lamb But Different by using New Endless Music Song Maker

by PersonalizePrint

Project thumbnail
View Project

Beat Up Super WHY!

by liamdvdthe2nd

Project thumbnail
View Project

Block blaster! CV Games

by LukaSikkel

Project thumbnail
View Project

☁ Scratch City ☁ Roleplay ☁ remix

by jozekmuzyk

Project thumbnail
View Project

Opening to dvd asdf50

by asdf50

Project thumbnail
View Project

2 Player Sans Fight, but with extra stuff. 1.3.4

by 25jverdin

Project thumbnail
View Project

test project sonic 2

by TTTEfanSQB

Project thumbnail
View Project

PBS Kids Fishbowl Id Remake

by SC9622

Project thumbnail
View Project

Elmo try's to beat up chuck e cheese and gets eaten by chuck e cheese remix

by chuck-e77

Project thumbnail
View Project

[SH04]史縫 月華珠薬 ~ Moon Rabbit's Medicine

by AT-8

Project thumbnail
View Project

Beat Up Cartoon Network [9]

by zzhhooookk

Project thumbnail
View Project

fish simulation (roi)

by guy670

Project thumbnail
View Project

Вести недели. 2 выпуск.

by PBSKidsFan2017

Project thumbnail
View Project

Discover Card 2004 Countdown Remake

by VinnieJay

Project thumbnail
View Project

Decision Number Morph III (pi > 12:34:56 pm)

by LD123Rises

Project thumbnail
View Project

Ultra Numberblocks Night 2020 remix

by Pavlyk1818

Project thumbnail
View Project

Beat up Edward DLC Reimagined 6

by kuyalouie

Project thumbnail
View Project

i wanna test the game

by 5A5LMINH

Project thumbnail
View Project

Bren319's Spanish Alphabet Lore 3.0

by zach20042013

Project thumbnail
View Project

Beat Up Mario

by ptv_23