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

beat up hjg

by SamiSamantaG

Project thumbnail
View Project

Numbericons 4501-6200 (Numbericons 1-4500)

by jayden2015paul

Project thumbnail
View Project

add a button beat up mickey mouse poster remix remix remix

by kubakoodziejczak

Project thumbnail
View Project

Beat Up X Button remix

by jacejim1809

Project thumbnail
View Project

Beat Up 1-Ball! [1]

by newmyles

Project thumbnail
View Project

BazMannBach's Russian Alphabet Lore in RALR style

by Pierrot2030_4th

Project thumbnail
View Project

Fire Truck Rescue!

by catathebest100

Project thumbnail
View Project

カービィのピクセルRPGシューティング v0.7

by su2014080902

Project thumbnail
View Project

Charlie the steak (v4.5.1)

by infinateyyy

Project thumbnail
View Project

Scratch4.0

by Nishikobito

Project thumbnail
View Project

Alphabet Lore but the word is "FF" instead of "FRIENDS"

by earthmarble

Project thumbnail
View Project

Flappy Dragon!

by LPalmtree

Project thumbnail
View Project

Paper Minecraft Updated (1.22) #popular #trending #minecraft #games remix

by banditbonfire

Project thumbnail
View Project

make your own BFB / TPOT but humans???

by Sprunkina

Project thumbnail
View Project

the mine song but its text to mp3

by Antcruz

Project thumbnail
View Project

Add a button to beat up Microsoft Sam even more!

by safetystephen

Project thumbnail
View Project

Wafer Gets Candy And Ungrounded!

by xxxAnimeGachaxxx

Project thumbnail
View Project

Make Your Own Hurricane Season 5 v1.21

by qwe200

Project thumbnail
View Project

Beat up Herobrine with angry birds

by TheReturnOfDraco

Project thumbnail
View Project

Minecraft

by TestificateT

Project thumbnail
View Project

Super Princess Peach Odyssey 2D | Super Mario Odyssey 2D Remake | Cascade Kingdom

by yappydo

Project thumbnail
View Project

Beat up King Pig 2 (add a button) [5]

by JPPORTUGAL

Project thumbnail
View Project

Baile de la vaca polaca (sub. Volumen)

by ReyTaragranca

Project thumbnail
View Project

add a button to beat up me

by everton_trader2