<div dir="ltr"><div>Hi Simon,</div><div><br></div><div>This is intended behavior. Setting a pass on the renderer bypasses the renderer's internal settings, and only the specified pass will be rendered. This means that the call to l_renderer->SetUseDepthPeeling(true); has no effect; only the l_ssaa render pass will be executed.<br><br>Your l_ssaa pass delegates to an instance of vtkRenderPassStepsPass, which by default uses vtkTranslucentPass for rendering the translucent geometry -- this only does basic alpha blending, not depth peeling.<br><br>What you want to do is replace the translucent pass with one that performs depth peeling. Something like this should work:</div><div><br></div><div>    ...</div><div><br></div><div>    // setup SSAA pass</div><div>    vtkSmartPointer<vtkRenderStepsPass> l_basic_passes = vtkSmartPointer<vtkRenderStepsPass>::New();</div><div>    vtkSmartPointer<vtkSSAAPass> l_ssaa = vtkSmartPointer<vtkSSAAPass>::New();<br></div><div>    l_ssaa->SetDelegatePass( l_basic_passes );</div><div>    l_renderer->SetPass( l_ssaa );</div><div><br></div><div>    // Enable depth peeling. This pass is defined in the vtkRenderingOpenGL2 module.</div><div>    vtkSmartPointer<vtkDual<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">DepthPeelingPass> l_peel = vtkSmartPointer<vtkDualDepthPeelingPass>::New();</span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">    l_basic_passes->SetTranslucentPass(l_peel);</span></div><div>    </div><div>    ...</div><div><br>If you have issues with the dual depth peeling pass, try the older vtkDepthPeelingPass. It's a bit slower, but still works.<br><br>HTH,<br>Allie</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 13, 2018 at 3:54 AM, Simon Esneault <span dir="ltr"><<a href="mailto:simon.esneault@gmail.com" target="_blank">simon.esneault@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello VTK community<br><br>Is seems adding an SSAA rendering pass breaks the depth peeling process. Attached is an example that highlight the problem. When commenting out the line 64 (l_renderer->SetPass( l_ssaa ); the translucent geometry is rendered correctly, but the result is not anti-aliased.<br><br><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">With SSAA pass -> Depth Peeling broken :</span> <a href="https://cdn.pbrd.co/images/H7qnZxC.png" target="_blank">https://cdn.pbrd.co/images/<wbr>H7qnZxC.png</a>
<br>Without SSAA pass -> Depth Peeling ok : <a href="https://cdn.pbrd.co/images/H7qnvE9.png" target="_blank">https://cdn.pbrd.co/images/<wbr>H7qnvE9.png</a><br><br>Shall I fill a bug for this ?<br><br>Thanks<span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div class="m_-4875481627931109999gmail_signature"><div dir="ltr"><div>------------------------------<wbr>------------------------------<wbr>------<br>Simon Esneault<div>Rennes, France<br>------------------------------<wbr>------------------------------<wbr>------</div></div></div></div>
</font></span></div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>