Hi all, I'm quite new to OSG and have no OPENGL background.
I want to know how to acquire the current location information of a drawable object? Actually the initial position of the geometry is set by me. But when I move the objects with mouse, the spatial information changes, right? So I want to acquire such information. For the second question, how to calculate the distance between an object and the viewpoint? Because I want to differentiate the 'stateset' when objects are far away from the viewpoint and when they are close to the camera. And I don't even know where the camera viewpoint is! Regards and thank you! Cheers, Fan ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=48628#48628 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

