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

talking tom and ben news remix-2 remix

by everton_trader2

Project thumbnail
View Project

Windows 7 Error simulator X

by Nethereon

Project thumbnail
View Project

Beat up user!

by doggybellawoof

Project thumbnail
View Project

PlayStation 1 Namco Museum Vol. 1 - Pac-Man Sprites n' Sounds remix

by undertalefan2435

Project thumbnail
View Project

Juste Pour Rire Television (Ami Onuki Variant)

by Josue-Fanboy21

Project thumbnail
View Project

Bop it xt breaking

by jtpro817

Project thumbnail
View Project

Meggie Rosa remix

by ilove1234y

Project thumbnail
View Project

Beat up Boykisser (2)

by Traw2016

Project thumbnail
View Project

(x) GIVE ME EMOJIS TO DRAW

by cz43

Project thumbnail
View Project

a new sans fight

by Mister_peebody

Project thumbnail
View Project

FNF Sprunki (Test)

by Fnf_lover_101

Project thumbnail
View Project

Beat up Spiffy Pictures Re-Remastered Take 1

by Vovavovavovavovavova

Project thumbnail
View Project

page 1

by ant02126

Project thumbnail
View Project

Random CBBC Ident 1000m race!!!!!!!!!!!

by JffryDn9

Project thumbnail
View Project

Super Mario Bloopers 9 (part 1)

by logray

Project thumbnail
View Project

Your College Football

by jacklincoln

Project thumbnail
View Project

[unoffical] Undertale Neutral Run Sans Fight!

by Tota83

Project thumbnail
View Project

Windows XP Sim Added Clippy!

by Messyjacob27

Project thumbnail
View Project

γ€γƒžγ‚€γ‚―γƒ©MOD】ドロップ10倍

by horiyouta

Project thumbnail
View Project

Greek/Coptic Alphabet Lore [V2+]

by elithepidude

Project thumbnail
View Project

Rise Of Castlevania V.1.2

by Simloony

Project thumbnail
View Project

Beat Up Squidward (Add a button) [25]

by ElRey1200

Project thumbnail
View Project

[竢馬ゲーム]γ²γ‚ˆγ“γ§γƒ¬γƒΌγ‚Ή V1.2.0 みんγͺでダービー再現

by DOIKKO

Project thumbnail
View Project

JUST CHOOSE THE SPAGHETTI SAUCE!!!! (The MouseHeadz)

by MaryannKitty11