I am surprised it doesn&#39;t honor<br><br> MESA_GLX_DEPTH_BITS=24<br> export MESA_GLX_DEPTH_BITS<br><br>- this seems to work fine for me.<br>-Jeff<br><br><div class="gmail_quote">On Thu, Jan 28, 2010 at 4:30 PM, Francois Bertel <span dir="ltr">&lt;<a href="mailto:francois.bertel@kitware.com">francois.bertel@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Burlen,<br>
<br>
I just looked at vtkWindow/vtkRenderWindow and too bad, there is no<br>
API to let the user specify the render window settings regarding the<br>
depth in bit of each type of buffer (color buffer, depth buffer,<br>
stencil buffer, accumulation buffers) in the framebuffer.<br>
That would have be better than hardcoding the values in vtkXOpenGLRenderWindow.<br>
<br>
Anyway the typical values for on-screen are 24 bits for depth buffer,<br>
8 bits for stencil buffer, 16 bits per channel for accumulation<br>
buffer.<br>
What happen in your case if you use these values instead the one you<br>
provided in your patch?<br>
<div><div></div><div class="h5"><br>
On Thu, Jan 28, 2010 at 4:14 PM, burlen &lt;<a target="_blank" href="https://mail.google.com/a/cdnorthamerica.com/?view=cm&amp;tf=0&amp;to=burlen.loring@gmail.com">burlen.loring@gmail.com</a>&gt; wrote:<br>
&gt; Hi Guys,<br>
&gt;<br>
&gt; I&#39;m having some issues in ParaView that relate back to VTK&#39;s OSMesa<br>
&gt; rendering context. Specifically VTK asks OSMesa for the default RGBA<br>
&gt; context, which only has a 16 bit depth buffer. That&#39;s causing some artifacts<br>
&gt; and compositing issues in certain situations. for example:<br>
&gt;<br>
&gt;<br>
&gt; <a href="http://nashi-submaster.ucsd.edu/movies/PV/tube-filter-artifact/mesa-artifacts.png" target="_blank">http://nashi-submaster.ucsd.edu/movies/PV/tube-filter-artifact/mesa-artifacts.png</a><br>
&gt;<br>
&gt; <a href="http://nashi-submaster.ucsd.edu/movies/PV/tube-filter-artifact/mesa-artifacts-decomp.png" target="_blank">http://nashi-submaster.ucsd.edu/movies/PV/tube-filter-artifact/mesa-artifacts-decomp.png</a><br>
&gt;<br>
&gt; Explicitly requesting a 32 bit depth buffer solves the problems.<br>
&gt;<br>
&gt; I attached a small patch that makes this change in VTK. It replaces the call<br>
&gt; to OSMesaCreateContext with one to OSMesaCreateContextExt specifying a 32<br>
&gt; bit depth buffer and carries forward the current default values for<br>
&gt; accumulation and stencil buffers. I guess this function was The<br>
&gt; OSMesaCreateContextExt was added to in mesa release 3.5, the current release<br>
&gt; is 7.7.<br>
&gt;<br>
&gt; Is this the right fix? Or is something more sophisticated necessary? e.g.<br>
&gt; run time configurable. And while we&#39;re on the subject, are OSMesa&#39;s other<br>
&gt; buffer defaults reasonable? accum (8 bits per channel) and stencil buffers<br>
&gt; (16 bits).<br>
&gt;<br>
&gt; Thanks<br>
&gt; Burlen<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
--<br>
François Bertel, PhD  | Kitware Inc. Suite 204<br>
1 (518) 371 3971 x113 | 28 Corporate Drive<br>
                      | Clifton Park NY 12065, USA<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br>