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

among us stickman

by cwkrobert22174

Project thumbnail
View Project

Beat up Jack Truck in Mickey Mouse Costume SEASON 2 [1]

by carcthedodecahedron

Project thumbnail
View Project

barney gets in dead meat

by supermariojjk

Project thumbnail
View Project

MIDI Creator

by MCAnimator3D

Project thumbnail
View Project

FNF - (Vs Sonic.exe)

by Bradk2005

Project thumbnail
View Project

IITPP Scratch Edition

by corestartupfail

Project thumbnail
View Project

Geometry Dash Megalodon

by iPhone_ATT_TWC115

Project thumbnail
View Project

Super Mario Bros Wonder Scratch Edition

by BabyRumman

Project thumbnail
View Project

-<[{(Collabs)}]>- talking tom and ben news HD remix-7

by bonzi346

Project thumbnail
View Project

Beat Up Tim 4: The Big Beating

by DaBlueBird_123

Project thumbnail
View Project

Sonic 3d Blast Scratch Port Real??

by BunchaNobodies

Project thumbnail
View Project

完全日本語版×【軽量版】|Paper Minecraft 1.20 update!

by ZERO_5631

Project thumbnail
View Project

Talking tom and ben news HD remix remix-2 remix

by everton_trader

Project thumbnail
View Project

Beat Up Red

by Jeffreycool6000

Project thumbnail
View Project

Beat Up Lyloo (13)

by GooleSharty122

Project thumbnail
View Project

Beat up Bonzi Buddy Moooooooooooore! (for fun) All Buttons

by Jjaime0

Project thumbnail
View Project

beat up nixel

by hjjarrett

Project thumbnail
View Project

Numberblocks Band Retro 31-40

by Trioctoblock24

Project thumbnail
View Project

ブロリー討伐作戦!

by MS616

Project thumbnail
View Project

Reglitcher 3D

by ggenije

Project thumbnail
View Project

ゾンビ撃ち 1.57 zonbie shooting 1.57

by pi-manyarou02

Project thumbnail
View Project

OMNIBELIEF: FULL OST (SrConroy's Take) Phase 3.5 <unfinished>>

by srconroy

Project thumbnail
View Project

Beat Up X Button remix

by jayjayy1809

Project thumbnail
View Project

New interactive Spanish Alphabet Lore from wario100 if I made it

by rainbowdaniel