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

talking tom and ben news remix-2 remix

by everton_trader

Project thumbnail
View Project

beat up scratch cat

by Lestat1025

Project thumbnail
View Project

English F Font (NEW)

by SillyGooseReturns

Project thumbnail
View Project

Alax Psychedelic Jetpack (Ft. Numberblock 10, Robbie Rectangle Trina Triangle, and Cecil Circle)

by RedDogAssistant2009

Project thumbnail
View Project

Map Season 3 Episode 12 REANIMATED remix

by Joerobin

Project thumbnail
View Project

Thomas the tank engine sprite pack

by Dish_2

Project thumbnail
View Project

MPAA Sprites remix fixed

by endcreditslogos

Project thumbnail
View Project

beat up Alessio 7

by DatYoyoMiguel

Project thumbnail
View Project

Numberblocks Generator

by littleliam5

Project thumbnail
View Project

Talking Tom and Ben News: shark puppet clubhouse Edition remix remix v2

by furbydiamonds

Project thumbnail
View Project

Speedometer BMW

by kourimi2021

Project thumbnail
View Project

スマホ対応!しょぼねこのテニス!

by bitamon

Project thumbnail
View Project

Magic Cat Academy | Google Halloween Doodle | Google Doodle| #All #Games #Art #Music #Stories #Anima

by rehanscratch

Project thumbnail
View Project

Crystal Seeker 3D platformer v1.7

by DinoTin

Project thumbnail
View Project

Beat up Flipsy

by oksana65017

Project thumbnail
View Project

The Art's Mission Collection Menu Music episode 1-3

by P-XH

Project thumbnail
View Project

beat up zynx v4.3 REUPLOAD!

by SmallDoodle

Project thumbnail
View Project

Beat up Scratch Cat! (Suggest me a button!) remix-3

by hyd3ns33k

Project thumbnail
View Project

the olderest universal logo

by railroad36

Project thumbnail
View Project

Teeth - FPSI meme template

by -Valtren-

Project thumbnail
View Project

Beat Up Lollipop VIII

by sumcaznis

Project thumbnail
View Project

Stingy text to speech remix

by paulinelesz

Project thumbnail
View Project

RAISE A CAT(ALPHA TÜRKÇE)

by Scratch-oyuncusu343

Project thumbnail
View Project

Scratch cat eats a lemon and DIES

by Matuten15