Aleph-One-Marathon / alephone

Aleph One is the open source continuation of Bungie’s Marathon 2 game engine.
https://alephone.lhowon.org/
GNU General Public License v3.0
655 stars 99 forks source link

Software mode misaligning “right-aligned” textures #453

Closed aaronfreed closed 11 months ago

aaronfreed commented 12 months ago

Software mode misaligns textures that should be “right-aligned” – that is, whose right edges should meet their respective lines’ right edges. Here are two pairs of screenshots of OpenGL (first, correct) and software mode (second, incorrect):

image image

image image

The first case is a .5 WU line that I aligned using Vasara’s 1/2 WU grid; the second is a .125 WU line that I aligned using its 1/8 WU grid. This means that in both cases, OpenGL is displaying the texture correctly and software mode is misaligning it 1/128 WU (8 internal units, or one pixel of the source image) left of where it should be. And for the record, the issue isn’t with the textures themselves:

image

image

This only seems to happen with right-aligned textures, though I’ll admit I haven’t done careful testing of all possibilities yet. This is on Windows 10 using Aleph One 1.7.

aaronfreed commented 12 months ago

For reference, Aleph One 1.6.2 aligns these textures correctly in software mode: image