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

Add MEGA to beat up baby shark!

by zboytheidiot

Project thumbnail
View Project

Algebrailien's world | BFDI:TPOT platformer

by trong_nhan

Project thumbnail
View Project

Super Mario Bros

by Crafting_block

Project thumbnail
View Project

The Cracked Earth

by Jayden_The_Legend07

Project thumbnail
View Project

AY in Fire Ball! [Remix 4 | 37 Players] remix

by Mizumi2011

Project thumbnail
View Project

【拡散希望】Windows10 HOME Scratch

by KS1220Island

Project thumbnail
View Project

FNF | Recovery Center

by rayoflight29

Project thumbnail
View Project

goofy ahh yearblocks band 2027-2050

by Michael266Hut-ec

Project thumbnail
View Project

Sony xperia ZX1 incoming call update

by Ilovescratchanymore

Project thumbnail
View Project

Stingy text to speech READ THE DESC

by TheGucciKId

Project thumbnail
View Project

Dancing Sprites

by emilia_pradocncp

Project thumbnail
View Project

That Girl.. || A Valentines Day Special

by -NerdAnimator-

Project thumbnail
View Project

Forest Remake | Chapter 1

by SDR-

Project thumbnail
View Project

H.A.T.N.O

by Raccoon228

Project thumbnail
View Project

Add a button to beat up scratch cat remix remix remix remix

by CLAX1212

Project thumbnail
View Project

(180TH PROJECT SPECIAL) NumberblocksUltra Becoming Canny To Uncanny (ALL PHASES -10 TO 30)

by NumberblocksUltra

Project thumbnail
View Project

Peppa Pig Gets Grounded China

by baldiii

Project thumbnail
View Project

[discontinued!] Friday Night Funkin v2.9.14 remix

by cobb0000

Project thumbnail
View Project

Cat Adventure 3! Chapter 1 “Cavort Port” #game #all #animation

by cloudy0260

Project thumbnail
View Project

[TNT Mod]日本語版Paper Minecraft v1.2 #game 傾向入り!!! remix

by kureiemu

Project thumbnail
View Project

numberblocks band 64ths 1 - 5

by Santiaze

Project thumbnail
View Project

GOOFY LOMANDO FANGAME

by kanun_s

Project thumbnail
View Project

BEAT UP ROBBER

by mateothebb

Project thumbnail
View Project

[1] II your way

by Boberoni112