And since you have multiple meshes, for depth sort to work, you need to append them all together first, then depth sort that. Otherwise the opacity is only correct within each one, not amongst them.<div><br clear="all">David E DeMarle<br>
Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909<br>
<br><br><div class="gmail_quote">On Thu, Jan 26, 2012 at 3:13 PM, David E DeMarle <span dir="ltr"><<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Use depth peeling.<div><a href="http://www.vtk.org/Wiki/VTK/Depth_Peeling" target="_blank">http://www.vtk.org/Wiki/VTK/Depth_Peeling</a></div><div><br></div><div>Or vtkDepthSortPolyData before rendering.</div><div><br clear="all">
David E DeMarle<br>
Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a><br>
<br><br><div class="gmail_quote"><div><div class="h5">On Thu, Jan 26, 2012 at 3:10 PM, Nicolas Rannou <span dir="ltr"><<a href="mailto:nicolas.lists@gmail.com" target="_blank">nicolas.lists@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hello,<div><br></div><div>I have several meshes I want to visualize.</div><div><br></div><div>If I decrease the opacity of those meshes, the visualization goes wrong:</div><div>I don't see a nice "superposition effect", instead I only see the "last" object "in the ray".</div>
<div><br></div><div>Decreasing the opacity,</div><div>- paraview has the expected behavior</div><div>- the vtk example (<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/Opacity" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/Opacity</a>) has the wrong behavior.</div>
<div><br></div>
<div>I could find which option to use to enable a proper behavior...</div><div><br></div><div>Thanks,</div><div>Nicolas </div>
<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 <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>