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

bad piggies part 2

by Noel445

Project thumbnail
View Project

BubbleWrap

by andresmh

Project thumbnail
View Project

Mephone4 Simulator V1.1!

by TWOTHECREATOR

Project thumbnail
View Project

Numberblocks But it's date

by ElevenFootballThe31

Project thumbnail
View Project

Mii Workplace WIP

by marxsuperstar6

Project thumbnail
View Project

Seadtype V19.4

by Goodall8434

Project thumbnail
View Project

Everyone Is Angry Beat up L add Round 0

by oliveira_7g

Project thumbnail
View Project

BFDI 1a recreated in Scratch! #animations remix

by Briskg

Project thumbnail
View Project

GD faces V5

by owenfreund

Project thumbnail
View Project

Numberblocks Perfect Numbers + Sigma Function band

by nikinik2023

Project thumbnail
View Project

Team Ice Cube (BFDI X MSM)

by Thatonebluetwo275

Project thumbnail
View Project

Beat Up Minions Pig (M) ULITMATE 2.1.0

by LIGHT_PROGRAM

Project thumbnail
View Project

The Studio Door of Numbers X [ 48 Doors ]

by Twin138956Scratch

Project thumbnail
View Project

[ TS!SwapSwap ] Sans Fight Full UST

by SonicTr1327

Project thumbnail
View Project

sky ボールころころ22

by skyblueball2

Project thumbnail
View Project

Gobo Movie DvD Menu Walkthrough (Nederlands Version)

by chikitito77

Project thumbnail
View Project

(Snowballer Tower!!! + FINALLY NEW UPDATE) Tower Blitz v.3.3

by HollowKnightGames

Project thumbnail
View Project

Undertale: Red & Blue Soul Engine (Ver. 1.1) [PC/M]

by BluePheonix25

Project thumbnail
View Project

シムシティー 未来太陽系大航海時代DEMO1.0【アレンジ】

by ringedwood

Project thumbnail
View Project

Plants vs. Zombies DS - Vs. Mode

by GotsaGoFest

Project thumbnail
View Project

Give me an OC and i'll make it as a beat up X button! remix-2 remix-3

by bartolomai

Project thumbnail
View Project

[201] Beat up Sonic Definitive Edition remix

by zwillis11

Project thumbnail
View Project

Beat up й v2

by jojocon657

Project thumbnail
View Project

Talking Tom Cat 2 remix

by HarrisT2016