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

(@TQD RESHARED) DKGG S2 EP7: Gastone Luccarini escapes Slovakia, ruins New Years, and gets grounded.

by DTQ_AKA_NTA

Project thumbnail
View Project

BitCode 1.4

by 1234567890fgrvhyual

Project thumbnail
View Project

Вот почему не надо садится в лифт с незнакомцами

by MatveyWindows_scratc

Project thumbnail
View Project

beat up R—I fixed remix

by jace18099

Project thumbnail
View Project

Sprinkle Band

by dkBay

Project thumbnail
View Project

Endless Music (BEST UPDATE!) remix-4

by jade101717jade

Project thumbnail
View Project

Finding The Arial font on random things v0.79

by Naoshikun_704

Project thumbnail
View Project

Among US Fnf

by brarevetria2023

Project thumbnail
View Project

SUSSY SCARYGROUNDS

by mjhbggvvgv

Project thumbnail
View Project

Talking Tom and Ben News The Newest

by GauchitoTehScratcher

Project thumbnail
View Project

Galaga

by RokCoder

Project thumbnail
View Project

The Mine Song but Stingy is a mouse

by Jaxkingbop

Project thumbnail
View Project

Map zoom-in

by ibisJuan

Project thumbnail
View Project

Numberblocks Intro but HELP

by oisintheblue

Project thumbnail
View Project

Beat Up two

by evreythingboi77

Project thumbnail
View Project

Among us V1.0

by Seasaphire

Project thumbnail
View Project

Scratch Cat Dash 3D

by Scratch-Minion

Project thumbnail
View Project

Шпигель Вести Недели 2019 - н.в

by UralScratch

Project thumbnail
View Project

Bus And Subway Runner

by FilipTheMiraculerMMD

Project thumbnail
View Project

Cyan going insane while singing Till Its Over

by GalaxyPancakes666

Project thumbnail
View Project

Beat Up Evil Chukyo-kun (GET THIS PROJECT TO 4000 VIEWS/DO NOT REPORT THIS PROJECT)

by BentleeFan77

Project thumbnail
View Project

Last Breath

by ZERO722

Project thumbnail
View Project

[UTSA] Underfell: Vexation OST

by InkerBackup

Project thumbnail
View Project

Aircat's Spanish Alphabet Lore in Bren319's style (Read the instructions).

by AlfabetoLoreSerie