Code: Select all
Added resource location '/home/srd/ogre-v2-1/Samples/Media' of type 'FileSystem' to resource group 'General'
Added resource location '/home/srd/ogre-v2-1/Samples/Media/packs/DebugPack.zip' of type 'Zip' to resource group 'General'
Mesh: Loading Cube_d.mesh.
WARNING: Cube_d.mesh is an older format ([MeshSerializer_v2.1 R1]); you should upgrade it as soon as possible using the OgreMeshTool tool.
Can't assign material DebugCube because this Material does not exist. Have you forgotten to define it in a .material script?
Code: Select all
Ogre::ResourceGroupManager::getSingleton().addResourceLocation(
"/home/srd/ogre-v2-1/Samples/Media", "FileSystem",
Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);
Ogre::ResourceGroupManager::getSingleton().addResourceLocation(
"/home/srd/ogre-v2-1/Samples/Media/packs/DebugPack.zip",
"Zip", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);
Ogre::Item* item = sceneManager->createItem("Cube_d.mesh",
Ogre::ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME,
Ogre::SCENE_DYNAMIC);