<div dir="ltr">Hi,<br><br>Am trying to get depth peeling to work to improve the display of a vtkPolyData surface resulting from a delaunay triangulation.   Surfaces are often displayed in the wrong order.  Have been unable to get depth peeling to work and applying depth sorting still results in a display with surfaces in the wrong order.<br><br>VTK 6.10<br><br>Intel Core i5-4210U<br>Intel HD Graphics 4400<br>OpenGL version string: 3.0<br>Mesa 10.3.5<br>Gnome Version 3.14.2<br>Fedora 21<br><br>Based on glxinfo (attached) and <a href="http://www.itk.org/Wiki/VTK/Depth_Peeling">http://www.itk.org/Wiki/VTK/Depth_Peeling</a>, I find all the relevant extensions are available for depth peeling.<br><br>When experimenting with:<br>    <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CorrectlyRenderTranslucentGeometry">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CorrectlyRenderTranslucentGeometry</a><br><br>Problem 1 Summary: calling renderWindow->SetOffScreenRendering(true), seems to break depth peeling and results in renderer->GetLastRenderingUsedDepthPeeling() and hence 'bool IsDepthPeelingSupported(...)' always returning false.<br><br>Problem 1 Detail:<br>    <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CorrectlyRenderTranslucentGeometry">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CorrectlyRenderTranslucentGeometry</a><br>As provided, always results in:<br><br>    DEPTH PEELING SUPPORT: NO<br><br>    CHOSEN MODE: *** DEPTH SORTING ***<br><br>(A blank window is displayed under each of the 3 call scenarios on the web page.  This same result is achieved under both x and wayland).<br><br>But switching the parameter 'bool doitOffScreen' in the call to bool IsDepthPeelingSupported(...) from true to false, charges the result of IsDepthPeelingSupported(...) from false to true and results in the image being displayed correctly.<br><br>Problem 2: Applying the above code under QVTKWidget, we still have the issue with GetLastRenderingUsedDepthPeeling(), but applying the workaround above and setting 'bool doitOffScreen' to false, results in new error message during rendering:<br>    ERROR: In /.../VTK-6.1.0/Rendering/OpenGL/vtkOpenGLRenderer.cxx, line 1068<br>    vtkOpenGLRenderer (0x2c5a5e0): failed after RenderPeel 1 OpenGL errors detected <br>    0 : (1282) Invalid operation<br><br>Problem 2 Detail: <br><br>According to Sebastien on this thread:<br>    <a href="http://comments.gmane.org/gmane.comp.lib.vtk.user/70699">http://comments.gmane.org/gmane.comp.lib.vtk.user/70699</a><br><br>We need to create a new a new render window and then attach it using QVTKWidget::SetRenderWindow(...) rather than using QVTKWidget::GetRenderWindow(...)<br><br>Even after doing this and setting 'bool doitOffScreen' to false, we still get the error message above.<br><br>Similar issues discussed for ATI:<br><a href="http://public.kitware.com/pipermail/vtkusers/2013-December/082236.html">http://public.kitware.com/pipermail/vtkusers/2013-December/082236.html</a><br><br>Any suggestions appreciated.<br><br>Thanks and regards,<br>Michael<br></div>