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

G, Ballerina S6 Dora, Leafy, Firey, Bubble, Abby, Pinkerton Little Blue, Scampi, Yoshi, Rocky (Endle

by imstillback08

Project thumbnail
View Project

Make your own Inanimate Insanity Invitational!

by ReidRulesIT

Project thumbnail
View Project

Endless letters

by 29sea11

Project thumbnail
View Project

MARIO KART 720

by mynamisaxel

Project thumbnail
View Project

Detyra-Text to speech

by probitmedina

Project thumbnail
View Project

TORNADO

by CirroCellus

Project thumbnail
View Project

dont let your kids watch it! But Combo remix remix

by tiziland009

Project thumbnail
View Project

JSAB: MissionForceThree's Take

by MissionForceThree

Project thumbnail
View Project

Beat up Edward remix-2

by azoriad

Project thumbnail
View Project

Beat up Barney!

by Klaskychoopo64

Project thumbnail
View Project

AMMO is your HEALTH

by Trooper_31

Project thumbnail
View Project

Magic Tiles 3

by unikittygirl345

Project thumbnail
View Project

Angry birds level maker!

by Marcel1607

Project thumbnail
View Project

Samsung Galaxy z flip 3 5g ≋Simulator≋

by petergamesapple

Project thumbnail
View Project

Matrix Code Rain

by papipupepappa

Project thumbnail
View Project

EAS Alarm Collection

by Emerald2019

Project thumbnail
View Project

Beat up Numberblock 1 DLC remix

by pocoyoKirk

Project thumbnail
View Project

COS v1.3

by Collertabber

Project thumbnail
View Project

ε›½ι›»εœ°η„γ‚’ε†ηΎγ—γ¦γΏγŸ(ζˆη”°η·šζˆη”°ι§…θ»ŠζŽŒγ‚²γƒΌγƒ )

by stomo_x

Project thumbnail
View Project

[ * ALPHATALE * ] - Error 404 sans simulator

by fredbeargamingbros1

Project thumbnail
View Project

Add a button to beat up Mega Photo 2

by juliescott12

Project thumbnail
View Project

Xbox 360 startup

by ZeeGaming1520

Project thumbnail
View Project

Har har har clicker remix

by rubiksprofessor

Project thumbnail
View Project

Preview 2 Scratch Cat In Chorded + G Major 11

by Little_Cat2014