|
楼主 |
发表于 2010-10-10 10:30:57
|
显示全部楼层
非常感谢zhufu208 的回答
for (int i=0;i<4;i++)
{
osg::ref_ptr<osg:agedLOD>page=new osg:agedLOD;
page->setRangeMode(osg:agedLOD::RangeMode:ISTANCE_FROM_EYE_POINT);
char a[10];
string str,name;
itoa(i, a, 10);
str = a;
name=str+".ive";
page->setFileName(0,name);
page->setRange(0,0.0,5000.0);
osg::ComputeBoundsVisitor visitor;
pagedLod->accept(visitor);
osg::Vec3 center=visitor.getBoundingBox().center();
pagedLod->setCenter(center);
pagedLod->setRadius(1000.0);
root->addChild(page.get());
}
这样也还是不行,请指点一下 |
|