Note that there are some explanatory texts on larger screens.

plurals
  1. POStrange OpenGL Pixel Imperfections
    primarykey
    data
    text
    <p>A very small percentage (&lt;1%) of my users are experiencing a strange distortion with the OpenGL UI of my game. It would appear that my pixel-perfect projection setup:</p> <pre><code>glViewport(0, 0, clientSizeWidth, clientSizeHeight); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(0, clientSizeWidth, clientSizeHeight, 0, -1.0, 1.0); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); double transAmount = 0.375; glTranslated(transAmount, transAmount, 0.0); </code></pre> <p>Is causing issues on their systems. And I've been unsuccessful in gathering details about their systems, but I believe they can run similar OpenGL games with success. So I believe my code is at fault.</p> <p>Here is a picture of visual artifacts:</p> <p><img src="https://i.stack.imgur.com/H6LEE.png" alt="visual artifacts"></p> <p>And here is a picture without visual artifacts (<em>ignore the difference in OS</em>):</p> <p><img src="https://i.stack.imgur.com/lFtYD.png" alt="without visual artifacts"></p> <p>Although my game scales the final render to be 2x, it does so via a single call to <code>glSubTexImage2D</code> after the 1x render has been performed. This means the artifacts in the first screenshot were present prior to the pixel doubling (hence why the artifacts are also pixel doubled). So the pixel doubling itself couldn't be the source of issue.</p> <p>Any thoughts on what could cause this? I presently have no way to test. The overwhelming majority of users (myself included) experience no visual artifacts.</p> <p><strong>Edit (April 30th)</strong>: A Polish user has informed me his/her videocard experiences these artifacts and is a "nVidia 9500 GS". Not sure if this means <a href="http://www.geforce.com/hardware/notebook-gpus/geforce-9500m-gs" rel="noreferrer">9500M GS</a> or <a href="http://www.geforce.com/hardware/desktop-gpus/geforce-9500-gt" rel="noreferrer">9500 GT</a>, but both seem fairly modern.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload