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

Cuphead Grim Matchstick Boss Fight -- Archive

by vmagnanicarchive

Project thumbnail
View Project

Super Mario on Scratch 5 The Day Before Xmas!! (MOD)

by YasuYasu64

Project thumbnail
View Project

Rewrite Sonic pack

by JSBharties

Project thumbnail
View Project

Pinky Dinky Doo says Caillou! But Instead of a tenor voice,it's Pinky's voice.

by Iggy2014

Project thumbnail
View Project

rewrite sonic test remix

by BlockmanGoStudio

Project thumbnail
View Project

FNF Sonic Legacy (Sonic 2012 Edition) remix with message

by autisticlizard12

Project thumbnail
View Project

very small art dump </3

by -Cascade_

Project thumbnail
View Project

Alphabet Lore but the word is Crocodile

by SillyGooseReturns

Project thumbnail
View Project

gd grief but accurate BUFFED #gd #trending #grief #gmd #buffed

by JayCreates5

Project thumbnail
View Project

Numbers Band 177

by SimonIs14

Project thumbnail
View Project

[WIP]UNDERTALE: The Hacker End [VHS! Sans Fight] By DeepVid

by DeepVid

Project thumbnail
View Project

青の塔49階

by sakaryuu

Project thumbnail
View Project

Appel Hacked v1.5

by stonewall123456

Project thumbnail
View Project

Scratch Valentines!

by 12dejamoo

Project thumbnail
View Project

Windows Retro OS

by -TheTrue1sHere-

Project thumbnail
View Project

Vac Man The Game!!

by baldiii

Project thumbnail
View Project

Turbowarp Wave

by reoreo333

Project thumbnail
View Project

Minecraft - Scratch Edition v1.01

by Scratch2Craft

Project thumbnail
View Project

Sonic Maker 2 - A Platformer Creator remix

by jn11001

Project thumbnail
View Project

The Alphabot And Violet Crying Because Velle Exe Bully Their Alphabot And Violet

by stang999

Project thumbnail
View Project

Beat Up Four 4 Deluxe Ultra Turbo Definitive Edition GOTY EDITION Director's Cut & Knuckles

by _mespritsinnoh_

Project thumbnail
View Project

Kit The Movie Dvd Menu

by KitTheMeowOnScratch

Project thumbnail
View Project

Super Sonic Maker remix

by Classictails1991

Project thumbnail
View Project

Numberblocks Band ReTrillion Remastered (100.0decimyrillion-1.0Micrillion)

by Numberblocksbandddd