<div dir="ltr">Add a second renderer to the renderwindow and use SetLayer to make the second renderer be above the first. <div>Put the text actor in the second renderer and make sure that both renderers get the same camera.<div>

<br></div></div></div><div class="gmail_extra"><br clear="all"><div>David E DeMarle<br>Kitware, Inc.<br>R&amp;D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div>
<br><br><div class="gmail_quote">On Mon, Jun 3, 2013 at 8:26 AM, Max <span dir="ltr">&lt;<a href="mailto:smapersmaper@gmail.com" target="_blank">smapersmaper@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi David,<br>
In these examples the text is shown at some corner.<br>
I have a vtkVectorText which is part if the scene. Code:<br>
<br>
 vtkVectorText vectorText = new vtkVectorText();<br>
            vectorText.SetText(text);<br>
<br>
            vtkPolyDataMapper textMapper = vtkPolyDataMapper.New();<br>
            textMapper.SetInputConnection(vectorText.GetOutputPort());<br>
<br>
            //face the text always to the camera<br>
            TextActor = new vtkFollower();<br>
            TextActor.SetMapper(textMapper);<br>
            TextActor.SetCamera(activeCamera);<br>
            TextActor.GetProperty().SetColor(color.R, color.G, color.B);<br>
            TextActor.SetPosition(textLocation.X, textLocation.Y,<br>
textLocation.Z);<br>
            TextActor.SetScale(5);<br>
<br>
The only problem is that when the text is behind an object i cannot see it.<br>
How can i make it appear all the time?<br>
<br>
Thank you,<br>
Max<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Text-always-on-top-tp5721132p5721141.html" target="_blank">http://vtk.1045678.n5.nabble.com/Text-always-on-top-tp5721132p5721141.html</a><br>
<div class="im HOEnZb">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div>