//DEMO 6 功能:隐藏指定模型
#include <osgViewer/Viewer>
#include <osgDB/ReadFile>
#include <osg/Node>
void main()
{
osgViewer::Viewer viewer;
osg::Group *root = new osg::Group();
osg::Node *osgcool = osgDB::readNodeFile("osgcool.osg");
root->addChild(osgcool);
root->addChild(osgDB::readNodeFile("glider.osg"));
osgcool->setNodeMask(0x0);
viewer.setSceneData(root);
viewer.realize();
viewer.run();
}
#include <osgViewer/Viewer>
#include <osgDB/ReadFile>
#include <osg/Node>
void main()
{
osgViewer::Viewer viewer;
osg::Group *root = new osg::Group();
osg::Node *osgcool = osgDB::readNodeFile("osgcool.osg");
root->addChild(osgcool);
root->addChild(osgDB::readNodeFile("glider.osg"));
osgcool->setNodeMask(0x0);
viewer.setSceneData(root);
viewer.realize();
viewer.run();
}