Hello Simon, by looking at the implementation of OSGDistanceLOD::draw it seems you cannot directly query it. I would suggest to modify this function and factorize out the calculation of the index of the child to be drawn. Another possibility would be to add a variable to hold the index so you could query it without another calculation. I am sure this modification will find its way into cvs.
Regards Matthias On Saturday 03 February 2007 10:06, Simon Haegler wrote: > osghello > > what would be the easiest way to get the currently rendered level of > detail from the DistanceLOD class? i want to be able to render the > selected level in a second viewport to have a closeup view (to check > the quality). > > cheers, > simon -- +---------------------+----------------------------+ | VREC GmbH | | | Matthias Stiller | | | Robert-Bosch-Str. 7 | tel: +49 6151 4921034 | | 64293 Darmstadt | web: http://www.vrec.de | | Germany | mail: [EMAIL PROTECTED] | +---------------------+----------------------------+ ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
