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

1.8 |Angry Birds Classic Hd| #games

by Matteo_10-BeloRato

Project thumbnail
View Project

Samsung Galaxy S4 Phone (Black Edition) Vector

by AidenGilleTheAidenTV

Project thumbnail
View Project

45 Buttons Beat Up Template remix

by xmralexx

Project thumbnail
View Project

Raise A Floppa - Pre-Versión 1.12 parte 2 Principe Bingus

by galletoland

Project thumbnail
View Project

Tiger sees the Letter T in chorded

by SprinklesNCupcakes

Project thumbnail
View Project

Sprunki OC But It's Wop Sinner

by dano0219

Project thumbnail
View Project

大道芸 Ver.4.6 --- the シューティング ---

by inotomoking

Project thumbnail
View Project

Part 92,200 to 2,299 Jumpscares (Part 3 of Blue Mist Plus 2,000 All Jumpscares) copy copy copy remix

by Jharring2025_24

Project thumbnail
View Project

Beat up Scratch Cat remix remix

by everton123E

Project thumbnail
View Project

Face Raiders Remake V2 (short version)

by windows-scracher

Project thumbnail
View Project

SPRUNKIS BY ERICK´S

by ArthurSantosC

Project thumbnail
View Project

the battle of animals

by WONKA_cat

Project thumbnail
View Project

AY in Rapid Acids!

by LorenzoFiscoGaming

Project thumbnail
View Project

Beat Up Stickman remix copy-2 remix

by MyCottage

Project thumbnail
View Project

Fail || Hard Multiplayer Platformer remix

by biff2480

Project thumbnail
View Project

(Hardcore + Hidden Wave) Tower Defense Simulator v2.2.7

by RekingRx

Project thumbnail
View Project

Shoot Things! | WW3: Ballistics Testing Lab

by melee2000

Project thumbnail
View Project

Geometry Dash do not dumb here

by iPhone_ATT_TWC115

Project thumbnail
View Project

Beat up Gobo [2.3] remix

by sussybaka1011111111

Project thumbnail
View Project

Beat Up Jacob

by TheFunDeveloper

Project thumbnail
View Project

Escaping the Prision

by SaturnoMan

Project thumbnail
View Project

あずさクリッカー

by oohaexp

Project thumbnail
View Project

METRO-CROSS メトロクロス

by nayuta_solur_

Project thumbnail
View Project

U-15 (LOUD WARNING)

by Zack_39450