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 Edward DLC remix-5

by BEAT2022

Project thumbnail
View Project

My second day

by APrincessImagination

Project thumbnail
View Project

Paper Minecraft ep1

by ssme1347

Project thumbnail
View Project

Sprunki Retake TADC mod

by skyguy0011

Project thumbnail
View Project

Make Your Own BFDIA But The Teams Are For Episode 1-4 Instead of Episode 5-9

by Vibes_is_better

Project thumbnail
View Project

Meme Sounds '

by LadyJags306

Project thumbnail
View Project

Rainbow Numbers 0 to 200000 (Part 1 of Numbers 0 to 1000000) remix

by goodall4050

Project thumbnail
View Project

Google Doodle Baseball 2.0

by gonzado123

Project thumbnail
View Project

Minecraft 1.12: World of Color

by Wildfire_the_dragon

Project thumbnail
View Project

sprunki bobi

by Bodkamelonik

Project thumbnail
View Project

S_C_R_A_P_P_E_D FNATI Extras part 2

by Aleatorio21

Project thumbnail
View Project

Windows 10 Simulator V2 remix

by misha3223

Project thumbnail
View Project

[U.F.#143]: Nicktoons Blob Man

by DaBagelODoom

Project thumbnail
View Project

Sonic the Hedgehog 2: Special Stage (WIP)

by TTTEfanSQB

Project thumbnail
View Project

SIGMA MRL Carpark Elevator

by jc401400

Project thumbnail
View Project

Famitracker Synthesizer

by Kouzeru

Project thumbnail
View Project

jsab - level editor Ver . 2.1.0 β

by osatoudaisukich

Project thumbnail
View Project

Opening to Happy Tree Friends Fanon: Standing Out 2014 DVD remix

by Lainmb

Project thumbnail
View Project

Add yourself running away from the wither storm!!! (old) remix

by cwknathaniel59216

Project thumbnail
View Project

Give me an OC and i'll make it as a beat up X button! remix remix-4

by bartolomai

Project thumbnail
View Project

Tower Defense Game talking news tom and ben

by scratchwosjwufpos0

Project thumbnail
View Project

Beat up Edward 2 remix

by PuppyAllLive

Project thumbnail
View Project

The Black Hole (Add Round 8) remix-134 (1000 Projects!)

by earlham11

Project thumbnail
View Project

skully papercraft

by gulkd2023