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

Windows 7 Virus Simulator

by BlackOfficial9

Project thumbnail
View Project

Wither Storm Simulator 5 (remix of cr33p3rz and sonicthehedgehog859)

by pjacob1414

Project thumbnail
View Project

Harmonic Pendulum Wave

by TheProScratcher2012

Project thumbnail
View Project

endless numbers as humans

by Obaoon115

Project thumbnail
View Project

UPDATE talking tom and ben news 9 V4 added all hd remix remix-2

by bonzi346

Project thumbnail
View Project

Super Mario Advance 4 Super Mario Bros 3 Online Multiplayer

by GalaxyDash799

Project thumbnail
View Project

Meggie Rosa

by TheDisBack

Project thumbnail
View Project

The Uncompleted Endless Number Animations Fixed!

by Crazypantz19

Project thumbnail
View Project

argam endless numbers (dess - score)

by infinityruan

Project thumbnail
View Project

Fire Fnati Images

by NICERIOBEDO

Project thumbnail
View Project

Mustard Vineria's Stomach Growling

by SadieKA

Project thumbnail
View Project

triagonal

by djsparta

Project thumbnail
View Project

Marx Soul Boss Fight (Kirby Superstar Ultra)

by Superkoopa_64

Project thumbnail
View Project

Mope Sandbox

by Memepig23

Project thumbnail
View Project

Tabi Test (FNF) V3

by AverageUSSRSoldier

Project thumbnail
View Project

Jimmy Stickboy: Escaping the prison

by tomtit2012

Project thumbnail
View Project

QC's Disney Junior Logo Bloopers 3 Part 13 - It's Randomized (J dies) remix

by Tvokidsguyperson

Project thumbnail
View Project

everyone fights bad scratchers

by hyd3ns33k

Project thumbnail
View Project

idea attack v2

by Robbiej2009

Project thumbnail
View Project

Death by glamour Perfect reproduction

by gan_man

Project thumbnail
View Project

Paper Minecraft 2D v11.6

by SilverRioSky

Project thumbnail
View Project

Numbericons 7801-7900

by vanhouchin

Project thumbnail
View Project

FNF test Ultimate remix

by xxlltt

Project thumbnail
View Project

Weird Strict Dad Roblx Speedy Dad gamemode by Rip_Ryan (or Ryan_Stratford)

by Ryan_Stratford