rubasurex
10-09-2008 16:20:26
I just integrated PagedGeometry into my project and when I test it, I receive the following exception (taken from the Ogre log) and my application crashes.
The exception occurs are this line of code.
I have discovered that is has to do with the ImpostorPage, because if I remove this line from my set up, it all runs fine.
But then by doing this, I no longer have imposters. All the trees are rendered as batched entities.
I did a fresh compile of PagedGeometry against the latest Ogre 1.6 SVN today. I made sure to copy all the correct header and library files to my project. What could I be doing wrong to receive this exception?
OGRE EXCEPTION(5:ItemIdentityException): Cannot find a group named Impostors in ResourceGroupManager::isResourceGroupInitialised at c:\ogre\ogremain\src\ogreresourcegroupmanager.cpp (line 1682)
The exception occurs are this line of code.
trees->update();
I have discovered that is has to do with the ImpostorPage, because if I remove this line from my set up, it all runs fine.
trees->addDetailLevel<Forests::ImpostorPage>(700, 50);
But then by doing this, I no longer have imposters. All the trees are rendered as batched entities.
I did a fresh compile of PagedGeometry against the latest Ogre 1.6 SVN today. I made sure to copy all the correct header and library files to my project. What could I be doing wrong to receive this exception?