在OSGMFC程序基础上修改OSG_MFC类的方法,如下: void cOSG::InitSceneGraph(void) { // Init the main Root Node/Group mRoot = new osg::Group; //// Load the Model from the model name //mModel = osgDB::readNodeFile(m_ModelName); //if (!mModel) return; // Optimize the model