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

BFDI Balance Beam Randomizer Remastered But Almost Everyone Has Their Own Ability remix

by Antwaniquahill235

Project thumbnail
View Project

Talking tom and ben remix 12x remix remix-2 remix remix remix remix remix

by everton_trader2

Project thumbnail
View Project

endless music extra notes remix

by jade101717jade

Project thumbnail
View Project

Nightmare | Just Shapes And Beats Custom Level #games

by nak2-

Project thumbnail
View Project

Microsoft Windows 2000 TE

by tkomps201016

Project thumbnail
View Project

Remix Then Make The Black Hole Bigger! | 1

by MakeingDone

Project thumbnail
View Project

Beat Up Stepshape [6]

by Delightful2025

Project thumbnail
View Project

-<[{(Collabs)}]>- talking tom and ben news 1080P V3

by lukemanolopoulos8

Project thumbnail
View Project

Asriel Fight PREVIEW (But with better graphics)

by Balunsat123

Project thumbnail
View Project

Seadtype V26.3

by stevenrobloxisback

Project thumbnail
View Project

(AY) When you RUNNIN' In The Leaf Storm [0]

by MMF75000_Scratch

Project thumbnail
View Project

R

by -_-Kirio-Kun-_-

Project thumbnail
View Project

Twister Run | tornado chasing

by masonaura25

Project thumbnail
View Project

cnv

by hadar12

Project thumbnail
View Project

All Numbericons 1-2000 Different Styles

by vanhouchin

Project thumbnail
View Project

Super Mario Odyssey sprite pack

by K00PA_K1D

Project thumbnail
View Project

Deltarune Battle Simulator V4

by Scube3000

Project thumbnail
View Project

ARE YOU LOOKING AT THIS?! (but its flumpy) remix

by CLAX1212

Project thumbnail
View Project

Bouncy Ninja 2 Hacked Hacked

by KoreanCoder7931

Project thumbnail
View Project

JumpStart Number Band: 701-800 (Individuals) remix

by bhfrhfh

Project thumbnail
View Project

ABC Song Remix

by BraxtonDill

Project thumbnail
View Project

Beat Up Disney Junior O vr 1.3

by JPPORTUGAL

Project thumbnail
View Project

DEFACE ELSA: Derpy Afro Billybob w/ a Unibrow and Snot

by VCcortex

Project thumbnail
View Project

Mappy Demo

by Etech4