Need some help with Caelum

James Proctor

20-09-2009 23:29:57

When ever I try to add Caelum to the Player demo it just crashes the game. I haven't added the update method yet so I don't know if thats causing it to crash but I don't think so.

Here is my code:

CaelumManager.cpp:

#include "Engine/Environment/CaelumManager.h"

CaelumManager::CaelumManager(Ogre::Root* root, Ogre::SceneManager* mgr)
: root(root), mgr(mgr)
{
mCaelumSystem = new Caelum::CaelumSystem(root, mgr, Caelum::CaelumSystem::CAELUM_COMPONENTS_DEFAULT);
}

CaelumManager::~CaelumManager()
{
}

CaelumManager.h:

#include "Caelum.h" //Include Caelum header

using namespace Caelum;

class CaelumManager
{
public:
CaelumSystem* mCaelumSystem;
CaelumManager(Ogre::Root* root, Ogre::SceneManager* mgr);
~CaelumManager();
private:
Ogre::Root* root;
Ogre::SceneManager* mgr;
};

Inside my createScene Method:

Caelum = new CaelumManager(root, sceneMgr);

I don't see anything there that would cause it to crash. Also its not just my own manager that causes it to crash but its any time I try to add Caelum in any way possible it crashes. Just a side note Hydrax also doesn't work when I try adding it to the Player Demo so I would say theres something in the Player Demo causing these plugins not to work.

Fish

20-09-2009 23:52:42

What does the Ogre Log tell you, if anything?

-Fish

James Proctor

21-09-2009 00:02:13

Doesn't say anything.

Here is the last few lines of the log before it crashes:

19:02:09: Texture: 512_crackedDirtSandNormal.png: Loading 1 faces(PF_SHORT_RGB,513x512x1) with 9 generated mipmaps from Image. Internal format is PF_SHORT_RGBA,513x512x1.
19:02:10: Texture: 512_crackedDirtSand.png: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
19:02:10: Texture: mymap_c.png: Loading 1 faces(PF_R8G8B8,1024x1024x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,1024x1024x1.
19:02:13: Caelum: Initialising Caelum system...

Fish

21-09-2009 13:24:55

Could you post the whole log please? :)

-Fish