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

ただのアニメ #66 怖い話

by mizukusa164

Project thumbnail
View Project

Tom and Ben News Back on Television! v 3. remix

by jace18099

Project thumbnail
View Project

Barney Error Maker

by Hasanegestudent

Project thumbnail
View Project

Beat Up DNB (5)

by newmyles

Project thumbnail
View Project

Dalgona

by DrSmidt

Project thumbnail
View Project

Number counter

by Dung3976

Project thumbnail
View Project

Colorblocks band But Coolors (Day 12)

by dano0219

Project thumbnail
View Project

OR IS IT?? || #animations #all #stories

by -ComicallyComical-

Project thumbnail
View Project

Fidget spinners

by Unicorngirl300

Project thumbnail
View Project

Geometry Dash World Toxic Factory

by CrystalKeeper7

Project thumbnail
View Project

スリザリオ (日本語版)

by hclhcl

Project thumbnail
View Project

KyleWare: Ultimate Microgames! (v1.36) (Yellow Hotel)

by TheScarfedStickman

Project thumbnail
View Project

アンダイン アンダーテール Undyne Undertale

by tayuu

Project thumbnail
View Project

DOOM

by Batman1948

Project thumbnail
View Project

Status Effect Log [ Remix 35 | 128 Effects ]

by bluejay7

Project thumbnail
View Project

Bloons TD 6 (Custom Towers, Maps, Bloon Skins and Heroes Edition) VOTE FOR NEW MONKEYS

by reflectorgenie

Project thumbnail
View Project

Random Stuff has a Sparta GSC Remix

by DeJuan123456789

Project thumbnail
View Project

Black Hole Add Round 50

by Numberblockgamer8694

Project thumbnail
View Project

Parkur game beta 0.6 (bugs)

by AGamer_3623

Project thumbnail
View Project

Opening to Lalaloopsy Littles The Movie 3 DVD

by AlejandrixKing245

Project thumbnail
View Project

Google [BETA 0.64]: Fathers Day 2024

by yigitkomutan45

Project thumbnail
View Project

wither stor r/ m high effort real

by Butterknives64

Project thumbnail
View Project

remade e so he can fit in with the others

by 1020672

Project thumbnail
View Project

Windows 7 error maker v0.06

by catboybood_roblox