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

The Black Hole Add Round 56

by charliechooch101015

Project thumbnail
View Project

sinner edition but Mr. BALCK from paraspeunki is here

by catboy0228

Project thumbnail
View Project

Team 2 Network Button Heads

by S15RMXPictures

Project thumbnail
View Project

Street Vehicles 2

by myself_-_-_alt

Project thumbnail
View Project

// Wobbly Life // Cloud Mutliplayer // EARLY ACCESS //

by tcsmc-ljcoder

Project thumbnail
View Project

Creatures of the past

by PyroTheDemonWolf

Project thumbnail
View Project

Beat Up Baby Shark (2)

by Traw2016

Project thumbnail
View Project

Russian alphabet lore interactive

by Myownscratchuser31

Project thumbnail
View Project

Beat up False Report (6)

by chriswal1200

Project thumbnail
View Project

Piano player #Music

by MikhailKachan11

Project thumbnail
View Project

作成中[3D] 8ツアー 8Tour

by T2014322

Project thumbnail
View Project

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

by doddwell

Project thumbnail
View Project

Samsung Galaxy S21 Shutdown

by kagel

Project thumbnail
View Project

SA! DUSTTRUST

by SCHOOLTALE_ACCOUNT

Project thumbnail
View Project

Symphony II AMV

by mashkosh319

Project thumbnail
View Project

qwertころころ17「Rolling Sky Edit - Summer (Desert Bonus) ✩✩✩」

by qwert-hptgbdesu

Project thumbnail
View Project

Fidget Spinner V.XII

by shadow10988

Project thumbnail
View Project

this is why you never drive with terrible dad

by hey5668872

Project thumbnail
View Project

maybe it's the way your dressed

by superkirbyjr

Project thumbnail
View Project

Geometry Dash wave (extreme wave challenge super hard)

by bradlyjr

Project thumbnail
View Project

Super Nano DVD Menu Test

by NanotheMaker

Project thumbnail
View Project

Beat up Tennis Ball Ω

by HomeWithKuya

Project thumbnail
View Project

Blood and Steel

by Daysquirrell3408

Project thumbnail
View Project

Endless Numbers Divided concept remix

by tetinmouse