PLSM2 Application Exceptions (EDITED)

quasarchangel

06-03-2008 20:36:48

I finally got to the point where I got a basic PLSM2 application to compile, but now I am getting an error message while the application starts up, a blank ogre window shows for a while, seems to be loading, and then the error message.

So I checked the ogre.log file and found the following exception in it, which is what the error message showed:
OGRE EXCEPTION(5:ItemIdentityException): Unable to locate vertex program called DecompressVertex/VP. in GpuProgramUsage::setProgramName at c:\development\game development\projects\ogre\ogrenew\ogremain\src\ogregpuprogramusage.cpp (line 60)

I am using the Eihort CVS version of ogre, downloaded 2 days ago, and everything compiled correctly including the PLSM2 plugin. I am a noob at using Ogre, and I have to say, its been very frustrating to get it to compile. Can someone please help me out with this? Should I post whats in my resource.cfg or paginglandscape2.cfg file or the whole ogre.log file?

Any help would be appreciated.

EDIT: Ok, I've found that I needed to copy the materials folder from the ogreaddons\paginglandscape folder to my apps media folder. I was using the materials from the plsm2 binary demo. Had a few problems with some of the materials, but got it past them.

Now I am getting a new exception:
OGRE EXCEPTION(2:InvalidParametersException): World geometry is not supported by the generic SceneManager. in SceneManager::setWorldGeometry at c:\development\game development\projects\ogre\ogrenew\ogremain\src\ogrescenemanager.cpp (line 1335)
I saw in an older thread, tuan told someone to make sure the plsm2 plugin has been added to the plugins.cfg file when this occurs. So I checked that it is there and that the file exists, but still this same exception. Could it be a version problem? I am using the plsm2 plugin that I compiled from the CVS files.

Maxi

06-03-2008 23:45:52


Now I am getting a new exception:
OGRE EXCEPTION(2:InvalidParametersException): World geometry is not supported by the generic SceneManager. in SceneManager::setWorldGeometry at c:\development\game development\projects\ogre\ogrenew\ogremain\src\ogrescenemanager.cpp (line 1335)
I saw in an older thread, tuan told someone to make sure the plsm2 plugin has been added to the plugins.cfg file when this occurs. So I checked that it is there and that the file exists, but still this same exception. Could it be a version problem? I am using the plsm2 plugin that I compiled from the CVS files.


There are only two points of failure I can think of:

1. You haven't properly set PLSM2 as your sceneManager with

createSceneManager("PagingLandScapeSceneManager");

I had the problem that setting the the scene manager like in the tutorial
createSceneManager(ST_EXTERIOR_REAL_FAR);

didn't work for me.


2. There is no PLSM2 dll in the working directory of your project or it could be a debug/release mismatch.

quasarchangel

07-03-2008 08:46:23

Ok, thanks, had to change the ST_EXTERIOR_REAL_FAR to "PagingLandScapeSceneManager".

But now I'm not getting any error messages or exceptions in the log file. When running from within VS 2003, it breaks and opens the ogrepaginglandscapeoctreescenemanager.cpp file at the following function:
void PagingLandScapeOctreeSceneManager::registerCamera (PagingLandScapeOctreeCamera *c)
{
mPagingLandScapeOctree->traversal(RegisterCameraTraversal(c), 0);
}


Any ideas what the reason could be for this?

Maxi

07-03-2008 14:22:16

Seems to be the bug I stumbled over a vew month ago.

Here you can find a workarround.