Show
Ignore:
Timestamp:
05/28/07 15:56:26 (7 years ago)
Author:
robert
Message:

Added project down to base implementation.

Files:
1 modified

Legend:

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

    r6764 r6776  
    182182    osg::Group* root = new osg::Group; 
    183183 
     184    float baseHeight = center.z()-radius*0.6; 
    184185    osg::Node* baseModel = createBase(center-osg::Vec3(0.0f,0.0f,radius*0.5),radius); 
    185186    osg::Node* movingModel = createMovingModel(center,radius*0.8f); 
     
    190191        overlayNode->setContinuousUpdate(true); 
    191192        overlayNode->setOverlaySubgraph(movingModel); 
     193        overlayNode->setOverlayBaseHeight(baseHeight); 
    192194        overlayNode->addChild(baseModel); 
    193195        root->addChild(overlayNode); 
     
    261263    // normal viewer usage. 
    262264 
     265    viewer.setUpViewOnSingleScreen(1); 
     266 
    263267    return viewer.run(); 
    264268