<div dir="ltr">Hi Robert,<div><br></div><div>USE_EYE_POINT_FOR_LOD_LEVEL_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(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::getDistanceToEyePoint(const osg::Vec3& pos, bool /*withLODScale*/) const</div><div>{</div><div> if (_lodSelectionMode==USE_EYE_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><div><br></div>-- <br><div class="gmail_signature">trajce nikolov nick<br></div>
</div></div>