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

Adding Numbers | An Animation based on Animation vs Math remix

by Neptune2014

Project thumbnail
View Project

Deh's Revenge: Part 2 Original file

by Harrymationseta-y

Project thumbnail
View Project

δΈ–η•Œη™½ι»’η΅±δΈ€η„‘θ‰²ι€£εˆ

by K_Yossi_2233

Project thumbnail
View Project

[Pre-Scratch 3.0] Numbericons 1-2700

by jayden2015paul

Project thumbnail
View Project

5NAF 3 (FNaF 3) remix

by Noob1059

Project thumbnail
View Project

Beat up DtLegendz (6)

by Tyler-Time

Project thumbnail
View Project

Everyone Is Angry Beat up L add Round 0

by oliveira_7g

Project thumbnail
View Project

Miner Cat 4 (Scratch version) ζ—₯本θͺžη‰ˆ

by haru3_14159265

Project thumbnail
View Project

PBS KIDS Scratch jr

by NumberblockFaner303

Project thumbnail
View Project

Solar Object band 7 (finale)

by UL36DBreboot

Project thumbnail
View Project

Demon Vortex(All Pen) remix

by hwaJackson

Project thumbnail
View Project

sprunki-abgerny-but-sprunki

by kittyORANGEmeow2

Project thumbnail
View Project

Gnarls but with the G-major effect.

by 30telfairc

Project thumbnail
View Project

SANS

by SPAREMYACCOUNT4

Project thumbnail
View Project

etch-a-sketch

by Aardvark

Project thumbnail
View Project

Sprout Follies (Beta)

by xxX_Gr33n256_HD_Xxx

Project thumbnail
View Project

The Studio Door of Numbers X (13 Doors)

by happytoucan5184

Project thumbnail
View Project

14 Klasky Csupo In HD

by KTMBross

Project thumbnail
View Project

THERE IS NO GAME! (part one)

by colinmacc

Project thumbnail
View Project

100% Pen Tower Defense - _THE-ONE-AND-ONLY_ Version

by _THE-ONE-AND-ONLY_

Project thumbnail
View Project

sonic 3 and knuckles complete

by fredbearivan

Project thumbnail
View Project

RALR cast Πͺ Clicker hero remix

by Poland7Boyko

Project thumbnail
View Project

RoadHouse! remix remix remix

by neremo953

Project thumbnail
View Project

Battle for Dream Island Again (Your Way)

by DatPoweringDude