Show
Ignore:
Timestamp:
02/26/10 11:13:28 (3 years ago)
Author:
robert
Message:

From Paul Martz, "The changes are very similar to Magne's, except they now take the near plane into account. The changes are:

  • Change OcclusionQueryNode::getPassed to take a NodeVisitor? rather than the distance from BS center to the eye point. Change where CullVisitor? calls this method to use the new parameters.
  • getPassed now exits early and returns true to avoid blinking / blink-in of geometry for the first frame or for out-of-range LOD children coming back into view.
  • getPassed now considers the distance from the near plane to the bounding sphere (rather than eye point to bounding sphere) when determining if the viewer is "inside" the bounding sphere or not."
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osg/OcclusionQueryNode

    r7889 r11127  
    8989    // These methods are public so that osgUtil::CullVisitor can access them. 
    9090    // Not intended for application use. 
    91     bool getPassed( const osg::Camera* camera, float distanceToEyePoint ); 
     91    bool getPassed( const osg::Camera* camera, osg::NodeVisitor& nv ); 
    9292    void traverseQuery( const osg::Camera* camera, osg::NodeVisitor& nv ); 
    9393    void traverseDebug( osg::NodeVisitor& nv );