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 vupsen (2024)

by andrewfans-scratch

Project thumbnail
View Project

Baby Santa’s music box Zastrow Edition DVD Menu

by Jaxonzastrow63

Project thumbnail
View Project

Jujutsu Showdown (Release)

by Superdudethatscool15

Project thumbnail
View Project

MIXELS: Season 2 - Introduction

by Malememe

Project thumbnail
View Project

Beat Up Trash Can (8/FINALE)

by JPPORTUGAL

Project thumbnail
View Project

Barney Error (FOR SCRATCHFLIX)

by BTBFanaticCBB2015

Project thumbnail
View Project

[Deltarune] - Gaster Fight

by chairwithpencil3

Project thumbnail
View Project

Yeeting more Sonic AUs into Warrior Cats

by Funnymon260

Project thumbnail
View Project

This Week in the UFL: Week 10 (2025)

by 3136146

Project thumbnail
View Project

Glaxinkan Alphabet Lore scenes: N finally seeing F back to normal

by DZSTheCreator

Project thumbnail
View Project

Part 92,200 to 2,299 Jumpscares (Part 3 of Blue Mist Plus 2,000 All Jumpscares) copy copy copy remix

by Jharring2025_24

Project thumbnail
View Project

Avoid it for cancelling Warner Bros. Discovery!

by TerrytoonsFan1930

Project thumbnail
View Project

Beat up stickman another new mini update

by bennybean07

Project thumbnail
View Project

Add a button to beat up Nano! (Remixed too many times!) remix remix

by Klaskychoopo64

Project thumbnail
View Project

Among Us [v 1.3] Beta

by LightDarkYT

Project thumbnail
View Project

Numbericons 1-1000 remix remix remix

by nguyenmai405

Project thumbnail
View Project

Saus beat up button

by Rileyroo2011

Project thumbnail
View Project

OutSpare Sans Fight phase1 (Demo)

by Xx_Kimchi_xX

Project thumbnail
View Project

Scratch Shooter

by Doggymeowroar

Project thumbnail
View Project

Endless Monsters Vectors Rainbow (Old) remix-2

by Dejvid2115

Project thumbnail
View Project

dots and death!

by Guzuv

Project thumbnail
View Project

Beat up Edward DLC 3.0 remix-2 remix remix remix

by ffgbgffgbfg

Project thumbnail
View Project

MeladzeLuka05's Klasky Error Template!

by carternhala7

Project thumbnail
View Project

BFDI Two vector tracing

by Palmossi