<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="text-align:left; direction:ltr;">
<div><br>
</div>
<div>I'm happy to report that this was a silly error on my part, depth testing is working fine with vnc and Mesa.</div>
<div><br>
</div>
<div>Cheers,</div>
<div><br>
</div>
<div>On Thu, 2020-09-17 at 01:46 +0000, OpenSceneGraph Users wrote:</div>
<blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
<div>Hi,</div>
<div><br>
</div>
<div>I recently fixed a problem I was having with a missing depth buffer which was causing strange occlusion effects but it seems it only works for my local display using an Nvidia driver, when I run the application with Mesa it goes back to looking like there's
no depth testing.</div>
<div><br>
</div>
<div>I've run the application with MESA_DEBUG and the only error I see is GL_INVALID_ENUM in glDrawElements(mode=7), which I suspect is unrelated. It also complained about the 3 argument setAttributeAndModes which I added when trying to fix the initial depth
test issue but I think is redundant so I just removed it.</div>
<div><br>
</div>
<div>state->setTextureMode(texnum, GL_DEPTH_TEST, osg::StateAttribute::OVERRIDE | osg::StateAttribute::ON);</div>
<div><br>
</div>
<div>When I built OSG for my local display I set OPENGL_PROFILE to "GL3" and I built OSG for Mesa the same way, should I be using something different for Mesa?</div>
<div><br>
</div>
<div>$ glxinfo | grep Mesa</div>
<div>client glx vendor string: Mesa Project and SGI</div>
<div>OpenGL core profile version string: 3.3 (Core Profile) Mesa 19.1.4</div>
<div>OpenGL version string: 3.1 Mesa 19.1.4</div>
<div>OpenGL ES profile version string: OpenGL ES 3.0 Mesa 19.1.4</div>
<div></div>
<div><br>
</div>
<div>Cheers,</div>
<div><br>
</div>
<div><br>
</div>
<pre>_______________________________________________</pre>
<pre>osg-users mailing list</pre>
<pre><a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a></pre>
<pre><a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a></pre>
<pre><br></pre>
</blockquote>
</body>
</html>