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

try to forget her (animation)

by Zacccatttaccc

Project thumbnail
View Project

Numbers Band 78

by PrincipeJosh

Project thumbnail
View Project

Endless numbers remix

by DoggyFrosty

Project thumbnail
View Project

Spiffy Pictures.exe Looks Comparison

by kuyanimaxwel

Project thumbnail
View Project

Beat up boa 2

by SamiSamantaG

Project thumbnail
View Project

Beat Up Redy super hard ( OG REMADE )

by Pearly_Gir1

Project thumbnail
View Project

Endless alphabet A-2 - I

by JaydenGamerzTube

Project thumbnail
View Project

Angry Birds Scratch by cs3019535

by Israel_oc

Project thumbnail
View Project

Thingbox Extras: Congle Eats Marshmallow Mateys

by mikey_mike

Project thumbnail
View Project

ƨllɒW bniʜɘઘ - ⸮v xodY

by PhilBru4

Project thumbnail
View Project

Add a button to beat up the Snowman! (5)

by tiziland009

Project thumbnail
View Project

Elementibox girls? what are you doing here? (FT. frostie sugarball)

by pink_fluffy_42

Project thumbnail
View Project

Slinging Ver 1.6 #games #trending #all

by Ahnaftheguy

Project thumbnail
View Project

BFB contestant generating game confusion

by FireyIsAmazing

Project thumbnail
View Project

Numberblocks Basics 6 Remastered Plus 2 remix

by ConstanSamuel

Project thumbnail
View Project

Numberblocks Band Quarters 19 Remastered

by Brycen123g

Project thumbnail
View Project

Friday Night Funkin' B3 Remixed | B3 Screamixed

by CharizardAaroshdude

Project thumbnail
View Project

83% pen piano roll Black midi nights of knights

by fireshukkun1214

Project thumbnail
View Project

Numberblocks Band Hundredths 40

by gabrielrfernandes

Project thumbnail
View Project

異子鳥GAME Mission:Save the Alien -フルop- 「Long shot」

by mikorin

Project thumbnail
View Project

McDonald's Logo

by jdnsp06

Project thumbnail
View Project

Penalty Shootout

by DisBlueCat

Project thumbnail
View Project

Alphabet Lore: M

by --RedAnimations--

Project thumbnail
View Project

放置ゲー×バトルゲー2"P"=超拡散希望=

by poooooooooonta