<p dir="ltr">Instead of render passes try using separate renderers. B goes into the renderer at layer 0. A goes into the renderer at layer 1. Then make sure both renderers's cameras have the same state. </p>
<div class="gmail_extra"><br><div class="gmail_quote">On Dec 3, 2016 6:41 AM, "leonid" <<a href="mailto:leonid.gluhovsky@gmail.com">leonid.gluhovsky@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I need to render two polydata objects, A and B. Each of them should be<br>
opaque, in the sense that their "back walls" should not be seen on the<br>
screen. However, even though object A is fully contained within object B, I<br>
need object A to be always seen on the screen. I.e., A and B should be<br>
opaque except for the fact that A should be visible through the surface of<br>
B.<br>
<br>
How can it be achieved?<br>
<br>
I read up on vtkRenderPass, but I cannot figure out if I can attach<br>
different objects to different render passes.<br>
<br>
Many thanks.<br>
<br>
leonid<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/depth-sorting-render-passes-tp5741407.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/depth-sorting-render-<wbr>passes-tp5741407.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<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="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
</blockquote></div></div>