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

Designs, Argam system, and more...

by Quoot105

Project thumbnail
View Project

Add Yourself Singing Secrets (indigo park remix) #game #animation #all

by Tripp_08

Project thumbnail
View Project

talking tom and ben news HD remix remix

by craig0005

Project thumbnail
View Project

Numbericons 0.25-4000 remix

by kieffer244

Project thumbnail
View Project

Talking tom and ben news in scratch version 1.0.1 jakenoah image

by ELYADENCRACK

Project thumbnail
View Project

MGM Tanner the lion parody (Tom and Jerry Template 5) remix

by PeppaDoesScratch

Project thumbnail
View Project

All Numbericons 101-200 remix remix

by Andricxa

Project thumbnail
View Project

Wii Menu (version 1) remix but it has the wii menu

by 14a0-5w55

Project thumbnail
View Project

Seadtime Font V5.3

by BonesonScratch

Project thumbnail
View Project

so many beat ups remix

by XavierRDL

Project thumbnail
View Project

take care of c00lkidd!

by kik_ival

Project thumbnail
View Project

Титры из Машины Сказки. 2011-1

by Ilia0606_ru

Project thumbnail
View Project

Sprunki Ultimate Deluxe edited

by Kiruha73

Project thumbnail
View Project

Splatch (ScratchX.RAR retake) #concept

by DuoEntertainment321

Project thumbnail
View Project

Undertale: Underswap Papyrus fight

by loganvcairns

Project thumbnail
View Project

Colorful Mario Bros.

by HudMum2916

Project thumbnail
View Project

✩┊BDAY GIFT - FANART FOR @Frederick_Hale

by --Callisto--

Project thumbnail
View Project

Scratch Tales Season 18 Episode 2: The Go-Kart Race

by MasterZenoUltimate

Project thumbnail
View Project

Former v12.50

by Ulvdiaz

Project thumbnail
View Project

Beat Up Noo-Loo

by coleh2

Project thumbnail
View Project

FNF - Vs Matt Wiik 4 Remastered

by N30_G30

Project thumbnail
View Project

Ball Clicker v1.5.1 || #all #games #art #music #trending

by theCharpy

Project thumbnail
View Project

Windows 90

by User37890

Project thumbnail
View Project

Windows XP Virus simulator

by OfficialEkrotKye