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

IDFB/BFB Contestant Generator Game remix

by dougz00

Project thumbnail
View Project

-<[{(Collabs)}]>- Talking Tom And Ben News Retake's. (VERSION 1/OLD VERSION)

by PixarFoxTUBA2024

Project thumbnail
View Project

FNF : {PLAYED} ANSCRATCHER0 ENGINE

by AnScratcher0

Project thumbnail
View Project

Make your own BFB / TPOT vectors

by pete347

Project thumbnail
View Project

Beat Up 1-Ball! [5]

by newmyles

Project thumbnail
View Project

RBMK-1000 NPP simulator ver 1.4

by TomCatMad

Project thumbnail
View Project

Beat up black V3

by Ken2012dog

Project thumbnail
View Project

Beat Up OLEG 4 (1)

by pmz34

Project thumbnail
View Project

Make your own BFB / TPOT but every team is different versions of one character

by skylerthecoolguy1234

Project thumbnail
View Project

Magic Tiles 3 but better

by SMILEINGCRITERS1234

Project thumbnail
View Project

Now I'm BANNED FROM CHATING FOR 30 MIN FOR ASKING FOR SPRITES!!!!

by DBGT12345

Project thumbnail
View Project

Geometry Dash

by EskolabarriPiero

Project thumbnail
View Project

Log In! | Puzzle Game

by Draiveri

Project thumbnail
View Project

BFB 22 Elimination Song

by tungster938

Project thumbnail
View Project

☁Fighters2 ゴンザレス追加!

by taku4-3-12

Project thumbnail
View Project

Dodge Game

by DarioGAMER64

Project thumbnail
View Project

ビル経営ゲームv6.0 _ remix

by dmmo-com-jp

Project thumbnail
View Project

♪ Alone / Alan Walker ♪

by K-Orange

Project thumbnail
View Project

Numberblocks intro season 8 remix-2

by scratchbaby2016

Project thumbnail
View Project

太鼓ですドンV2 ソーラン節

by programing-kaisya

Project thumbnail
View Project

[Pre-Scratch 3.0] Numbericons 1-3720 Vectors remix

by jayden2015paul

Project thumbnail
View Project

Super Mario Land 3

by ecertcytutor

Project thumbnail
View Project

Numbers Negative Absolute Infinity to Beyond Skibiditoiletplex (Part-3)

by carryondaksh133

Project thumbnail
View Project

Difficultyblocks Band new and old

by mugpanic