<div dir="ltr">Hi again Robert,<div><br></div><div>attached is the mods to make it work with <span style="font-size:12.8px">USE_EYE_POINT_FOR_LOD_LEVEL_</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">SELECTION  too when traversing the PagedLODs. For my end it works. I would make a pull request but stuck with 3.5.5 and it is two additional lines of code. Please review...</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks and cheers!</span></div><div><span style="font-size:12.8px">Nick</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 29, 2016 at 11:34 PM, Trajce Nikolov NICK <span dir="ltr"><<a href="mailto:trajce.nikolov.nick@gmail.com" target="_blank">trajce.nikolov.nick@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Robert,<div><br></div><div>USE_EYE_POINT_FOR_LOD_LEVEL_<wbr>SELECTION seams to not have effect no matter if it is selected or not. I traced the code and as is written now IntersectionVisitor::apply(<wbr>osg::PagedLOD& plod) is working always with the highest res. </div><div><br></div><div><div>// Perform an intersection test only on children that display</div><div>// at the maximum resolution.</div><div><br></div><div>I need this functionality to be able to pick on the level of detail based on the distance from the eyepoint. I am seeing there is a override for that but it is never used</div><div><br></div><div><div>float IntersectionVisitor::<wbr>getDistanceToEyePoint(const osg::Vec3& pos, bool /*withLODScale*/) const</div><div>{</div><div>    if (_lodSelectionMode==USE_EYE_<wbr>POINT_FOR_LOD_LEVEL_SELECTION)</div><div>    {</div><div>        return (pos-getEyePoint()).length();</div><div>    }</div><div>    else</div><div>    {</div><div>        return 0.0f;</div><div>    }</div><div>}</div></div><div><br></div><div>If you are very busy and give some hints I can try to implement this functionality</div><div><br></div><div>Thanks a lot!</div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_-4961616222079196900gmail_signature">trajce nikolov nick<br></div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">trajce nikolov nick<br></div>
</div>