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

add a button to beat up Squidward. [1]

by Super_Isaac_64

Project thumbnail
View Project

fnf Pibby Apocalypse Pibby Test remix

by gatot48000

Project thumbnail
View Project

Day Four: Falling letters (10.17.2024)

by Charlesisbrave

Project thumbnail
View Project

._. AWOOO

by coopstar_white3

Project thumbnail
View Project

Julia With Her Shoes Off

by TheScratchGuy13

Project thumbnail
View Project

UPDATE talking tom and ben news V2 where tom eats a different slice of cake remix copy

by bonzi346

Project thumbnail
View Project

Talking Tom & Ben News EXTRAVAGANZA!

by SillySim_Master

Project thumbnail
View Project

FNF: Proceed (Playable)

by Youneedanamefakit

Project thumbnail
View Project

(AY) The Approaching Black Hole [12]

by oobi124

Project thumbnail
View Project

Numbericons 1-1000

by jayden2015paul

Project thumbnail
View Project

The Studio Doors of Numbers I - Part II (158 Doors) (im back)

by KARises

Project thumbnail
View Project

Advanced Scratcher Lookup

by icmy123

Project thumbnail
View Project

AY in Trauma Wheel REDUX! [ Server 1 | Remix 19 | 26 Players ]

by J0HN_B0MB

Project thumbnail
View Project

invading the ship 1.4

by asdeo1

Project thumbnail
View Project

Five Nights At Kofi's 3 (FULL GAME)

by Scratchingpirate

Project thumbnail
View Project

Matrix Code Rain

by papipupepappa

Project thumbnail
View Project

Goop Game - ☁Cloud Multiplayer Game☁

by JYg3_

Project thumbnail
View Project

Smoke Flow Simulation

by SpicyMelon

Project thumbnail
View Project

BEAT UP SUPER WHY!!!! MORE BUTTONS AND SOUNDS!!!

by liamdvd

Project thumbnail
View Project

Nick movie logo

by brintcha06

Project thumbnail
View Project

Flower Rampage remix-4

by ioneric

Project thumbnail
View Project

mii maker/editor demo

by petergriffinhehe

Project thumbnail
View Project

Beat Up bro77777 remix

by jetJaguaro9

Project thumbnail
View Project

Klaskyklaskyklaskyklasky Gummy Bear song versiooooooooooooooooooooooooooooo

by rayyannsthebest