Hello Steve,<br>I am glad someone else has the same problems to solve ;)<br>However, I fear you are right : The books do not contain any<br>documentation on this. I even searched the archives without success.<br>There is only one rudimentary CPP example.<br>
Anyway, I will try to do the same as you are doing and<br>work myself through it. So maybe we can help each other out ?<br><br>Kind regards,<br>Oliver<br><br><div><span class="gmail_quote">2008/4/8, Steve Chall &lt;<a href="mailto:stevec@renci.org">stevec@renci.org</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br> &gt;Message: 18<br> &gt;Date: Tue, 8 Apr 2008 14:12:32 +0200<br> &gt;From: &quot;Oliver Kania&quot; &lt;<a href="mailto:ptw.freiburg@googlemail.com">ptw.freiburg@googlemail.com</a>&gt;<br> &gt;Subject: [vtkusers] Multiple rendering layers reacting to interaction<br>
 &gt;To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br> &gt;Message-ID:<br> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<a href="mailto:e22fb1100804080512q2b1ad655oee6f3581183bfb60@mail.gmail.com">e22fb1100804080512q2b1ad655oee6f3581183bfb60@mail.gmail.com</a>&gt;<br>
 &gt;Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br> &gt;<br> &gt;Hello,<br> &gt;my application has several layers :<br> &gt;<br> &gt;vtkRenderer RenderImage2 = new vtkRenderer();<br> &gt;vtkRenderer RenderImage = new vtkRenderer();<br>
 &gt;<br> &gt; RenderImage.SetLayer(0);<br> &gt; RenderImage2.SetLayer(1);<br> &gt;<br> &gt; RenderImage.SetInteractive(1);<br> &gt; RenderImage2.SetInteractive(1);<br> &gt;<br> &gt;<br> &gt;&nbsp;&nbsp;RenderImage.SetBackground(0.0, 0.0, 0.3);<br>
 &gt;<br> &gt;&nbsp;&nbsp;vtkRenderWindow renWin = new vtkRenderWindow();<br> &gt;&nbsp;&nbsp;renWin.SetNumberOfLayers(2);<br> &gt;&nbsp;&nbsp;renWin.AddRenderer(RenderImage2);<br> &gt;&nbsp;&nbsp;renWin.AddRenderer(RenderImage);<br> &gt;<br> &gt;vtkRenderWindowInteractor iren = new vtkRenderWindowInteractor();<br>
 &gt;iren.SetRenderWindow(renWin);<br> &gt;//set image mode interaction style<br> &gt;vtkInteractorStyleImage interactor = new vtkInteractorStyleImage();<br> &gt;ren.SetInteractorStyle(interactor);<br> &gt;<br> &gt;What I find is that only one layer reacts to interaction.<br>
 &gt;Since I used SetInteractive(), I was expecting that both layers do react.<br> &gt;More generally, I want to have an arbitrary number of layers that do<br> &gt;react to the same interaction. Maybe it is somehow possible to link<br>
 &gt;the cameras of the renderers ?<br> &gt;(I tried Renderer1.setCamera(Renderer2.getCamera()) but that does<br> &gt;not work)<br> &gt;<br> &gt;kind regards,<br> &gt;Oliver<br> <br> Thank you, Oliver, for bringing layered rendering to my attention.&nbsp;&nbsp;This<br>
 sounds like it could resolve some visibility issues I&#39;m experiencing.<br> However, I can&#39;t seem to find very much documentation on this feature.&nbsp;&nbsp;I&#39;ve<br> bought and looked through the books, read the code in vtkRenderer.h, and<br>
 checked online, and pretty much all I&#39;ve found out is that layers are<br> numbered and all but the bottom are transparent.&nbsp;&nbsp;I can and, if necessary,<br> will work through it empirically, i.e., by writing code and seeing what<br>
 happens.&nbsp;&nbsp;But it would be valuable and probably much more efficient if there<br> were some more thorough documentation than what I&#39;ve found thus far.&nbsp;&nbsp;Can<br> anyone point me to it?&nbsp;&nbsp;Admittedly, once again I may have just overlooked<br>
 something obvious, but if so I&#39;d appreciate someone shaking me out of my<br> tunnel vision.&nbsp;&nbsp;Thanks all.<br> <br> -Steve<br> <br> <br> _______________________________________________<br> This is the private VTK discussion list.<br>
 Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br> Follow this link to subscribe/unsubscribe:<br> <a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
 </blockquote></div><br>