Affine vs perspective-correct texture mapping example
John Tsiombikas
Crappy hack, showing the notable difference between affine texture mapping, and perspective correct texture mapping.
Based on my crappy (and unfinished) MS-DOS software rendered first person dungeon crawler for the mini-LudumDare #45, which used simple affine texture interpolation. I quickly hacked the rasterizer to perform perspective-correct (u/w, v/w, 1/w) interpolation instead, and made this short video to demonstrate the difference.
The code is available in my mercurial repository here: http://nuclear.mutantstargoat.com/hg/deepstone ... https://www.youtube.com/watch?v=RyYEGdGwnFs
2020-12-25
0.0 LBC
Copyrighted (contact publisher)
7344405 Bytes