MFC加载大型osg模型
MFC加载模型,发现打开 Navid 缓冲等选项后,加载大型模型的速度就快了很多。 #include "stdafx.h" #include "OSGObject.h" COSGObject::COSGObject(HWND hWnd) { m_hwnd = hWnd; } COSGObject::~COSGObject() { } void COSGObject::InitOSG() { InitSceneGraph(); InitCameraConfig(); } void COSGObject::InitSceneGraph() { mRoot = new osg::Group; //mRoot->addChild(osgDB::readNodeFile("D://library.OSGB")); //mRoot->addChild(osgDB::readNodeFile("I:\\BIM\\osg\\pzy20190722.OSGB")); //mRoot->addChild(osgDB::readNodeFile("D:\\参考手册\\BIM\\ive\\build20190628.ive")); mRoot->addChild(osgDB::readNodeFile("I:\\BIM\\osg\\wanluowang20190903.OSGB")); } void