I say a wrong thing : the picking is well done (it's just because i make an highlight that is a copy of my selected object in the same place and the blending is done so the highlight color is blended and is not red but grey).<br>
<br>I made screenshots to show you the different problems i encounter. Think that the different picking are maded by vtkVisibleCellSelection in CELL SELECTION MODE :<br><br>        vtkVisibleCellSelector selector = new vtkVisibleCellSelector();<br>
        selector.SetRenderer(canvas.GetRenderer());<br>        selector.SetArea(firstPoint[0], firstPoint[1], secondPoint[0],<br>                secondPoint[1]);<br>        selector.SetRenderPasses(0, 1, 0, 0, 1, 0);<br><br>
        canvas.lock();<br>        selector.Select();<br>        canvas.unlock();<br><br><br>In this screenshot you can see the picking done and the highlight maded by changing the color of the actor :<br><br><a href="http://ibarz.julien.free.fr/images/pick/pick1.png">http://ibarz.julien.free.fr/images/pick/pick1.png</a><br>
<br>In this screenshot you can see the highlight of the cell selected and the highlight is a copy of the previous actor with only the cell selected (the blend is made so the color is not red but grey) :<br><br><a href="http://ibarz.julien.free.fr/images/pick/pick2.png">http://ibarz.julien.free.fr/images/pick/pick2.png</a><br>
<br>And in this screenshot you can see that i pick an actor that is normally not visible (it's highlighted in red but because a translucent actor is behind him it is blended and rendered in opaque grey). I don't understand why it's selected because normally in the pick rendering color it is not visible (because in pick color rendering the alpha is not used) :<br>
<br><a href="http://ibarz.julien.free.fr/images/pick/pick3.png">http://ibarz.julien.free.fr/images/pick/pick3.png</a><br><br>Do you know why in the third screenshot i select an unvisible actor ?<br><br><div class="gmail_quote">
2008/6/12 Julian Ibarz <<a href="mailto:julian.ibarz@gmail.com">julian.ibarz@gmail.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>I'm doing a CAD viewer and for seeing internal pieces of an object i make the englobant pieces of the object translucent. But i want to pick this pieces with pick color. For some reason i don't know the translucent objects are not drawn in the pick color rendering. I made a trick to render them (changing vtkRenderer::UpdateGeometryForSelection()) and i see a difference : the translucent geometry becames opaque when they are picked but the picking results doesn't have them so my problem is not solved but it shows that we can if we want pick the translucent geometries.<br>

<br>So my question is : why we can't decide to make the translucent geometries picked or not (with a flag in the pickers) ?<br clear="all"><br>-- <br><font color="#888888">Julian Ibarz
</font></blockquote></div><br><br clear="all"><br>-- <br>Julian Ibarz