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 White F (ghostbusters85's Imposter Clone) 5

by LBTheELAFan2011Alt

Project thumbnail
View Project

Charlie the steak

by Xxuttercasher

Project thumbnail
View Project

Super Punch Out Macho man demo 3

by reallythebest45

Project thumbnail
View Project

Numberblocks Band Retro 11100-12000

by alt1043

Project thumbnail
View Project

Windows XP

by Fedor_Barkun

Project thumbnail
View Project

difficulty emoji cat set! remix

by MusicalIsland1

Project thumbnail
View Project

spru...but what is this? (in progress)

by skibiditoilet5012

Project thumbnail
View Project

(13+UPDATE) Mario Madness-Demise-(Playable) remix

by Meggal

Project thumbnail
View Project

Toodles And TubbDub Are Step Brothers!

by JoshuaThePea

Project thumbnail
View Project

Green Sans Phase 1-3 Battle Overview [Unofficial]

by BossHim

Project thumbnail
View Project

triagonal

by djsparta

Project thumbnail
View Project

Super Mike World - Full Version

by ToadfanSchool

Project thumbnail
View Project

Numberblocks Band Quarters 4 (Version 2 + For MrBond,Band Version)

by atakan9

Project thumbnail
View Project

Celebrating Scratch Week!

by ScratchCat

Project thumbnail
View Project

Battle royal online | #games #all #art #annimation #english #french #online #bingfox1

by bingfox1

Project thumbnail
View Project

Severance V2

by MossyDataBase

Project thumbnail
View Project

Do you ever look at someone and wonder...

by TheRedOrzu2

Project thumbnail
View Project

Playkids Band 9 (Remake)

by SharkyBlues3rd

Project thumbnail
View Project

夏のプラットフォーマー summer platformer

by KARAAGEP

Project thumbnail
View Project

東方宵弾捧 深闇の炎花火

by EUotsuma

Project thumbnail
View Project

ᴢᴏᴍʙʟᴇᴛ 2 BLOOD RUSH (OPEN BETA)

by screencheese_youtube

Project thumbnail
View Project

Interactive Endless Letters (Uppercase) Greek remix

by JaydenGamerzTube

Project thumbnail
View Project

beat up Omega Flowey! (41 buttons)

by Joseph-9c

Project thumbnail
View Project

Barney OS glitch (Read notes!) remix

by julitohernande