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

ULTIMATE SONIC SPRITES

by muymik123

Project thumbnail
View Project

-<[{(Collabs)}]>- Jacob And Friends News

by LisaGamingYT

Project thumbnail
View Project

Numbericons 1-1100

by jayden2015paul

Project thumbnail
View Project

SpongeBob SquarePants: Intro 2026

by amigoboy2

Project thumbnail
View Project

Beat Up Handy Manny but with Acid remix

by LiamPenPal026

Project thumbnail
View Project

(ill be yellow face ig) NEED A WAY TO MAKE YOUR OWN TPOT?? THEN START A TPOT CAMP!!

by tannerjj11

Project thumbnail
View Project

animation pt.2

by mars_2015

Project thumbnail
View Project

yeah i gotta agree with my oc star

by sonic_thejojo

Project thumbnail
View Project

Grow a Garden

by pikachu_90854

Project thumbnail
View Project

Talking Tom And Ben News remix-2

by KUKupono

Project thumbnail
View Project

Sonic The Hedgehog Maker

by cs1155403

Project thumbnail
View Project

超短編アニメ #6 ー 踊り

by sab_pg

Project thumbnail
View Project

messing with the mine song, part 2 (Give Me Your Suggestions About What I Should Add Next!)

by tamagotchigamer5

Project thumbnail
View Project

Make Your Own BFDI/BFB but Only Warm

by ZayaTheIncredible

Project thumbnail
View Project

Studio

by Louison-B

Project thumbnail
View Project

Kirby Klash Healthbar Tech Demo

by SUPA61

Project thumbnail
View Project

Record Player - AMCE

by Puffin43

Project thumbnail
View Project

Beat Up PB (Puffballs Revenges)

by funnyare2312

Project thumbnail
View Project

S̵̱̑ā̷͜n̵͓̈́s̸͙̒a̸̢͘ť̸͎i̴̩̇o̵͈͘n̶̗̊å̷̮l̷̢̽ ̴̼̀ḭ̸̓l̶̟͒l̵͕͊n̷̘͋e̵̤̾s̶̙̐s̷̔ͅ

by Eli333GD

Project thumbnail
View Project

Angry Birds 2 Game

by Super_1234Super

Project thumbnail
View Project

Beat up Sonic (Updated)

by Kuba-Kolodziejczak2

Project thumbnail
View Project

the full RALR cast 15.0! remix

by PisAWEsome

Project thumbnail
View Project

[オンライン氷鬼] サーバー1 ver1.40

by huaiyaaaa

Project thumbnail
View Project

add a button to beat up Nano: 2024 edition [9]

by newmyles