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 X Button

by crazycrazybaby17

Project thumbnail
View Project

Beat Up Horrid Henry (Ultimate Edition)

by MixelsFans2014

Project thumbnail
View Project

More Button remix remix

by jakubko2010

Project thumbnail
View Project

Numberblocks Intro gone wrong Even more rCRYA

by oliveira_7g

Project thumbnail
View Project

Fidget Spinner HD v2

by Raimds

Project thumbnail
View Project

Forsaken SCRATCH(0.9.0)

by Egor0509

Project thumbnail
View Project

Klasky Csupo Nightmares (The Official yoyo Retake)

by yoyo17988

Project thumbnail
View Project

إنذار EAS الألماني remix

by PlanetCocukYediYasve

Project thumbnail
View Project

Magic Tiles 3

by skyfall123321

Project thumbnail
View Project

Dodge the Nerf // #Games

by Jeby1003

Project thumbnail
View Project

Leon and Tucaneon Arts: Leon and Tucaneon meets Old Clones

by CyAndreaJune272010

Project thumbnail
View Project

Numbericons 1-2400

by vanhouchin

Project thumbnail
View Project

Angry Birds Remake remix

by lev123a

Project thumbnail
View Project

⭑ ★ ❶❷❸❹❺ | TᕼE ᔕTᑌᗪIO ᗪOOᖇᔕ Oᖴ ᑎᑌᗰᗷEᖇᔕ • ᑭᗩᖇT ❻ • 520 ᗪOOᖇᔕ | ❻❼❽❾❿ ★ ⭑

by Kyle3912Again

Project thumbnail
View Project

Scammed!... | #All #Animations #Games #Art #Stories

by Cool_NickXD

Project thumbnail
View Project

Beat up Giga (MOST VIEWED) remix

by hyd3ns33k

Project thumbnail
View Project

【3D】car race!車のレース! remix remix-2

by janbbbb

Project thumbnail
View Project

Beat up Gelatin DLC v50.67

by gavinandrei23

Project thumbnail
View Project

☁️ Among Us (hide and seek)

by HuggsyWuggsy

Project thumbnail
View Project

Pizza Tower Engine Cooldude's Lap Mod v1.7!

by Cool_DUDE_78

Project thumbnail
View Project

5NAF 1 / FNAF 1 - Five Nights at Freddy's [Remastered]

by real_tj

Project thumbnail
View Project

Make Your Own BFDI/A//IDFB/BFB/TPOT (rejoin fixed!) (includes easter eggs!)!) remix

by Yoshilover2023

Project thumbnail
View Project

Endless Wordplay Russian: Question

by JOAOPEDROeULIANA

Project thumbnail
View Project

Add To Button to Beat Up Stickman (31)

by GooleSharty122