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();
}

 

 

posted @ 2019-06-28 16:27  西北逍遥  阅读(1284)  评论(0编辑  收藏  举报