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

Every GD Difficulty To Ever Exist.

by Noob_Productions_123

Project thumbnail
View Project

Q*bert level editor

by BradyCupcake

Project thumbnail
View Project

Титры из Маша и Медведь. 21-24 (в 4 сериях)

by vol_wubbox12

Project thumbnail
View Project

that one unused omega flowey part slowed and echo

by IsaacMan2016

Project thumbnail
View Project

Official Colourblocks Band but navy and pink dress skittles

by wenda55019

Project thumbnail
View Project

My NEW Russian Alphabet Lore

by jackmonkey15

Project thumbnail
View Project

talking news marokids tvokids HD remix remix remix remix

by jacejim1809

Project thumbnail
View Project

BBC Cartoons Too Logo But With Nickelodeon Creatures

by siddharth1717

Project thumbnail
View Project

486

by maximumjax

Project thumbnail
View Project

Incredibox NF´s Mouth Assets

by NightyFrog

Project thumbnail
View Project

Click counter only goes to 999 before reset

by among_us2i666

Project thumbnail
View Project

wet owl splash remix

by FreggleFrog123

Project thumbnail
View Project

Angry Birds - A Platformer Hard Mode                   #games remix

by Sans8883

Project thumbnail
View Project

Paper Minecraft Updated [Textures]

by WildernessCoder

Project thumbnail
View Project

Smeshariki "The secret recipe of the Owl "EN

by PikacnuPika

Project thumbnail
View Project

Bonus Buttons Spiffy Exe Buttons Halloween Soul 396

by kari1213

Project thumbnail
View Project

グッバイ宣言 / Chinozo  スクリプト演奏

by kakekoko

Project thumbnail
View Project

talking tom and ben news: edición pingu extendía

by Andreus_

Project thumbnail
View Project

Bonus Buttons Spiffy Exe Buttons Halloween Soul 545

by kari1213

Project thumbnail
View Project

AY in Free-For-All Elimination [ Remix 1 | 10 Characters ] remix

by filiponscratch635

Project thumbnail
View Project

Make your own BFDIA remix

by Braceletythesupport

Project thumbnail
View Project

Super-Sonic VS Metal Sonic REMAKE

by SONICCD5

Project thumbnail
View Project

Ukranian Alphabet Lore Interactive

by Justaprivate_account

Project thumbnail
View Project

Ґ︱Belarusian Ukrainian Alphabet Lore

by PrinceAzuka134