This is probably a dumb question: Would it be possible to register an object with the renderer when extra renderers are needed for picking etc. and then only do the extra work when something is registered?<br><br><div class="gmail_quote">

On Thu, Sep 10, 2009 at 10:39 AM, Jeff Baumes <span dir="ltr"><<a href="mailto:jeff.baumes@kitware.com">jeff.baumes@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="gmail_quote"><div class="im"><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Picking the entire viewport during each still render is more appropriate for (1). (This is what vtkScenePicker does)</blockquote>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Picking the entire viewport after each hover/delay may be more appropriate for (2).<br></blockquote><div><br></div></div><div>I did look into vtkScenePicker, but did not want the hover text to be updated so often, and there was tighter integration needed into how the hardware selector and view interact. So I used vtkHardwareSelector directly instead. Case 2 seems like the most common one, but perhaps we could support other modes in the future.</div>

<div class="im">
<div><div><br></div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<div><div><div><div><div><div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">In general, the idea of having a second render in the still render (effectively doubling the time) is troubling.  If you have a lot of geometry that takes a while to render (which is not uncommon in a 3D view), the added rendering time is not acceptable.<br>


</span></font></div></blockquote></div></div></div></div></div></div></div></div></blockquote></div></blockquote><div><br></div></div><div>I just checked in a change for this. The extra render no longer happens at each still render, but instead when the mouse hovers or selects for the first time. Still renders cause a dirty flag to get set so the view knows when a new pick render is needed. If hover events are off, and the selection mode is set to "frustum" instead of "surface", pick renders will never occur.</div>

<div class="im">
<div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<div><div><div><div><div><div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">


<br>
Is this behavior an option and is it off by default?<br></span></font></div></blockquote></div></div></div></div></div></div></div></div></blockquote></div></blockquote><div><br></div></div><div>It is now off by default.</div>


<div><br></div><div>Thanks for the feedback.</div><div><br></div><font color="#888888"><div>Jeff</div></font></div>
<br>_______________________________________________<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>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br><br clear="all"><br>-- <br>William J. Schroeder, PhD<br>Kitware, Inc.<br>28 Corporate Drive<br>Clifton Park, NY 12065<br><a href="mailto:will.schroeder@kitware.com">will.schroeder@kitware.com</a><br>

<a href="http://www.kitware.com">http://www.kitware.com</a><br>(518) 881-4902<br>