But when I launch the application, after the video mode selection GUI, I get the following error:
Code: Select all
Parsing script OgreLoadingPanel.overlay
Finished parsing scripts for resource group
Parsing scripts for resource group General
Finished parsing scripts for resource group General
Mesh: Loading ingrao01.mesh.
An exception has occured: An exception has been thrown!
-----------------------------------
Details:
-----------------------------------
Error #: 8
Function: ResourceGroupManager::openResource
Description: Cannot locate resource ingrao01.mesh in resource group General..
File: OgreResourceGroupManager.cpp
Line: 499
Stack unwinding: <<beginning of stack>>
*-*-* OGRE Shutdown
It doesn't seem related to the resources.cfg file, as it points right to the directory where the mesh is. And besides, it seems to load other resources, like bitmaps.
Could it be something missing in my code? I'm using the provided ExampleApplication.h and ExampleFrameListener.h.
These are the lines of the .cpp file which could be interested in the error:
Code: Select all
void createScene(void)
{
Entity* thisEntity = mSceneMgr->createEntity("nameInTheScene", "ingrao01.mesh");
mSceneMgr->setAmbientLight(ColourValue(1, 1, 1));
SceneNode* thisSceneNode = static_cast<SceneNode*>(mSceneMgr->getRootSceneNode()->createChild());
thisSceneNode->attachObject(thisEntity);
thisSceneNode->roll(Degree(90));
thisSceneNode->yaw(Degree(90));
mCamera->setPosition(Vector3(0,-200,-600));
mCamera->lookAt(Vector3(0,-200,500));
}