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 tennis man

by marijn111

Project thumbnail
View Project

Endless Russian!

by imalink100

Project thumbnail
View Project

Buttons All

by xanderafa

Project thumbnail
View Project

Rainbow Numbers 400001 to 600000 (Part 3 of Numbers 0 to 1000000)

by matthewlin1013

Project thumbnail
View Project

Secret staycation Green Apple blows an Inflatable Apple

by coopstar_white3

Project thumbnail
View Project

counting numbers

by lemon12121212

Project thumbnail
View Project

MTV’S SPECIAL REMIX CHAIN [REMIX: 31]

by eljulvazgamerHD

Project thumbnail
View Project

Jelly Run 2048 Tiles remix remix

by scf9876

Project thumbnail
View Project

My Inner Planetballs art + the moon woke up + Planetballs art

by aamirgamingtv

Project thumbnail
View Project

マリオメーカー remix

by kmsw4020

Project thumbnail
View Project

diep.io v4.8

by -Cobalt-

Project thumbnail
View Project

Wow! Wow! Wubbzy End Credits PAL (Pitched up) (minikaGO)

by mohammedsalih160910

Project thumbnail
View Project

Spiffy Pictures EXE Buttons Part 16 PMEth of 1 ate

by Oooot5

Project thumbnail
View Project

make your own BFB no split, no rejoins, no debuts

by Xavierl118

Project thumbnail
View Project

WHY with Sneaky Escapist Music

by CharlesCalvin2

Project thumbnail
View Project

Super Purple Guy Galaxy 2.0!

by JPANDD

Project thumbnail
View Project

映画(過去編) 1

by Pikurin

Project thumbnail
View Project

⤥ RECORD PLAYER // DTAE amv ⤣

by Shattered_Diamond

Project thumbnail
View Project

Basketball Clicker!

by reneleo2021

Project thumbnail
View Project

【東方PV(一番のみ)】酔いどれ知らず ~レミリア・スカーレットver.~

by BlueYTR35

Project thumbnail
View Project

Battery overcharging to ↇ percent???!!!

by minhkien3h

Project thumbnail
View Project

My Qwarlijan Alphabet Lore in Bren319's Style

by SillygooseMike

Project thumbnail
View Project

Windows 98 (1998)

by hawleydm

Project thumbnail
View Project

Preview 2 Scratch Cat G-Major Effects Part 9

by gamerboy1228