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 Talking Ben

by jakubko2010

Project thumbnail
View Project

Beat up Edward But With More Buttons remix remix

by bonzi346

Project thumbnail
View Project

Windows Mirar pack (a.k.a. Windows 7 in the alternative universe)

by patrule789678

Project thumbnail
View Project

Play My Mod Now

by liamt2807

Project thumbnail
View Project

BEAT UP PURPLE BLOCK IS BACK!

by DeTangoleafMan

Project thumbnail
View Project

My new bfb intro

by 1spaCe2dinOs

Project thumbnail
View Project

what if anglow on mech islet

by Fadzilla

Project thumbnail
View Project

Let's Draw!

by skylight-animator

Project thumbnail
View Project

LIGHTNERS LIVE - Deltarune Rhythm Game

by theemeraldsword85

Project thumbnail
View Project

Piconian Nano scares his Dad...GROUNDED!!! remix

by onecnc

Project thumbnail
View Project

Scratch Editor Vector Art

by JukeboxGames

Project thumbnail
View Project

Beat Up Cyborg 2: daisy? (0)

by elevatorkoneecodise

Project thumbnail
View Project

A two million celebration

by Vitality

Project thumbnail
View Project

Jumpscares

by JCPOOH

Project thumbnail
View Project

[100%pen]Animation Creation

by _applemango_

Project thumbnail
View Project

BOSSFIGHT Pt2: The Eye of the Eclipse

by bulbadolph

Project thumbnail
View Project

Interactive Endless Letters (Uppercase) Russian but its animated entirely

by uppersin

Project thumbnail
View Project

lolecos doggy 2

by misha

Project thumbnail
View Project

Life after people great collapses ver. 2 reversed

by epicboiiiiiq

Project thumbnail
View Project

The LMNOP Crew but they are all Equivalents of N (2.0) (NOW WITH J, K, Q, R & S!) remix

by decimalblocker

Project thumbnail
View Project

BFB/TPOT Contestant Generating Game But It's Unreal BFDI

by Lime549

Project thumbnail
View Project

Eat Em’ All ☁️

by PRINTMYLIFE

Project thumbnail
View Project

Windows vista Setup Simulator

by Jrr2014

Project thumbnail
View Project

BFDI Mini Contestant Generating Game

by SuperMissleAttack2