In the new version the DotSceneLoader is deprecated. To be conform with the new version, I changed my code to load a scene file to the following:
Code: Select all
auto oldGroupName = ResourceGroupManager::getSingleton().getWorldResourceGroupName();
ResourceGroupManager::getSingleton().setWorldResourceGroupName(m_res_group_name);
Codec::getCodec("scene")->decode(Ogre::DataStreamPtr(Root::openFileStream(tuc::helpers::to_utf8(scene_file), m_res_group_name)), m_p_machine_tool);
ResourceGroupManager::getSingleton().setWorldResourceGroupName(oldGroupName);
Because the old way with the help of DotSceneLoader is a short one-liner:
Code: Select all
Ogre::SceneLoaderManager::getSingleton().load(tuc::helpers::to_utf8(scene_file), m_res_group_name, m_p_machine_tool);