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

Mini 11 (Windows 11)

by Marderswetson

Project thumbnail
View Project

Beat up Seven because you want his luck [DLC] remix

by xmrrileyxx

Project thumbnail
View Project

LG logo animation 85% pen

by eeeeeee_eere

Project thumbnail
View Project

A new button for beat up games

by electrobab732

Project thumbnail
View Project

AY: In Four Corners Redeluxe!!!!!!! (R0|P14) remix remix remix-2

by clanito12

Project thumbnail
View Project

ytpmv windows 8 scan

by littlelearn123

Project thumbnail
View Project

TPOT Recovery Center V1!

by TWOTHECREATOR

Project thumbnail
View Project

temu black (sprunked editon)

by pumpkin754

Project thumbnail
View Project

AY: Fight Cloud For The Last Pizza Slice Add Round 4

by klaskycsupo16

Project thumbnail
View Project

[Deltarune] - Gaster Fight

by chairwithpencil3

Project thumbnail
View Project

Beat Up Talking Tom Cat 5: THE SEIZURE MAN!!! (4)

by RGYBProductions

Project thumbnail
View Project

>:3

by BakuGO_7765

Project thumbnail
View Project

Revolutionary Invasion Part 2/6

by Aaron_NordicAragon

Project thumbnail
View Project

Endless Type remix

by maxmattews

Project thumbnail
View Project

CTSE: E03: The Coloured Team Sprunkis

by Abdullahcodes1234569

Project thumbnail
View Project

(In Progress) Toon Fight

by Logan_A

Project thumbnail
View Project

Wario Party - Say "A" or "B" remix

by eddandhenry

Project thumbnail
View Project

Julian-Numberb

by thebigmanjulian

Project thumbnail
View Project

Add a button to beat up Mega Photo [remix 3] remix remix

by Damgar12

Project thumbnail
View Project

add some stuff to beat up scratch cat 3.0 remix

by Dylan71312

Project thumbnail
View Project

Armenian JumpStart Band (Band Version)

by AlfabetonsOfficial

Project thumbnail
View Project

beat up L & O

by Littlehanger1234A

Project thumbnail
View Project

γ€γƒ©γ‚€γƒ–γ€‘εœ°ιœ‡ζƒ…ε ±γƒ’γƒ‹γ‚ΏγƒΌremix

by manya_0123

Project thumbnail
View Project

Just try to beat up Shadow ! remix

by ES90O0fr