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 Windows 2: Baldi's School Education School Edition

by feifei2020

Project thumbnail
View Project

beat up sonic the hedgehog more buttons

by Lestat1025

Project thumbnail
View Project

The Black Hole (Add Round 2) remix remix

by RayatHasan

Project thumbnail
View Project

Beat Up Pin

by BFDIEditor12

Project thumbnail
View Project

Beat Up Evilbross v0.3 remix remix remix remix remix

by pmz34

Project thumbnail
View Project

Beat Up Best And Bester (2)

by lukemanolopoulos8

Project thumbnail
View Project

3D cricket batting and bowling

by tumbum12

Project thumbnail
View Project

-<[{(Collabs)}]>- Talking Tom and Ben News Extra HD (New Version) remix

by JojosWorld32

Project thumbnail
View Project

beat up uplu

by Hami2909320

Project thumbnail
View Project

Sprunki Oc bonus human edition pack v1

by Amarasalah

Project thumbnail
View Project

beat up the scratch cat remix remix remix remix remix remix remix remix remix remix remix remix

by MyCottage

Project thumbnail
View Project

vibe check - a Walt Disney short

by fnaf_game232

Project thumbnail
View Project

ITT Countdown 1996/97-1997-98 Short

by BrunswickFan

Project thumbnail
View Project

Jotaro vs DIO

by PlsGiveMeT0es

Project thumbnail
View Project

Minecraft Super Mod!!

by phantheminh

Project thumbnail
View Project

Beat Up Quacker (34)

by owenbladesownchannel

Project thumbnail
View Project

Drop the eraser! / 消しゴム落とし! 2

by nyanko-y

Project thumbnail
View Project

rush jumpscare #scary #doors #animations

by Ninjaboy402

Project thumbnail
View Project

Happier

by TheGoaT717

Project thumbnail
View Project

mappy vs mewkies!

by Thisismine1243

Project thumbnail
View Project

It Sounds very familiar

by KAR88F

Project thumbnail
View Project

Alphabet Lore but it's Kazakh (My Version)

by The_Meme_King_44

Project thumbnail
View Project

DvD logo simulator

by YVASU

Project thumbnail
View Project

【軽量版】Jester Mod ☁️ Among Us アモングアス scratch v0.27 (online)

by purupann