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 Bonzi Buddy 6 remix remix remix

by everton_trader2

Project thumbnail
View Project

Lag Detector

by Williamja

Project thumbnail
View Project

Crackers Wither Storm Simulator

by TheSunOfSpikeball

Project thumbnail
View Project

THE BACKROOMS 3D

by WolfGamer24487

Project thumbnail
View Project

PBS KIDS Live TV: Dot

by NumberblockFaner303

Project thumbnail
View Project

Acheron Wave/ Remix/ UNBEATABLE remix

by ggeometryddash

Project thumbnail
View Project

Color bars second heaven

by LTV2008

Project thumbnail
View Project

Royal Flush! vA

by Boxxymations

Project thumbnail
View Project

Jevin's stomach growling

by SadieKA

Project thumbnail
View Project

BLOX FRUITS HACK FREE CDK AND LIGHTNING AND PAIN AND DRAGON REWORK!!!!!!

by LongTran-2015

Project thumbnail
View Project

Omega Spiffy skits

by SemidemiSerce

Project thumbnail
View Project

Blue Mist Plus All Jumpscares - 1 Googolplexs. FIXED

by Shaylag76

Project thumbnail
View Project

PBS Logo With Announcer Voice (inspired by logobro's video PBS Alt. Timeline)

by bbctimermaker22

Project thumbnail
View Project

The Studio Door of Numbers X (43 Doors)

by MaxZGaming

Project thumbnail
View Project

it's sonic Anti Piracy Screen remix

by mboyandlego16_sonic

Project thumbnail
View Project

FNF: VS. Dave And Bambi Golden Apple Test #All

by Thenoobsoob12345

Project thumbnail
View Project

[undertale]Origin!Sans戦

by tomato_5-4

Project thumbnail
View Project

VS Corrupted Phineas - Friday Night Funkin'

by FlyingMusicNote

Project thumbnail
View Project

Oxyrex's Mystery BETA 0.2.0?

by marcscratch33

Project thumbnail
View Project

Beat Up The Vegan (CMbridge's version) V13

by therealbalconyyt

Project thumbnail
View Project

Pikmin Scratch - Early Demo 1.1

by Spaghetman89

Project thumbnail
View Project

RGB Digital Clock

by edgarplaysminecraft

Project thumbnail
View Project

Mello 2 // A Platformer #games

by chippm0nk

Project thumbnail
View Project

Add a button to Beat up Coral remix

by sdipadchromebook