Novian
10-08-2006 02:21:43
I have been using 3d max for years and now that I have started using OGRE I downloaded oFusion. After I export the .mesh I try to load it into my OGRE application I get the following error:
Error #:7
Function: ResourceGroupManager::findGroupContainingResource
Description: Unable to derive resource group for Box01.mesh automaticly since the resource was not found..
File:..\src\OgreResourceGroupManager.cpp
Line:1346
Stack unwinding: <<beginning of stack>>
any help would be great!
Lioric
10-08-2006 02:25:12
You need to put the exported mesh and material files in a folder that is part of your resource locations, so the files can be loaded when needed
Novian
10-08-2006 15:33:41
You need to put the exported mesh and material files in a folder that is part of your resource locations, so the files can be loaded when needed
I have done so. I still get the error which leads me to believe that the engine does not recognize the .mesh file. I know it finds it, and all the resources are properly stored. Any thoughts?
Lioric
10-08-2006 15:52:22
This is mostly because of wrong declared resources or resource locations/groups
Are your resources delcared before you load the scene or mesh files?
Post your resource.cfg file, the relevant part of your application, and the ogre.log file
Novian
12-08-2006 04:53:12
Let me further explain,
the code in my application is reading all .mesh files in a single folder and displaying them. It works if I use any one of the meshes supplied with the OGRE SDk.
The mesh I exported from 3DSMax, with oFusion, gives this error.
Here is a snippet of my code.
//Find files in the directory
int f;
char foundMesh[256];
WIN32_FIND_DATA FindFileData;
HANDLE hFind;
mSceneMgr->setAmbientLight( ColourValue( 0, 0, 0 ) );
hFind = FindFirstFile("mesh/*.mesh", &FindFileData);
if (hFind == INVALID_HANDLE_VALUE)
{
printf ("Invalid File Handle. GetLastError reports %d\n",
GetLastError ());
return;
}
else
{
f = 0;
do
{
strcpy(foundMesh, FindFileData.cFileName);
char stemp[256];
sprintf(stemp, "mesh%d", ++f);
Entity *ent = mSceneMgr->createEntity( stemp, foundMesh );
sprintf(stemp, "meshnode%d", f);
node = mSceneMgr->getRootSceneNode()->createChildSceneNode( stemp, Vector3( 300*f, 0, -300*f ) );
node->attachObject( ent );
} while (FindNextFile(hFind, &FindFileData) != 0) ;
//dwError = GetLastError();
FindClose(hFind);
}
When debugging, it successfully reads the presence of the .mesh file but then throws the exception mentioned above.
We are just at the beginning stages of our project, so this application is a small 'test' for proof-of-concept.
Thanks in advance for your help.
Lioric
12-08-2006 16:45:57
Did you tested the mesh files in a mesh viewer application?
If you have tested them in a mesh viewer, either the included with Ogre or any of the separate viewer application projects, and the result is the same, send me the mesh file so i can review it
Novian
31-08-2006 22:53:42
We have given up on OGRE.
Going wth Microsoft XNA (C#). Good stuff!