|
发表于 2010-2-8 09:18:10
|
显示全部楼层
在学习加载LOD的时候
osg::ref_ptr<osg:OD> lod = new osg::LOD;
osg::Node * node = osgDB::readNodeFile("bunny-high.ive"); float f = node->getBound().radius();
lod->addChild(osgDB::readNodeFile("bunny-low.ive"), f*7,FLT_MAX);
lod->addChild(osgDB::readNodeFile("bunny-mid.ive"), f*3, f*7);
lod->addChild(node,0.0, f*3);
在加载osg::Node * node = osgDB::readNodeFile("bunny-high.ive");时显示Node的指针为空;换成osg::Node * node = osgDB::readNodeFile("cow.osg");就没有问题? |
|