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

2005 Discover Card New Year countdown remake

by SkyPPTOScratch

Project thumbnail
View Project

Interactive FLQ Spanish Alphabet Lore [FIXED C] animated

by Wow_The_Wow_Eric

Project thumbnail
View Project

Beat up the goomba! remix

by jace1809

Project thumbnail
View Project

Strepsils "Alphabet lore" (Gala Khol... Khul ke Bol!)

by Alphabe-Lore

Project thumbnail
View Project

Peppa Pig Gets Grounded 5 for HDS

by StormProductions7

Project thumbnail
View Project

Beat up Sonic reboot

by lukemanolopoulos8

Project thumbnail
View Project

Taiko Station Ultimate (Pop Tap Beat Controls)

by reeshaha

Project thumbnail
View Project

Minecraft Java Edition 3

by nhuedoanh5b

Project thumbnail
View Project

my planetblocks band 1

by numberblocks415

Project thumbnail
View Project

fanf for free!

by KO0L_

Project thumbnail
View Project

⊹ ࣪ ˖͙͘͡★ LIFELIGHT⊹ ࣪ ˖͙͘͡★ Part 8 () WIP

by 91207

Project thumbnail
View Project

MR. (Ant) TENNA'S TV TIME!!! (Deltarune Chapter 3 Recreation)

by SealsCoolCreations

Project thumbnail
View Project

Beat Up Emily Remastered

by Johnnythemenesetwo

Project thumbnail
View Project

make your own BFB ( SPRITES CHANGED) remix

by boeeeeyyy

Project thumbnail
View Project

オンライン! スーパーバトルゲーム!

by mochimochiG

Project thumbnail
View Project

青の塔6階

by sakaryuu

Project thumbnail
View Project

The Studio Door of Numbers X (30 Doors) remix

by D_buff

Project thumbnail
View Project

1-1000

by mrdapotato

Project thumbnail
View Project

UNDERBLUE sans theme【Stop Genocide】

by SYASYASYANOSYA

Project thumbnail
View Project

add some stuff to beat up scratch cat 3.0 remix

by Dylan71312

Project thumbnail
View Project

ball clicker

by bestcoderever1298

Project thumbnail
View Project

Blue Mist Plus 7,000 All Jumpscares

by Jharring20

Project thumbnail
View Project

ᴘʟᴜɢ ᴍᴇ ɪɴ || meme || ft. The Chosen One

by justcode12

Project thumbnail
View Project

Z-60

by E-200_Interm-Rooms