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 ImgBrun 2

by coopstar_white3

Project thumbnail
View Project

Secret Staycation Run

by supereagle153

Project thumbnail
View Project

New Sinner edition

by alvinoknbsd

Project thumbnail
View Project

Mario Drawing song from game and watch

by chaztheboi1234

Project thumbnail
View Project

Numberblocks Intro but battery got -1%

by nirvaan2016

Project thumbnail
View Project

SPRUNKI OC: Aelene but Sprunki.MSI (DONT REPORT)

by Mq1349

Project thumbnail
View Project

Beat Up Super Why, But Moving Into Beat Up Best & Bester Soon...! remix

by matheusmaccamargo

Project thumbnail
View Project

Kiff Dash

by poppy849

Project thumbnail
View Project

BFDI 17 But Modern TPOT but i made it more accurate

by OwlCuteness

Project thumbnail
View Project

Everybody Do The Flop

by 321_chicken

Project thumbnail
View Project

Escape hand spinner version

by ikea32

Project thumbnail
View Project

Alphabetons Intro (My Version)

by StormScratchUser

Project thumbnail
View Project

beat up the scratch cat

by MarioXHK

Project thumbnail
View Project

xu!underfell extreme mode

by xXUndertale51Xx

Project thumbnail
View Project

KyleWare: Ultimate Microgames! (v1.9)

by ABetterMe

Project thumbnail
View Project

音ブロックで『megalovania』

by kapotan912

Project thumbnail
View Project

Scratch Libs 4

by Will_Wam

Project thumbnail
View Project

SSS - VS ScratchX.rar 1.2 X Project Archives

by PeashooterWaffles24

Project thumbnail
View Project

Cat plays rush e

by Dresdenr

Project thumbnail
View Project

Custom RALR Cast Fanmade but all letters (NEW UPDATE!)

by Codybob1212

Project thumbnail
View Project

Jemel's JumpStart Numbers Band [Individuals / 2024 Version] Part 1 | Numbers 1 ~ 20

by jemellyles03

Project thumbnail
View Project

Added Franklin, Ben & Holly and Lalaloopsy remix remix

by ZoeBuchansky

Project thumbnail
View Project

Beat up Nano 3.1 (add a button) [5] remix

by 1superscratchcat

Project thumbnail
View Project

Preview 2 Scratch Cat in Pitch Black + G Major 4

by Little_Cat2014