I am surprised it doesn'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"><<a href="mailto:francois.bertel@kitware.com">francois.bertel@kitware.com</a>></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 <<a target="_blank" href="https://mail.google.com/a/cdnorthamerica.com/?view=cm&tf=0&to=burlen.loring@gmail.com">burlen.loring@gmail.com</a>> wrote:<br>
> Hi Guys,<br>
><br>
> I'm having some issues in ParaView that relate back to VTK's OSMesa<br>
> rendering context. Specifically VTK asks OSMesa for the default RGBA<br>
> context, which only has a 16 bit depth buffer. That's causing some artifacts<br>
> and compositing issues in certain situations. for example:<br>
><br>
><br>
> <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>
><br>
> <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>
><br>
> Explicitly requesting a 32 bit depth buffer solves the problems.<br>
><br>
> I attached a small patch that makes this change in VTK. It replaces the call<br>
> to OSMesaCreateContext with one to OSMesaCreateContextExt specifying a 32<br>
> bit depth buffer and carries forward the current default values for<br>
> accumulation and stencil buffers. I guess this function was The<br>
> OSMesaCreateContextExt was added to in mesa release 3.5, the current release<br>
> is 7.7.<br>
><br>
> Is this the right fix? Or is something more sophisticated necessary? e.g.<br>
> run time configurable. And while we're on the subject, are OSMesa's other<br>
> buffer defaults reasonable? accum (8 bits per channel) and stencil buffers<br>
> (16 bits).<br>
><br>
> Thanks<br>
> Burlen<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <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>
><br>
><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>