|
I would like to compute world coordinates during a cull traverse in a
class derived from osgUtil::CullVisitor. Is there any recommended way
of doing this? I had assumed I would be able to use the current
ModelViewMatrix which I assume gives the transformation from object
space to eye(viewing) space and the reverse out the viewing
transformation. But I cannot see an easy way to get hold of the current
viewing transform, especially if stereo viewing is being used. I
suspect I have missed something really obvious here. Can I just assume that the viewing transform is the first entry in the ModelView stack and access it via _modelviewStack._stack[0] (or something similar). This seems a bit risky. Roger |
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

