osg::PagedLOD example

int main()
{
    osg::ref_ptr<osgViewer::Viewer> viewer1 = new osgViewer::Viewer;
    osg::ref_ptr<osg::PagedLOD> pageLdc1 = new osg::PagedLOD;
    
    
    pageLdc1->setFileName(0, "D:\\参考手册\\BIM\\osg\\library.OSGB");
    pageLdc1->setRange(0, 0, 2000);
    
    viewer1->setSceneData(pageLdc1);
    viewer1->setUpViewInWindow(200, 200, 800, 600, 0);

    return viewer1->run();
}

osg::PagedLOD   example

 

osg::PagedLOD   example

 

上一篇:OSG+QT控件交互


下一篇:osg::Camera example