kartweel
13-11-2006 13:39:58
I've been looking at the Paging Landscape SceneManager and it looks great. In using it I have hit a bit of a stump in implementing the listeners. I can't for the life of me figure out how in the Demo Application the listeners are used. As far as I can tell they aren't called, so I am not sure how to implement them in my application.
In my application I have tried "new CustomPagingLandScapeListener(mSceneMgr)" (from PagingLandScape2TerrainListener.h), but when calling mSceneMgr->setOption() to register the listeners it gives me an access violation. The error is: Unhandled exception at 0x0a8de3f1 in OgreTute.exe: 0xC0000005: Access violation reading location 0x00000004.
I take it I am doing something wrong, but I can't figure out what. It looks like it is trying to jump to some code miles off where it should be.
I haven't used delegates in c++ before so I am not sure if I am doing something wrong there, but I thought in copying the demo app it should be right.
Thanks
Kartweel
In my application I have tried "new CustomPagingLandScapeListener(mSceneMgr)" (from PagingLandScape2TerrainListener.h), but when calling mSceneMgr->setOption() to register the listeners it gives me an access violation. The error is: Unhandled exception at 0x0a8de3f1 in OgreTute.exe: 0xC0000005: Access violation reading location 0x00000004.
I take it I am doing something wrong, but I can't figure out what. It looks like it is trying to jump to some code miles off where it should be.
I haven't used delegates in c++ before so I am not sure if I am doing something wrong there, but I thought in copying the demo app it should be right.
Thanks
Kartweel