Beispiel #1
0
//-----------------------------------------------------------------------------
void SSAOApp::_loadOgreMaxScene(const std::string &_path, const std::string &_filename, Ogre::SceneNode *_node)
{
    OgreMax::OgreMaxScene ogreMaxScene;
    SSAOMaterialSetter materialSetter;


    ogreMaxScene.Load(
        _path + _filename
        , mWindow
        , OgreMax::OgreMaxScene::SKIP_ENVIRONMENT 
        | OgreMax::OgreMaxScene::SKIP_SCENE_CAMERA
        | OgreMax::OgreMaxScene::SKIP_SCENE_LIGHT 
        | OgreMax::OgreMaxScene::ALL_NAME_PREFIXES
        , mSceneMgr
        , _node
        , &materialSetter
        , "ogremax");

}
Beispiel #2
0
	// Parsing. Scene file and generate the corresponding scene
	//before calling the need to ensure the use of loadResouse () to load. Scene resources
	// sceneName .scene: File Name, groupName:Resource Group, pAttachNode = NULL:create by root 
	void Util::parseDotScene(const std::string &sceneName, Ogre::SceneManager *sceneMgr,  
											const std::string &groupName, Ogre::SceneNode *rootNode)
	{
		OgreMax::OgreMaxScene scene;
		scene.Load(sceneName, 0, 0, sceneMgr, rootNode, 0, groupName);
	}