Demo_PagingLandScape2.exe Runtime error with VC++9.0 build

seljo

09-03-2009 22:06:00

I am newbie to OGRE, just trying to evaluate whether the terrain paging features will satisfy my requirements, but I can't seem to get the demo to work.

When I run the demo I get an "Access violation reading location 0x00000000" in ..\PagingLandScape2\src\OgrePagingLandScapeOctreeSceneManager.cpp line 1758

mPagingLandScapeOctree->traversal(RegisterCameraTraversal(c), 0);

mPagingLandScapeOctree appears to be null when it shouldn't be.
:?

Watch window of mPagingLandScapeOctree :
- mPagingLandScapeOctree 0x00000000 {mChildren=0x00000028 mNodes=[...]() mMovingNodes=[...]() ...} Ogre::PagingLandScapeOctree *
+ Ogre::OcclusionElement {mIsRegisteredToCam=??? nodeDataPerCam=[...]() mDebugRectangle2d=??? } Ogre::OcclusionElement
+ mChildren 0x00000028 Ogre::PagingLandScapeOctree * [2][2][2]
mNodes [...]() std::list<Ogre::PagingLandScapeOctreeNode *,std::allocator<Ogre::PagingLandScapeOctreeNode *> >
mMovingNodes [...]() std::list<Ogre::PagingLandScapeOctreeNode *,std::allocator<Ogre::PagingLandScapeOctreeNode *> >
mStaticNodes [...]() std::list<Ogre::PagingLandScapeOctreeNode *,std::allocator<Ogre::PagingLandScapeOctreeNode *> >
+ mBox {mMinimum={...} mMaximum={...} mExtent=??? ...} Ogre::AxisAlignedBox
+ mCullBox {mMinimum={...} mMaximum={...} mExtent=??? ...} Ogre::AxisAlignedBox
mWireBoundingBox CXX0030: Error: expression cannot be evaluated
+ mHalfSize {x=??? y=??? z=??? } Ogre::Vector3
+ mCullHalfSize {x=??? y=??? z=??? } Ogre::Vector3
mNumNodes CXX0030: Error: expression cannot be evaluated
mParent CXX0030: Error: expression cannot be evaluated
mSceneMgr CXX0030: Error: expression cannot be evaluated
mOcclusionBoundingBox CXX0030: Error: expression cannot be evaluated

Anyone have any Ideas?

VC++9.0 (VS2008) debug build.

I have read this post to the end, but to no avail. I am unsure what he did to make his project run... http://www.ogre3d.org/addonforums/viewtopic.php?f=2&t=7265&start=60


I downloaded the tarball from here http://ogreaddons.svn.sourceforge.net/viewvc/ogreaddons/trunk/paginglandscape/


I ran into compile errors that i managed to resolve and posted solutions here: http://www.ogre3d.org/addonforums/viewtopic.php?f=2&t=9479

seljo

10-03-2009 15:02:41

I guess I should clarify. It appears that the pointer is not properly initialized, but I cannot find the code that initializes it.

Zero23

10-03-2009 15:17:09

First use the forum search^^

Here you find your Solution in the second Answer viewtopic.php?f=2&t=9386&p=54750&hilit=mPagingLandScapeOctree#p54750 .

Zero

seljo

10-03-2009 17:37:13

Zero,

Thanks! I think I did read that post, and the one I linked above referenced the preprocessor setting as well, but apparently fatigue got the better of me and I applied it to the demo app instead of the PLSM project. Just needed a fresh brain on it. :P