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

BFDI & II Simulator Alpha V.01.35

by Thesonicfan1234

Project thumbnail
View Project

Frutiger Aero Sun, Moon and Dark Mod Now crescent moon mod now is avalible

by Arturcintra_2024

Project thumbnail
View Project

[Sparta Remix] Scratch Alphabet lore A has a Sparta Remix remix

by coopstar_white3

Project thumbnail
View Project

Beat Up Pico 2 remix-3

by SuperFroggy584

Project thumbnail
View Project

Wii Menu 1.0 Simulator

by allmightythunder

Project thumbnail
View Project

Seadtype V23.5

by BonesonScratch

Project thumbnail
View Project

illusions

by notaplayer12w

Project thumbnail
View Project

Unbeatsable Game

by Train1104

Project thumbnail
View Project

The Completed Endless Number Animation Pack Fixed!

by Crazypantz19

Project thumbnail
View Project

AY in Blink Challenge 2 [Miguel's takeover]

by miguelhauck

Project thumbnail
View Project

マイクラ 1.21.5 _ Paper Minecraft 1.21.5 (1)

by MoneyBucks_com

Project thumbnail
View Project

KyleWare: Ultimate Microgames! (v0.1)

by saulosergiostick

Project thumbnail
View Project

Numberblocks Generator (N7's version)

by theice7

Project thumbnail
View Project

Endless Reader Czech remix

by celebrat1000

Project thumbnail
View Project

IOS 10= 0.1

by naturescientist

Project thumbnail
View Project

People Who Are Not In the BFDI Contestant Generator Game remix

by RICHAID26

Project thumbnail
View Project

Candy Clicker 2

by OctoStudios

Project thumbnail
View Project

Geometry Dash spider chalenge

by SIDONICTHEHEDGEHOG

Project thumbnail
View Project

CRUMBLING TOWER - a game

by jfan-deanza

Project thumbnail
View Project

Friday Night Funkin' X Miku

by CharizardAaroshdude

Project thumbnail
View Project

Uncannyblocks band Quarters and Halves 2

by Simon_second_account

Project thumbnail
View Project

copy for 2S

by SLlPKNOT

Project thumbnail
View Project

Ibel | Python interpreter v4

by -ProXeel

Project thumbnail
View Project

Make your own BFB but Inanimate Insanity decided to fill in

by MeBrilliant