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

Non-Official Decayed Reality Wither Storm Models

by Connerplaz

Project thumbnail
View Project

Beat up Sonic (READ DESCRIPTION.) remix remix-3 remix

by jacejim1809

Project thumbnail
View Project

Paper Minecraft 1.21 / Tricky Trials / Minecraft 1.21 / #games #trending #trending #minecraft remix

by Icecream244466666

Project thumbnail
View Project

Beat Up OLEG 4

by lukemanolopoulos8

Project thumbnail
View Project

Beat Up Klasky Csupo! remix remix remix remix remix remix remix

by kubakoodziejczak

Project thumbnail
View Project

Endless Numbers: Number Factory But… My Servers Can’t Handle Infinity remix

by Tiger130923

Project thumbnail
View Project

bfdi 3 deleted scene remade

by FlaminAnimations

Project thumbnail
View Project

Purple Cab! KONE Hydraulic Elevator (E2)-Friendship Warehouse, Pleasant City

by WashingtonMetroFan

Project thumbnail
View Project

Ikura sushi|secret staycation OMG HI

by secretstaycation23

Project thumbnail
View Project

random band on ucbb

by mars_2015

Project thumbnail
View Project

Numberblocks Piratasthophe but it goes to 1,000,000 remix remix

by NoeyT13

Project thumbnail
View Project

Numberblocks Generator but with + and - 37 and 51

by ilike37fave51

Project thumbnail
View Project

青の塔EX

by sakaryuu

Project thumbnail
View Project

beat up ugly thing

by diamondc2008

Project thumbnail
View Project

Poppy playtime 3D version chapter 1-2 #game

by nikfd

Project thumbnail
View Project

100% Pen/ 1 dot Calculator #All#Games

by Yathaarthp

Project thumbnail
View Project

TVOKids Logo Bloopers 4 Take 14: 20 Bloopers at once? SUPER DUPER BLOOPER MADNESS!!!!!! remix

by adewumio

Project thumbnail
View Project

Testing endless Greek

by Ping_au_ipad_Channel

Project thumbnail
View Project

AY black hole But Added Pocoyo & Game Over Goanimate remix-4

by JojosWorld32

Project thumbnail
View Project

PR!ink!sans fight phase1~3 [undertale fun game]

by I---program-studio

Project thumbnail
View Project

(AYS) BITE V3

by SomeWinterGuy

Project thumbnail
View Project

Mii Channel

by snowwhitepinocchio

Project thumbnail
View Project

World of Interactive Friends Bossfight

by ChermayeffTesting

Project thumbnail
View Project

Angryblocks Band 2 (Uncannyblocks Band 19b) (My Take)

by NFGMyles