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 Sonic (MY VERSION.) remix (RE-UPLOAD)

by Draven1205

Project thumbnail
View Project

beat up riggy

by sodamiles105yt

Project thumbnail
View Project

German Silly Sausage Extreme! (Based Off 1998 Bop It Extreme) remix remix-2

by Bopitman2

Project thumbnail
View Project

FNF Jeffy's Infinite Irida | Execretion test [UPDATE]

by Jayden40175

Project thumbnail
View Project

Power of 2 Number Evolution: 65536

by zinedine89

Project thumbnail
View Project

cube root numbers band 15 - 16 for sj

by infinityruan

Project thumbnail
View Project

scratch cat shooter game

by browat111

Project thumbnail
View Project

Kick the buddy no mercy 2011 : Scratch Edition!

by JudeZach2014

Project thumbnail
View Project

(REAL) Uncannyblocks Band Para Different (121-130)

by juanfrilla

Project thumbnail
View Project

Windows NT 4.0 Simulator

by win98scratch

Project thumbnail
View Project

The maze of doom

by Herobrine84726

Project thumbnail
View Project

"Oh, Mr.. Mayor, I'm making a list" (Stingy text to speech remix)

by P1zzaGob1in

Project thumbnail
View Project

Numberblocks Band Millionths 13

by HTPC19512

Project thumbnail
View Project

SDGsスクラッチver.素材配布(エンジン)

by itakun16

Project thumbnail
View Project

逃走中‼︎ ver 1.5

by kazukun1002

Project thumbnail
View Project

Beat Up Scratch Cat 4 hacked (RELOADED)

by Wheotley

Project thumbnail
View Project

RECROOM

by rthapa3409

Project thumbnail
View Project

[スクリプト演奏]ミックスナッツ/Official髭男dism

by amo0926

Project thumbnail
View Project

Alphabet Lore Remake (6.6/26) remix

by NatLovesLogos

Project thumbnail
View Project

Cut the rope v0.7 with menu music

by GoodPiggies2

Project thumbnail
View Project

PBS Kids Dot ID (1999-2013) In CoNfUsIoN

by scratchbaby2016

Project thumbnail
View Project

idk what have i maAAAAAAAAAAAAAAAAAAAAAAAAAAAAde remix remix

by gudfsijacxvuvjef

Project thumbnail
View Project

Minecraft Scratch Editon 3D v1.1.1b W.I.P

by codingmadness98

Project thumbnail
View Project

beat up rusty

by Tyler-Time