Show
Ignore:
Timestamp:
04/18/03 23:44:48 (11 years ago)
Author:
robert
Message:

Changed the ordering of the picking intersections.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgoccluder/osgoccluder.cpp

    r1902 r1904  
    2121#include <osg/OccluderNode> 
    2222#include <osg/Geometry> 
     23#include <osg/ShapeDrawable> 
    2324 
    2425 
     
    4445         
    4546        osgProducer::Viewer*                    _viewer; 
    46         osg::ref_ptr<osg::Group>                _rootnode; 
    4747        osg::ref_ptr<osg::Group>                _occluders; 
    4848        osg::ref_ptr<osg::ConvexPlanarOccluder> _convexPlanarOccluder; 
     
    111111    osg::ConvexPlanarPolygon& occluder = _convexPlanarOccluder->getOccluder(); 
    112112    occluder.add(pos); 
     113 
     114//      
     115//     osg::BoundingSphere bs = rootNode()->getBound(); 
     116//  
     117//     osg::ShapeDrawable* sd = new osg::ShapeDrawable(new osg::Sphere(pos,bs.radius()*0.001f)); 
     118//     osg::Geode* geode = new osg::Geode; 
     119//     geode->addDrawable(sd); 
     120//  
     121//     rootNode()->addChild(geode); 
     122//  
    113123     
    114124}