missing include files in latest CVS

waldi

05-10-2005 12:47:54

could someone please add and commit these files :roll:

  1. OgrePagingLandScapeOcclusionElement.h
    OgrePagingLandscapeOcclusionQuerySet.h
    OgrePagingLandscapeOcclusionTraversal.h

    OgrePagingLandscapePrerequisites.h
    [/list:u]
    thx.

tuan kuranes

05-10-2005 13:06:57

they're in cvs.
try update your repository.

waldi

05-10-2005 13:10:49

did't work :( ...i'll try to remove my sendbox, and make a clean checkout

waldi

05-10-2005 13:26:18

oops...yes they are there...but would be great if someone would fix the stuff for case-sensitive platforms

tuan kuranes

05-10-2005 14:05:11

you could give errors reported and I'll commit the fix.

waldi

05-10-2005 14:32:57

PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusion.h:11:#include "OgrePagingLandScapeOcclusionElement.h"
PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusionSorter.h:5:#include "OgrePagingLandScapeOcclusionElement.h"
PlugIns/PagingLandScape2/include/OgrePagingLandScapeOctree.h:39:#include "OgrePagingLandScapeOcclusionElement.h"
PlugIns/PagingLandScape2/include/OgrePagingLandScapeOctreeNode.h:42:#include "OgrePagingLandScapeOcclusionElement.h"
PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusion.h:10:#include "OgrePagingLandscapeOcclusionQuerySet.h"
PlugIns/PagingLandScape2/include/OgrePagingLandScapeOctree.h:41:#include "OgrePagingLandscapeOcclusionTraversal.h"
PlugIns/PagingLandScape2/include/OgreDebugRectangle2D.h:29:#include "OgrePagingLandscapePrerequisites.h"
PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusion.h:5:#include "OgrePagingLandscapePrerequisites.h"
PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusionCHCTraversal.h:4:#include "OgrePagingLandscapePrerequisites.h"
PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusionCameraTraversal.h:4:#include "OgrePagingLandscapePrerequisites.h"
PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusionDebugTraversal.h:6:#include "OgrePagingLandscapePrerequisites.h"
PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusionSWTraversal.h:4:#include "OgrePagingLandscapePrerequisites.h"
PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusionSorter.h:4:#include "OgrePagingLandscapePrerequisites.h"
PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusionTraversal.h:4:#include "OgrePagingLandscapePrerequisites.h"
PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusionVFTraversal.h:4:#include "OgrePagingLandscapePrerequisites.h"
PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusionVisibilityData.h:4:#include "OgrePagingLandscapePrerequisites.h"
PlugIns/PagingLandScape2/include/OgrePagingLandScapeOctreeNode.h:38:#include "OgrePagingLandscapePrerequisites.h"
PlugIns/PagingLandScape2/include/OgrePagingLandscapeOcclusionElement.h:4:#include "OgrePagingLandscapePrerequisites.h"

its always the 's' in landscape that needs to be changed

tuan kuranes

05-10-2005 14:40:17

Thanks.
ok.
but changes will only be availaible tomorrow (dev->anon repository)

tuan kuranes

05-10-2005 14:41:01

and the path I took is to rename OgrePagingLandscapeOcclusionElement.h to OgrePagingLandScapeOcclusionElement.h to be consistent.

waldi

06-10-2005 11:33:52

3 changes still needed...

Index: OgrePagingLandScapeOcclusion.h
===================================================================
RCS file: /cvsroot/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusion.h,v
retrieving revision 1.3
diff -c -r1.3 OgrePagingLandScapeOcclusion.h
*** OgrePagingLandScapeOcclusion.h 5 Oct 2005 13:35:57 -0000 1.3
--- OgrePagingLandScapeOcclusion.h 6 Oct 2005 10:20:08 -0000
***************
*** 7,13 ****
#include <stack>
#include <list>

! #include "OgrePagingLandscapeOcclusionQuerySet.h"
#include "OgrePagingLandScapeOcclusionElement.h"

#include "OgrePagingLandScapeOctree.h"
--- 7,13 ----
#include <stack>
#include <list>

! #include "OgrePagingLandScapeOcclusionQuerySet.h"
#include "OgrePagingLandScapeOcclusionElement.h"

#include "OgrePagingLandScapeOctree.h"
Index: OgrePagingLandScapeOctree.h
===================================================================
RCS file: /cvsroot/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/include/OgrePagingLandScapeOctree.h,v
retrieving revision 1.3
diff -c -r1.3 OgrePagingLandScapeOctree.h
*** OgrePagingLandScapeOctree.h 5 Oct 2005 11:05:41 -0000 1.3
--- OgrePagingLandScapeOctree.h 6 Oct 2005 10:20:09 -0000
***************
*** 38,44 ****
#include "OgreAxisAlignedBox.h"
#include "OgrePagingLandScapeOcclusionElement.h"

! #include "OgrePagingLandscapeOcclusionTraversal.h"

#include <list>

--- 38,44 ----
#include "OgreAxisAlignedBox.h"
#include "OgrePagingLandScapeOcclusionElement.h"

! #include "OgrePagingLandScapeOcclusionTraversal.h"

#include <list>

Index: OgrePagingLandScapeOctreeNode.h
===================================================================
RCS file: /cvsroot/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/include/OgrePagingLandScapeOctreeNode.h,v
retrieving revision 1.3
diff -c -r1.3 OgrePagingLandScapeOctreeNode.h
*** OgrePagingLandScapeOctreeNode.h 5 Oct 2005 11:05:41 -0000 1.3
--- OgrePagingLandScapeOctreeNode.h 6 Oct 2005 10:20:09 -0000
***************
*** 35,41 ****
#define __PagingLandScapeOctreeNODE_H

#include "OgreSceneNode.h"
! #include "OgrePagingLandscapePrerequisites.h"

#include "OgrePagingLandScapeOctreeSceneManager.h"
#include "OgrePagingLandScapeOctree.h"
--- 35,41 ----
#define __PagingLandScapeOctreeNODE_H

#include "OgreSceneNode.h"
! #include "OgrePagingLandScapePrerequisites.h"

#include "OgrePagingLandScapeOctreeSceneManager.h"
#include "OgrePagingLandScapeOctree.h"


...and then i get:

OgrePagingLandScapeOgreOctree.cpp:62: Error: error: no `void
Ogre::PagingLandScapeOctree::_getChildIndexes(const Ogre::AxisAlignedBox&,
int&, int&, int&) const' member function declared in class `
Ogre::PagingLandScapeOctree'

tuan kuranes

06-10-2005 11:44:24

thanks for reports.

there's no more _getChildIndexes in cvs source tree .

that reminds me that I didn't update makefile.am for linux...

waldi

06-10-2005 14:11:34

i rewrote the Makefile.am using paginglandscape/PlugIns/PagingLandScape2/scripts/Plugin_PagingLandScapeSceneManager2.vcproj
INCLUDES = $(STLPORT_CFLAGS) -I$(top_srcdir)/PlugIns/PagingLandScape2/include $(OGRE_CFLAGS)

plugindir = $(OGRE_PLUGINDIR)
plugin_LTLIBRARIES=Plugin_PagingLandScape2.la

Plugin_PagingLandScape2_la_SOURCES = filetutils.cpp \
OgrePagingLandScapeCamera.cpp \
OgrePagingLandScapeHorizon.cpp \
OgrePagingLandScapeOptions.cpp \
OgrePagingLandScapeRaySceneQuery.cpp \
OgrePagingLandScapeSceneManager.cpp \
OgrePagingLandScapeSceneManagerDll.cpp \
OgrePagingLandScapeData2D.cpp \
OgrePagingLandScapeData2DManager.cpp \
DRGNURBSSurface.cpp \
OgrePagingLandScapeData2D_HeightField.cpp \
OgrePagingLandScapeData2D_HeightFieldBlendNeighbor.cpp \
OgrePagingLandScapeData2D_HeightFieldN.cpp \
OgrePagingLandScapeData2D_HeightFieldNTC.cpp \
OgrePagingLandScapeData2D_HeightFieldRaw.cpp \
OgrePagingLandScapeData2D_HeightFieldRawTC.cpp \
OgrePagingLandScapeData2D_HeightFieldTC.cpp \
OgrePagingLandScapeData2D_Spline.cpp \
OgrePagingLandScapePage.cpp \
OgrePagingLandScapePageManager.cpp \
OgrePagingLandScapePageRenderable.cpp \
OgrePagingLandScapeIndexBuffer.cpp \
OgrePagingLandScapeRenderable.cpp \
OgrePagingLandScapeRenderableManager.cpp \
OgrePagingLandScapeTexture.cpp \
OgrePagingLandScapeTexture_BaseTexture.cpp \
OgrePagingLandScapeTexture_BaseTexture2.cpp \
OgrePagingLandScapeTexture_Image.cpp \
OgrePagingLandScapeTexture_InstantBaseTexture.cpp \
OgrePagingLandScapeTexture_InstantBaseTextureEdit.cpp \
OgrePagingLandScapeTexture_InstantBaseTextureShadowed.cpp \
OgrePagingLandScapeTextureManager.cpp \
OgrePagingLandScapeTexture_Splatting.cpp \
OgrePagingLandScapeTexture_Splatting2.cpp \
OgrePagingLandScapeTexture_Splatting2Edit.cpp \
OgrePagingLandScapeTexture_Splatting3.cpp \
OgrePagingLandScapeTexture_Splatting4.cpp \
OgrePagingLandScapeTexture_Splatting5.cpp \
OgrePagingLandScapeTexture_Splatting6.cpp \
OgrePagingLandScapeTexture_Splatting7.cpp \
OgrePagingLandScapeTexture_Splatting7Edit.cpp \
OgrePagingLandScapeTexture_SplattingShader.cpp \
OgrePagingLandScapeTile.cpp \
OgrePagingLandScapeTileManager.cpp \
OgrePagingLandScapeOctree.cpp \
OgrePagingLandScapeOctreeCamera.cpp \
OgrePagingLandScapeOctreeNode.cpp \
OgrePagingLandScapeOctreeSceneManager.cpp \
OgrePagingLandScapeOctreeAxisAlignedBoxSceneQuery.cpp \
OgrePagingLandScapeOctreeIntersectionSceneQuery.cpp \
OgrePagingLandScapeOctreePlaneBoundedVolumeListSceneQuery.cpp \
OgrePagingLandScapeOctreeRaySceneQuery.cpp \
OgrePagingLandScapeOctreeSphereSceneQuery.cpp \
OgrePagingLandScapeOcclusion.cpp \
OgrePagingLandScapeOcclusionElement.cpp \
OgrePagingLandScapeOcclusionCameraTraversal.cpp \
OgrePagingLandScapeOcclusionCHCTraversal.cpp \
OgrePagingLandScapeOcclusionDebugTraversal.cpp \
OgrePagingLandScapeOcclusionSWTraversal.cpp \
OgrePagingLandScapeOcclusionTraversal.cpp \
OgrePagingLandScapeOcclusionVFTraversal.cpp \
OgreDebugRectangle2D.cpp \
OgreOcclusionBoundingBox.cpp \
OgrePagingLandScapeOcclusionQuerySet.cpp \
OgrePagingLandScapeListenerManager.cpp

Plugin_PagingLandScape2_la_LIBADD = -lOgreMain
Plugin_PagingLandScape2_la_LDFLAGS = -module $(SHARED_FLAGS)

but now i get:
OgrePagingLandScapeOctreeSceneManager.cpp: In member function `virtual void
Ogre::PagingLandScapeOctreeSceneManager::_findVisibleObjects(Ogre::Camera*,
bool)':
OgrePagingLandScapeOctreeSceneManager.cpp:964: error: no matching function for
call to `Ogre::PagingLandScapeOctree::traversal(Ogre::SWTraversal)'
../../../PlugIns/PagingLandScape2/include/OgrePagingLandScapeOctree.h:151: error: candidates
are: virtual void Ogre::PagingLandScapeOctree::traversal(Ogre::Traversal&)
../../../PlugIns/PagingLandScape2/include/OgrePagingLandScapeOctree.h:155: error:
virtual void Ogre::PagingLandScapeOctree::traversal(const
Ogre::TraversalConst&)
../../../PlugIns/PagingLandScape2/include/OgrePagingLandScapeOctree.h:159: error:
virtual void Ogre::PagingLandScapeOctree::traversal(const
Ogre::ConstTraversalConst&) const
OgrePagingLandScapeOctreeSceneManager.cpp:975:40: warning: extra tokens at end of #endif directive
OgrePagingLandScapeOctreeSceneManager.cpp:996: error: no matching function for
call to `Ogre::PagingLandScapeOctree::traversal(
Ogre::ViewFrustumCullingTraversalDirect)'
../../../PlugIns/PagingLandScape2/include/OgrePagingLandScapeOctree.h:151: error: candidates
are: virtual void Ogre::PagingLandScapeOctree::traversal(Ogre::Traversal&)
../../../PlugIns/PagingLandScape2/include/OgrePagingLandScapeOctree.h:155: error:
virtual void Ogre::PagingLandScapeOctree::traversal(const
Ogre::TraversalConst&)
../../../PlugIns/PagingLandScape2/include/OgrePagingLandScapeOctree.h:159: error:
virtual void Ogre::PagingLandScapeOctree::traversal(const
Ogre::ConstTraversalConst&) const

tuan kuranes

06-10-2005 15:06:03

thanks.

Strange that gcc cannot find the good one.
Anyway, try casting like that

*(static_cast <Traversal *> (&SWTraversal (mOcclusion))

waldi

06-10-2005 17:03:45

/include
Index: OgrePagingLandScapeOcclusion.h
===================================================================
RCS file: /cvsroot/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusion.h,v
retrieving revision 1.3
diff -c -r1.3 OgrePagingLandScapeOcclusion.h
*** OgrePagingLandScapeOcclusion.h 5 Oct 2005 13:35:57 -0000 1.3
--- OgrePagingLandScapeOcclusion.h 6 Oct 2005 14:51:46 -0000
***************
*** 7,13 ****
#include <stack>
#include <list>

! #include "OgrePagingLandscapeOcclusionQuerySet.h"
#include "OgrePagingLandScapeOcclusionElement.h"

#include "OgrePagingLandScapeOctree.h"
--- 7,13 ----
#include <stack>
#include <list>

! #include "OgrePagingLandScapeOcclusionQuerySet.h"
#include "OgrePagingLandScapeOcclusionElement.h"

#include "OgrePagingLandScapeOctree.h"
Index: OgrePagingLandScapeOcclusionSorter.h
===================================================================
RCS file: /cvsroot/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusionSorter.h,v
retrieving revision 1.2
diff -c -r1.2 OgrePagingLandScapeOcclusionSorter.h
*** OgrePagingLandScapeOcclusionSorter.h 5 Oct 2005 13:35:57 -0000 1.2
--- OgrePagingLandScapeOcclusionSorter.h 6 Oct 2005 14:51:46 -0000
***************
*** 13,18 ****
--- 13,22 ----

public:
FrontToBackNodeSorterOperator(const Vector3& position) : pos(position) {};
+ inline bool operator()(OcclusionElement *&a, OcclusionElement *&b) const
+ {
+ return vectorToBoxDistance (*a, pos) > vectorToBoxDistance (*b, pos);
+ }
inline bool operator()(const OcclusionElement*& a, const OcclusionElement*& b) const
{
// could check if both distance == 0 then order visible first ?
***************
*** 49,52 ****
};
}//namespace Ogre

! #endif //_PagingLandScapeOcclusionSorterH
\ No newline at end of file
--- 53,56 ----
};
}//namespace Ogre

! #endif //_PagingLandScapeOcclusionSorterH
Index: OgrePagingLandScapeOctree.h
===================================================================
RCS file: /cvsroot/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/include/OgrePagingLandScapeOctree.h,v
retrieving revision 1.3
diff -c -r1.3 OgrePagingLandScapeOctree.h
*** OgrePagingLandScapeOctree.h 5 Oct 2005 11:05:41 -0000 1.3
--- OgrePagingLandScapeOctree.h 6 Oct 2005 14:51:47 -0000
***************
*** 38,44 ****
#include "OgreAxisAlignedBox.h"
#include "OgrePagingLandScapeOcclusionElement.h"

! #include "OgrePagingLandscapeOcclusionTraversal.h"

#include <list>

--- 38,44 ----
#include "OgreAxisAlignedBox.h"
#include "OgrePagingLandScapeOcclusionElement.h"

! #include "OgrePagingLandScapeOcclusionTraversal.h"

#include <list>

Index: OgrePagingLandScapeOctreeNode.h
===================================================================
RCS file: /cvsroot/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/include/OgrePagingLandScapeOctreeNode.h,v
retrieving revision 1.3
diff -c -r1.3 OgrePagingLandScapeOctreeNode.h
*** OgrePagingLandScapeOctreeNode.h 5 Oct 2005 11:05:41 -0000 1.3
--- OgrePagingLandScapeOctreeNode.h 6 Oct 2005 14:51:47 -0000
***************
*** 35,41 ****
#define __PagingLandScapeOctreeNODE_H

#include "OgreSceneNode.h"
! #include "OgrePagingLandscapePrerequisites.h"

#include "OgrePagingLandScapeOctreeSceneManager.h"
#include "OgrePagingLandScapeOctree.h"
--- 35,41 ----
#define __PagingLandScapeOctreeNODE_H

#include "OgreSceneNode.h"
! #include "OgrePagingLandScapePrerequisites.h"

#include "OgrePagingLandScapeOctreeSceneManager.h"
#include "OgrePagingLandScapeOctree.h"


/src
Index: OgrePagingLandScapeOcclusion.cpp
===================================================================
RCS file: /cvsroot/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeOcclusion.cpp,v
retrieving revision 1.4
diff -c -r1.4 OgrePagingLandScapeOcclusion.cpp
*** OgrePagingLandScapeOcclusion.cpp 5 Oct 2005 13:36:53 -0000 1.4
--- OgrePagingLandScapeOcclusion.cpp 6 Oct 2005 15:52:37 -0000
***************
*** 18,24 ****
#include "OgrePagingLandScapeOcclusionVFTraversal.h"
#include "OgrePagingLandScapeOcclusionDebugTraversal.h"

! #include "OgrePagingLandscapeOcclusionQuerySet.h"

#include "OgreOcclusionBoundingBox.h"

--- 18,24 ----
#include "OgrePagingLandScapeOcclusionVFTraversal.h"
#include "OgrePagingLandScapeOcclusionDebugTraversal.h"

! #include "OgrePagingLandScapeOcclusionQuerySet.h"

#include "OgreOcclusionBoundingBox.h"

***************
*** 478,481 ****
}
}
}
! }
\ No newline at end of file
--- 478,481 ----
}
}
}
! }
Index: OgrePagingLandScapeOcclusionQuerySet.cpp
===================================================================
RCS file: /cvsroot/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeOcclusionQuerySet.cpp,v
retrieving revision 1.1
diff -c -r1.1 OgrePagingLandScapeOcclusionQuerySet.cpp
*** OgrePagingLandScapeOcclusionQuerySet.cpp 24 Sep 2005 08:29:57 -0000 1.1
--- OgrePagingLandScapeOcclusionQuerySet.cpp 6 Oct 2005 15:52:37 -0000
***************
*** 23,29 ****
-----------------------------------------------------------------------------
*/
#include "Ogre.h"
! #include "OgrePagingLandscapeOcclusionQuerySet.h"
#include "OgreHardwareOcclusionQuery.h"


--- 23,29 ----
-----------------------------------------------------------------------------
*/
#include "Ogre.h"
! #include "OgrePagingLandScapeOcclusionQuerySet.h"
#include "OgreHardwareOcclusionQuery.h"


***************
*** 46,52 ****
// Free pool items
for (QueryPool::iterator i = mQueryPool.begin(); i != mQueryPool.end(); ++i)
{
! renderSys->destroyHardwareOcclusionQuery(*i);
}

}
--- 46,52 ----
// Free pool items
for (QueryPool::iterator i = mQueryPool.begin(); i != mQueryPool.end(); ++i)
{
! delete(*i);
}

}
Index: OgrePagingLandScapeOctreeSceneManager.cpp
===================================================================
RCS file: /cvsroot/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeOctreeSceneManager.cpp,v
retrieving revision 1.5
diff -c -r1.5 OgrePagingLandScapeOctreeSceneManager.cpp
*** OgrePagingLandScapeOctreeSceneManager.cpp 5 Oct 2005 13:36:53 -0000 1.5
--- OgrePagingLandScapeOctreeSceneManager.cpp 6 Oct 2005 15:52:41 -0000
***************
*** 961,967 ****
{
enableHardwareOcclusionTests();
mOcclusion.initQueryPool ();
! mPagingLandScapeOctree->traversal (SWTraversal (mOcclusion));
disableHardwareOcclusionTests();

#ifdef _VISIBILITYDEBUG
--- 961,968 ----
{
enableHardwareOcclusionTests();
mOcclusion.initQueryPool ();
! SWTraversal tmp(mOcclusion);
! mPagingLandScapeOctree->traversal(tmp);
disableHardwareOcclusionTests();

#ifdef _VISIBILITYDEBUG
***************
*** 993,999 ****
// break;
case VIEW_FRUSTUM_DIRECT:
{
! mPagingLandScapeOctree->traversal (ViewFrustumCullingTraversalDirect (mOcclusion));

#ifdef _VISIBILITYDEBUG
cam->getViewport ()->getTarget ()->setDebugText(
--- 994,1001 ----
// break;
case VIEW_FRUSTUM_DIRECT:
{
! ViewFrustumCullingTraversalDirect tmp(mOcclusion);
! mPagingLandScapeOctree->traversal(tmp);

#ifdef _VISIBILITYDEBUG
cam->getViewport ()->getTarget ()->setDebugText(



MapSplitter seems to work now, but can't compile the Samples directory :(

tuan kuranes

07-10-2005 10:37:17

check today, I aslo changed the sample makefile.

waldi

07-10-2005 13:05:46

still needed:
Index: OgrePagingLandScapeOcclusionSorter.h
===================================================================
RCS file: /cvsroot/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusionSorter.h,v
retrieving revision 1.2
diff -c -r1.2 OgrePagingLandScapeOcclusionSorter.h
*** OgrePagingLandScapeOcclusionSorter.h 5 Oct 2005 13:35:57 -0000 1.2
--- OgrePagingLandScapeOcclusionSorter.h 7 Oct 2005 11:48:29 -0000
***************
*** 13,18 ****
--- 13,22 ----

public:
FrontToBackNodeSorterOperator(const Vector3& position) : pos(position) {};
+ inline bool operator()(OcclusionElement *&a, OcclusionElement *&b) const
+ {
+ return vectorToBoxDistance (*a, pos) > vectorToBoxDistance (*b, pos);
+ }
inline bool operator()(const OcclusionElement*& a, const OcclusionElement*& b) const
{
// could check if both distance == 0 then order visible first ?
***************
*** 49,52 ****
};
}//namespace Ogre

! #endif //_PagingLandScapeOcclusionSorterH
\ No newline at end of file
--- 53,56 ----
};
}//namespace Ogre

! #endif //_PagingLandScapeOcclusionSorterH


Index: Makefile.am
===================================================================
RCS file: /cvsroot/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/Makefile.am,v
retrieving revision 1.18
diff -c -r1.18 Makefile.am
*** Makefile.am 6 Oct 2005 11:39:18 -0000 1.18
--- Makefile.am 7 Oct 2005 11:50:55 -0000
***************
*** 3,73 ****
plugindir = $(OGRE_PLUGINDIR)
plugin_LTLIBRARIES=Plugin_PagingLandScape2.la

! Plugin_PagingLandScape2_la_SOURCES = \
! DRGNURBSSurface.cpp \
! filetutils.cpp \
! OgrePagingLandScapeOctreeAxisAlignedBoxSceneQuery.cpp \
! OgrePagingLandScapeOctreeCamera.cpp \
! OgrePagingLandScapeOgreOctree.cpp \
! OgrePagingLandScapeOctreeIntersectionSceneQuery.cpp \
! OgrePagingLandScapeOctreeNode.cpp \
! OgrePagingLandScapeOctreePlaneBoundedVolumeListSceneQuery.cpp \
! OgrePagingLandScapeOctreeRaySceneQuery.cpp \
! OgrePagingLandScapeOctreeSceneManager.cpp \
! OgrePagingLandScapeOctreeSphereSceneQuery.cpp \
! OgrePagingLandScapeCamera.cpp \
! OgrePagingLandScapeData2D.cpp \
! OgrePagingLandScapeData2D_HeightField.cpp \
! OgrePagingLandScapeData2D_HeightFieldN.cpp \
! OgrePagingLandScapeData2D_HeightFieldNTC.cpp \
! OgrePagingLandScapeData2D_HeightFieldRaw.cpp \
! OgrePagingLandScapeData2D_HeightFieldRawTC.cpp \
! OgrePagingLandScapeData2D_HeightFieldTC.cpp \
! OgrePagingLandScapeData2D_HeightFieldBlendNeighbor.cpp \
! OgrePagingLandScapeData2DManager.cpp \
! OgrePagingLandScapeData2D_Spline.cpp \
! OgrePagingLandScapeHorizon.cpp \
! OgrePagingLandScapeIndexBuffer.cpp \
! OgrePagingLandScapeListenerManager.cpp \
! OgrePagingLandScapeOptions.cpp \
! OgrePagingLandScapePage.cpp \
! OgrePagingLandScapePageManager.cpp \
! OgrePagingLandScapePageRenderable.cpp \
! OgrePagingLandScapeRaySceneQuery.cpp \
! OgrePagingLandScapeRenderable.cpp \
! OgrePagingLandScapeRenderableManager.cpp \
! OgrePagingLandScapeSceneManager.cpp \
! OgrePagingLandScapeSceneManagerDll.cpp \
! OgrePagingLandScapeTexture_BaseTexture2.cpp \
! OgrePagingLandScapeTexture_BaseTexture.cpp \
! OgrePagingLandScapeTexture.cpp \
! OgrePagingLandScapeTexture_Image.cpp \
! OgrePagingLandScapeTexture_InstantBaseTexture.cpp \
! OgrePagingLandScapeTexture_InstantBaseTextureShadowed.cpp \
! OgrePagingLandScapeTexture_InstantBaseTextureEdit.cpp \
! OgrePagingLandScapeTextureManager.cpp \
! OgrePagingLandScapeTexture_Splatting2.cpp \
! OgrePagingLandScapeTexture_Splatting2Edit.cpp \
! OgrePagingLandScapeTexture_Splatting3.cpp \
! OgrePagingLandScapeTexture_Splatting4.cpp \
! OgrePagingLandScapeTexture_Splatting5.cpp \
! OgrePagingLandScapeTexture_Splatting6.cpp \
! OgrePagingLandScapeTexture_Splatting7.cpp \
! OgrePagingLandScapeTexture_Splatting7Edit.cpp \
! OgrePagingLandScapeTexture_SplattingShader.cpp \
! OgrePagingLandScapeTexture_Splatting.cpp \
! OgrePagingLandScapeTile.cpp \
! OgrePagingLandScapeTileManager.cpp \
! OgrePagingLandScapeOcclusion.cpp \
! OgrePagingLandScapeOcclusionElement.cpp \
! OgrePagingLandScapeOcclusionCameraTraversal.cpp \
! OgrePagingLandScapeOcclusionCHCTraversal.cpp \
! OgrePagingLandScapeOcclusionSWTraversal.cpp \
! OgrePagingLandScapeOcclusionDebugTraversal.cpp \
! OgrePagingLandScapeOcclusionVFTraversal.cpp \
! OgreDebugRectangle2D.cpp \
! OgreOcclusionBoundingBox.cpp \
! OgrePagingLandScapeOcclusionQuerySet.cpp

Plugin_PagingLandScape2_la_LIBADD = -lOgreMain
! Plugin_PagingLandScape2_la_LDFLAGS = -module $(SHARED_FLAGS)
--- 3,74 ----
plugindir = $(OGRE_PLUGINDIR)
plugin_LTLIBRARIES=Plugin_PagingLandScape2.la

! Plugin_PagingLandScape2_la_SOURCES = filetutils.cpp \
! OgrePagingLandScapeCamera.cpp \
! OgrePagingLandScapeHorizon.cpp \
! OgrePagingLandScapeOptions.cpp \
! OgrePagingLandScapeRaySceneQuery.cpp \
! OgrePagingLandScapeSceneManager.cpp \
! OgrePagingLandScapeSceneManagerDll.cpp \
! OgrePagingLandScapeData2D.cpp \
! OgrePagingLandScapeData2DManager.cpp \
! DRGNURBSSurface.cpp \
! OgrePagingLandScapeData2D_HeightField.cpp \
! OgrePagingLandScapeData2D_HeightFieldBlendNeighbor.cpp \
! OgrePagingLandScapeData2D_HeightFieldN.cpp \
! OgrePagingLandScapeData2D_HeightFieldNTC.cpp \
! OgrePagingLandScapeData2D_HeightFieldRaw.cpp \
! OgrePagingLandScapeData2D_HeightFieldRawTC.cpp \
! OgrePagingLandScapeData2D_HeightFieldTC.cpp \
! OgrePagingLandScapeData2D_Spline.cpp \
! OgrePagingLandScapePage.cpp \
! OgrePagingLandScapePageManager.cpp \
! OgrePagingLandScapePageRenderable.cpp \
! OgrePagingLandScapeIndexBuffer.cpp \
! OgrePagingLandScapeRenderable.cpp \
! OgrePagingLandScapeRenderableManager.cpp \
! OgrePagingLandScapeTexture.cpp \
! OgrePagingLandScapeTexture_BaseTexture.cpp \
! OgrePagingLandScapeTexture_BaseTexture2.cpp \
! OgrePagingLandScapeTexture_Image.cpp \
! OgrePagingLandScapeTexture_InstantBaseTexture.cpp \
! OgrePagingLandScapeTexture_InstantBaseTextureEdit.cpp \
! OgrePagingLandScapeTexture_InstantBaseTextureShadowed.cpp \
! OgrePagingLandScapeTextureManager.cpp \
! OgrePagingLandScapeTexture_Splatting.cpp \
! OgrePagingLandScapeTexture_Splatting2.cpp \
! OgrePagingLandScapeTexture_Splatting2Edit.cpp \
! OgrePagingLandScapeTexture_Splatting3.cpp \
! OgrePagingLandScapeTexture_Splatting4.cpp \
! OgrePagingLandScapeTexture_Splatting5.cpp \
! OgrePagingLandScapeTexture_Splatting6.cpp \
! OgrePagingLandScapeTexture_Splatting7.cpp \
! OgrePagingLandScapeTexture_Splatting7Edit.cpp \
! OgrePagingLandScapeTexture_SplattingShader.cpp \
! OgrePagingLandScapeTile.cpp \
! OgrePagingLandScapeTileManager.cpp \
! OgrePagingLandScapeOctree.cpp \
! OgrePagingLandScapeOctreeCamera.cpp \
! OgrePagingLandScapeOctreeNode.cpp \
! OgrePagingLandScapeOctreeSceneManager.cpp \
! OgrePagingLandScapeOctreeAxisAlignedBoxSceneQuery.cpp \
! OgrePagingLandScapeOctreeIntersectionSceneQuery.cpp \
! OgrePagingLandScapeOctreePlaneBoundedVolumeListSceneQuery.cpp \
! OgrePagingLandScapeOctreeRaySceneQuery.cpp \
! OgrePagingLandScapeOctreeSphereSceneQuery.cpp \
! OgrePagingLandScapeOcclusion.cpp \
! OgrePagingLandScapeOcclusionElement.cpp \
! OgrePagingLandScapeOcclusionCameraTraversal.cpp \
! OgrePagingLandScapeOcclusionCHCTraversal.cpp \
! OgrePagingLandScapeOcclusionDebugTraversal.cpp \
! OgrePagingLandScapeOcclusionSWTraversal.cpp \
! OgrePagingLandScapeOcclusionTraversal.cpp \
! OgrePagingLandScapeOcclusionVFTraversal.cpp \
! OgreDebugRectangle2D.cpp \
! OgreOcclusionBoundingBox.cpp \
! OgrePagingLandScapeOcclusionQuerySet.cpp \
! OgrePagingLandScapeListenerManager.cpp

Plugin_PagingLandScape2_la_LIBADD = -lOgreMain
! Plugin_PagingLandScape2_la_LDFLAGS = -module $(SHARED_FLAGS)
!
Index: OgrePagingLandScapeOcclusionQuerySet.cpp
===================================================================
RCS file: /cvsroot/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeOcclusionQuerySet.cpp,v
retrieving revision 1.2
diff -c -r1.2 OgrePagingLandScapeOcclusionQuerySet.cpp
*** OgrePagingLandScapeOcclusionQuerySet.cpp 6 Oct 2005 10:42:55 -0000 1.2
--- OgrePagingLandScapeOcclusionQuerySet.cpp 7 Oct 2005 11:50:55 -0000
***************
*** 46,52 ****
// Free pool items
for (QueryPool::iterator i = mQueryPool.begin(); i != mQueryPool.end(); ++i)
{
! renderSys->destroyHardwareOcclusionQuery(*i);
}

}
--- 46,52 ----
// Free pool items
for (QueryPool::iterator i = mQueryPool.begin(); i != mQueryPool.end(); ++i)
{
! delete(*i);
}

}
Index: OgrePagingLandScapeOctreeSceneManager.cpp
===================================================================
RCS file: /cvsroot/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/OgrePagingLandScapeOctreeSceneManager.cpp,v
retrieving revision 1.8
diff -c -r1.8 OgrePagingLandScapeOctreeSceneManager.cpp
*** OgrePagingLandScapeOctreeSceneManager.cpp 6 Oct 2005 13:52:03 -0000 1.8
--- OgrePagingLandScapeOctreeSceneManager.cpp 7 Oct 2005 11:50:59 -0000
***************
*** 999,1005 ****
// break;
case VIEW_FRUSTUM_DIRECT:
{
! mPagingLandScapeOctree->traversal (ViewFrustumCullingTraversalDirect (mOcclusion));

#ifdef _VISIBILITYDEBUG
cam->getViewport ()->getTarget ()->setDebugText(
--- 999,1006 ----
// break;
case VIEW_FRUSTUM_DIRECT:
{
! ViewFrustumCullingTraversalDirect tmp(mOcclusion);
! mPagingLandScapeOctree->traversal (tmp);

#ifdef _VISIBILITYDEBUG
cam->getViewport ()->getTarget ()->setDebugText(


samples still don't work:
make[4]: Entering directory `/usr/local/src/ogre/ogreaddons/paginglandscape/Samples/PagingLandScape2/include'
make[4]: *** No rule to make target `TerrainListener.h', needed by `all-am'. Stop.
make[4]: Leaving directory `/usr/local/src/ogre/ogreaddons/paginglandscape/Samples/PagingLandScape2/include'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/ogre/ogreaddons/paginglandscape/Samples/PagingLandScape2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/ogre/ogreaddons/paginglandscape/Samples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/ogre/ogreaddons/paginglandscape'
make: *** [all] Error 2

tuan kuranes

07-10-2005 13:47:18

Argggh. I'm so sorry...

so TerrainListener.h is Terrainlistener.h makefile fixed in cvs.
I'm applying your patches to other makefiles.

waldi

07-10-2005 14:02:23

Terrainlistener.h
typedef std::map<String, StaticGeometry* > StaticGeometryList;
StaticGeometryList mStaticGeometryList;

typedef std::map<String, Entity* > StaticEntityList;
StaticEntityList mStaticList;
public:

//---------------------------------------------------------------------
CustomPagingLandscapeListener (RenderWindow* win, SceneManager *scn) :
mWindow (win),
mSceneMgr (scn),
grassEnt(0),
treeEnt(0)
{
}
//---------------------------------------------------------------------
virtual ~CustomPagingLandscapeListener ()
{
StaticGeometryList::iterator i = mStaticGeometryList.begin ();
while (i != mStaticGeometryList.end())
{
mSceneMgr->removeStaticGeometry(i->second);
--------> i = mStaticGeometryList.erase(i);
//++i;
}
mStaticGeometryList.clear();
}


um...my STL doesn't return anything on map::erase(iterator)

/**
* @brief Erases an element from a %map.
* @param position An iterator pointing to the element to be erased.
*
* This function erases an element, pointed to by the given iterator, from
* a %map. Note that this function only erases the element, and that if
* the element is itself a pointer, the pointed-to memory is not touched
* in any way. Managing the pointer is the user's responsibilty.
*/
void
erase(iterator __position) { _M_t.erase(__position); }

tuan kuranes

07-10-2005 14:09:38

my mistake, it's win32 stl only, it should be

mStaticGeometryList.erase(i++);

waldi

07-10-2005 15:04:07

? Makefile
? diff
Index: Makefile.am
===================================================================
RCS file: /cvsroot/ogre/ogreaddons/paginglandscape/Samples/PagingLandScape2/include/Makefile.am,v
retrieving revision 1.2
diff -c -r1.2 Makefile.am
*** Makefile.am 6 Oct 2005 11:39:30 -0000 1.2
--- Makefile.am 7 Oct 2005 13:48:29 -0000
***************
*** 2,5 ****
PagingLandScape.h \
Overlay.h \
FrameListener.h \
! TerrainListener.h
--- 2,5 ----
PagingLandScape.h \
Overlay.h \
FrameListener.h \
! Terrainlistener.h
Index: Terrainlistener.h
===================================================================
RCS file: /cvsroot/ogre/ogreaddons/paginglandscape/Samples/PagingLandScape2/include/Terrainlistener.h,v
retrieving revision 1.2
diff -c -r1.2 Terrainlistener.h
*** Terrainlistener.h 6 Oct 2005 13:51:36 -0000 1.2
--- Terrainlistener.h 7 Oct 2005 13:48:30 -0000
***************
*** 1,4 ****
!

#define GRASS_HEIGHT 300
#define GRASS_WIDTH 250
--- 1,4 ----
! #include <OgrePrerequisites.h>

#define GRASS_HEIGHT 300
#define GRASS_WIDTH 250
***************
*** 40,47 ****
while (i != mStaticGeometryList.end())
{
mSceneMgr->removeStaticGeometry(i->second);
! i = mStaticGeometryList.erase(i);
! //++i;
}
mStaticGeometryList.clear();
}
--- 40,47 ----
while (i != mStaticGeometryList.end())
{
mSceneMgr->removeStaticGeometry(i->second);
! // i = mStaticGeometryList.erase(i);
! ++i;
}
mStaticGeometryList.clear();
}
***************
*** 84,95 ****
// 375, 750, 1500
#ifndef _DEBUG
//const Real boxsize = 15000;
! //const uint interval = 1000;
const Real boxsize = 15000;
! const uint interval = 3000;
#else
const Real boxsize = 45000;
! const uint interval = 6000;
#endif

StaticGeometry* s;
--- 84,95 ----
// 375, 750, 1500
#ifndef _DEBUG
//const Real boxsize = 15000;
! //const Ogre::uint interval = 1000;
const Real boxsize = 15000;
! const Ogre::uint interval = 3000;
#else
const Real boxsize = 45000;
! const Ogre::uint interval = 6000;
#endif

StaticGeometry* s;
***************
*** 209,217 ****
// 2500, 5000, 10000
// 375, 750, 1500
#ifndef _DEBUG
! const uint interval = 1000;
#else
! const uint interval = 3000;
#endif

// Grass
--- 209,217 ----
// 2500, 5000, 10000
// 375, 750, 1500
#ifndef _DEBUG
! const Ogre::uint interval = 1000;
#else
! const Ogre::uint interval = 3000;
#endif

// Grass
***************
*** 430,449 ****
const size_t tilex, const size_t tilez, const AxisAlignedBox &Bbox )
{
// EventString += " | tileShow: "
! // + StringConverter::toString(static_cast <uint> (pagex)) + ", "
! // + StringConverter::toString(static_cast <uint> (pagez)) + " | "
! // + StringConverter::toString(static_cast <uint> (tilex)) + ", "
! // + StringConverter::toString(static_cast <uint> (tilez));
}

virtual void tileHide(const size_t pagex, const size_t pagez,
const size_t tilex, const size_t tilez, const AxisAlignedBox &Bbox )
{
// EventString += " | tileHide: "
! // + StringConverter::toString(static_cast <uint> (pagex)) + ", "
! // + StringConverter::toString(static_cast <uint> (pagez)) + " | "
! // + StringConverter::toString(static_cast <uint> (tilex)) + ", "
! // + StringConverter::toString(static_cast <uint> (tilez));
}

//---------------------------------------------------------------------
--- 430,449 ----
const size_t tilex, const size_t tilez, const AxisAlignedBox &Bbox )
{
// EventString += " | tileShow: "
! // + StringConverter::toString(static_cast <Ogre::uint> (pagex)) + ", "
! // + StringConverter::toString(static_cast <Ogre::uint> (pagez)) + " | "
! // + StringConverter::toString(static_cast <Ogre::uint> (tilex)) + ", "
! // + StringConverter::toString(static_cast <Ogre::uint> (tilez));
}

virtual void tileHide(const size_t pagex, const size_t pagez,
const size_t tilex, const size_t tilez, const AxisAlignedBox &Bbox )
{
// EventString += " | tileHide: "
! // + StringConverter::toString(static_cast <Ogre::uint> (pagex)) + ", "
! // + StringConverter::toString(static_cast <Ogre::uint> (pagez)) + " | "
! // + StringConverter::toString(static_cast <Ogre::uint> (tilex)) + ", "
! // + StringConverter::toString(static_cast <Ogre::uint> (tilez));
}

//---------------------------------------------------------------------
***************
*** 466,469 ****


};
-
--- 466,468 ----

compiles fine now...but i get this when i run PagingLandScape2:
lt-PagingLandScape2: OgreSDLInput.cpp:352: virtual bool Ogre::SDLInput::isKeyDownImmediate(Ogre::KeyCode) const: Assertion `mKeyboardBuffer && "SDLInput::isKeyDownImmediate called before SDLInput::capture has initialized it"' failed.
Aborted (core dumped)

tourix

07-10-2005 17:59:24

Hi everybody.

It's been now some days that I am trying to compile the PLSM2 and I still couldn't make it.

It seems indeed that some files are missing.

Here is the list of VC++ 7.1 errors:

d:\Ogre\ogrenew\PlugIns\PagingLandScape2\include\OgrePagingLandScapeOctree.h(39): fatal error C1083: Impossible d'ouvrir le fichier include : 'OgrePagingLandScapeOcclusionElement.h' : No such file or directory
d:
D:\Ogre\ogrenew\PlugIns\PagingLandScape2\src\OgrePagingLandScapeRenderableManager.cpp(271): error C2259: 'Ogre::PagingLandScapeRenderable' : impossible d'instancier une classe abstraite
D:


Do someone have an idea to help me?

tuan kuranes

07-10-2005 20:19:27

@waldi: thanks a lot agin.
Could you trace or give the call stack from where iskeydownImmediate was called in FrameListener. In Theory, unbuffered mode does call capture before getting key states in framelistener.h

@tourix : recheck it from CVS, AND check ogre HEAD version from CVS. (or you'll have to make several changes to plsm2)

waldi

08-10-2005 11:22:11

#0 0xb6f0483b in raise () from /lib/tls/libc.so.6
#1 0xb6f05fa2 in abort () from /lib/tls/libc.so.6
#2 0xb6efe2df in __assert_fail () from /lib/tls/libc.so.6
#3 0xb6eacb51 in Ogre::SDLInput::isKeyDownImmediate (this=0x82247a0, kc=KC_LCONTROL) at OgreSDLInput.cpp:352
#4 0xb7c58fa2 in Ogre::InputReader::isKeyDown (this=0x82247a0, kc=KC_LCONTROL) at OgreInput.cpp:371
#5 0x08059244 in PagingLandScapeFrameListener::frameStarted (this=0x8224608, evt=@0x0) at OgreVector3.h:106
#6 0xb7d5f58b in Ogre::Root::_fireFrameStarted (this=0x806a358, evt=@0xbfca67b0) at OgreRoot.cpp:555
#7 0xb7d5f79b in Ogre::Root::_fireFrameStarted (this=0x806a358) at OgreRoot.cpp:599
#8 0xb7d5faa7 in Ogre::Root::renderOneFrame (this=0x806a358) at OgreRoot.cpp:682
#9 0xb7d5fa80 in Ogre::Root::startRendering (this=0x806a358) at OgreRoot.cpp:673
#10 0x0804eb3b in main (argc=1, argv=0xbfca6924) at ExampleApplication.h:49


looks like i need to recompile all without optimizations...that evt=@0x0 in #5 must be wrong...but maybe that already helps !?

waldi

08-10-2005 11:48:49

forget my last message, backtrace was broken...

(gdb) bt
#0 0xb6e7883b in raise () from /lib/tls/libc.so.6
#1 0xb6e79fa2 in abort () from /lib/tls/libc.so.6
#2 0xb6e722df in __assert_fail () from /lib/tls/libc.so.6
#3 0xb6e20b51 in Ogre::SDLInput::isKeyDownImmediate (this=0x9eb8728, kc=KC_LCONTROL) at OgreSDLInput.cpp:352
#4 0xb7bccfa2 in Ogre::InputReader::isKeyDown (this=0x9eb8728, kc=KC_LCONTROL) at OgreInput.cpp:371
#5 0x0805b550 in PagingLandScapeFrameListener::frameStarted (this=0x8217940, evt=@0xbfa828c0) at FrameListener.h:828
#6 0xb7cd358b in Ogre::Root::_fireFrameStarted (this=0x8071358, evt=@0xbfa828c0) at OgreRoot.cpp:555
#7 0xb7cd379b in Ogre::Root::_fireFrameStarted (this=0x8071358) at OgreRoot.cpp:599
#8 0xb7cd3aa7 in Ogre::Root::renderOneFrame (this=0x8071358) at OgreRoot.cpp:682
#9 0xb7cd3a80 in Ogre::Root::startRendering (this=0x8071358) at OgreRoot.cpp:673
#10 0x080529fe in ExampleApplication::go (this=0xbfa82970) at ExampleApplication.h:58
#11 0x08052737 in main (argc=1, argv=0xbfa82a34) at PagingLandScape.cpp:53
(gdb) fr 5
#5 0x0805b550 in PagingLandScapeFrameListener::frameStarted (this=0x8217940, evt=@0xbfa828c0) at FrameListener.h:828
828 if (mInputDevice->isKeyDown(KC_LCONTROL))
(gdb) l
813 // Infinite far plane?
814 if (Root::getSingleton().getRenderSystem()->getCapabilities()->hasCapability(RSC_INFINITE_FAR_PLANE))
815 {
816 mCamera->setFarClipDistance (0);
817 }
818 else
819 {
820 mCamera->setFarClipDistance( tmp );
821 }
822 mTimeUntilNextToggle = Keyrate;
823 }
824 }
825 // see if switching is on, and you want to toggle
826
827 // use CTRL key for boost
828 if (mInputDevice->isKeyDown(KC_LCONTROL))
829 {
830 moveScale = moveScale * 30;
831 }
832
833 // use CTRL key for mega boost
834 if (mInputDevice->isKeyDown(KC_SPACE))
835 {
836 moveScale = moveScale * 300;
837 }
838
839
840 vec = Vector3::ZERO;
841
842 if (mInputDevice->isKeyDown(KC_A) ||

tuan kuranes

11-10-2005 13:30:22

I did fix this in dev cvs (should be tomorrow in anon cvs)


// Grab input device state
if (mInputTypeSwitchingOn)


to this


// Grab input device state
if (!mUseBufferedInputKeys || !mUseBufferedInputMouse)


you can try this until anon cvs is updated

waldi

11-10-2005 15:52:02

i get a segfault on exit...
#0 0xb7ebfaf7 in std::_List_base<Ogre::PagingLandScapeOctreeNode*, std::allocator<Ogre::PagingLandScapeOctreeNode*> >::__clear (this=0x83498bc) at list.tcc:76
#1 0xb7ebfaab in ~_List_base (this=0x83498bc) at stl_list.h:314
#2 0xb7ebf46f in ~list (this=0x83498bc) at stl_list.h:515
#3 0xb7ebe70a in ~PagingLandScapeOctree (this=0x8349880) at OgrePagingLandScapeOctree.cpp:86
#4 0xb7ebe668 in ~PagingLandScapeOctree (this=0x8349700) at OgrePagingLandScapeOctree.cpp:78
#5 0xb7ebe668 in ~PagingLandScapeOctree (this=0x8349580) at OgrePagingLandScapeOctree.cpp:78
#6 0xb7ebe668 in ~PagingLandScapeOctree (this=0x8349400) at OgrePagingLandScapeOctree.cpp:78
#7 0xb7ebe668 in ~PagingLandScapeOctree (this=0x8349280) at OgrePagingLandScapeOctree.cpp:78
#8 0xb7ebe668 in ~PagingLandScapeOctree (this=0x8349100) at OgrePagingLandScapeOctree.cpp:78
#9 0xb7ebe668 in ~PagingLandScapeOctree (this=0x8348f80) at OgrePagingLandScapeOctree.cpp:78
#10 0xb7ebe668 in ~PagingLandScapeOctree (this=0x8348e00) at OgrePagingLandScapeOctree.cpp:78
#11 0xb7ebe668 in ~PagingLandScapeOctree (this=0x8348c80) at OgrePagingLandScapeOctree.cpp:78
#12 0xb7ebe668 in ~PagingLandScapeOctree (this=0x8348b18) at OgrePagingLandScapeOctree.cpp:78
#13 0xb7ebe668 in ~PagingLandScapeOctree (this=0x80bdb58) at OgrePagingLandScapeOctree.cpp:78
#14 0xb7ec4325 in Ogre::PagingLandScapeOctreeSceneManager::init (this=0x80b84f0, box=@0x80bcc14, depth=64)
at OgrePagingLandScapeOctreeSceneManager.cpp:330
#15 0xb7ec80bb in Ogre::PagingLandScapeOctreeSceneManager::clearScene (this=0x80b84f0)
at OgrePagingLandScapeOctreeSceneManager.cpp:1708
#16 0xb7e50f17 in Ogre::PagingLandScapeSceneManager::clearScene (this=0x80b84f0) at OgrePagingLandScapeSceneManager.cpp:264
#17 0xb7c99ca5 in Ogre::SceneManagerEnumerator::shutdownAll (this=0x80743c8) at OgreSceneManagerEnumerator.cpp:124
#18 0xb7c6fafa in Ogre::Root::shutdown (this=0x8071358) at OgreRoot.cpp:692
#19 0xb7c6df21 in ~Root (this=0x8071358) at OgreRoot.cpp:250
#20 0x08052b8a in ~ExampleApplication (this=0xbfa1e710) at ExampleApplication.h:49
#21 0x08052aee in ~PagingLandScapeApplication (this=0xbfa1e710) at PagingLandScape.h:65
#22 0x080527f2 in main (argc=1, argv=0xbfa1e7d4) at PagingLandScape.cpp:63


so i did:
void PagingLandScapeOctree::_removeNode(PagingLandScapeOctreeNode * n)
{
NodeList::iterator it;

it = std::find(mNodes.begin(), mNodes.end(), n);
if (it != mNodes.end())
mNodes.erase(it);

if (n->isStaticNode ()) {
it = std::find(mStaticNodes.begin(), mStaticNodes.end(), n);
if (it != mStaticNodes.end())
mStaticNodes.erase(it);
}
else {
it = std::find(mMovingNodes.begin(), mMovingNodes.end(), n);
if (it != mMovingNodes.end())
mMovingNodes.erase(it);
}
n->setOctant(0);

//update total counts.
_unref();
}


which fixes it...not nice to erase the end() iterator on SGI STL ;)
...but maybe there's something else wrong and _removeNode(...) shouldn't be called with an non-existing node.

tuan kuranes

11-10-2005 16:27:58

you're right again.

waldi

17-10-2005 13:27:43

still needed (linux/gcc3.3)
Index: OgrePagingLandScapeOcclusionSorter.h
===================================================================
RCS file: /cvsroot/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusionSorter.h,v
retrieving revision 1.3
diff -B -c -r1.3 OgrePagingLandScapeOcclusionSorter.h
*** OgrePagingLandScapeOcclusionSorter.h 14 Oct 2005 07:36:31 -0000 1.3
--- OgrePagingLandScapeOcclusionSorter.h 17 Oct 2005 12:00:56 -0000
***************
*** 13,18 ****
--- 13,23 ----

public:
FrontToBackNodeSorterOperator(const Vector3& position) : pos(position) {};
+ inline bool operator()(OcclusionElement *&a, OcclusionElement *&b) const
+ {
+ // could check if both distance == 0 then order visible first ?
+ return vectorToBoxDistance (*a, pos) > vectorToBoxDistance (*b, pos);
+ }
inline bool operator()(const OcclusionElement*& a, const OcclusionElement*& b) const
{
// could check if both distance == 0 then order visible first ?

Index: Makefile.am
===================================================================
RCS file: /cvsroot/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/Makefile.am,v
retrieving revision 1.18
diff -B -c -r1.18 Makefile.am
*** Makefile.am 6 Oct 2005 11:39:18 -0000 1.18
--- Makefile.am 17 Oct 2005 12:05:38 -0000
***************
*** 6,14 ****
Plugin_PagingLandScape2_la_SOURCES = \
DRGNURBSSurface.cpp \
filetutils.cpp \
OgrePagingLandScapeOctreeAxisAlignedBoxSceneQuery.cpp \
OgrePagingLandScapeOctreeCamera.cpp \
- OgrePagingLandScapeOgreOctree.cpp \
OgrePagingLandScapeOctreeIntersectionSceneQuery.cpp \
OgrePagingLandScapeOctreeNode.cpp \
OgrePagingLandScapeOctreePlaneBoundedVolumeListSceneQuery.cpp \
--- 6,14 ----
Plugin_PagingLandScape2_la_SOURCES = \
DRGNURBSSurface.cpp \
filetutils.cpp \
+ OgrePagingLandScapeOctree.cpp \
OgrePagingLandScapeOctreeAxisAlignedBoxSceneQuery.cpp \
OgrePagingLandScapeOctreeCamera.cpp \
OgrePagingLandScapeOctreeIntersectionSceneQuery.cpp \
OgrePagingLandScapeOctreeNode.cpp \
OgrePagingLandScapeOctreePlaneBoundedVolumeListSceneQuery.cpp \
***************
*** 64,69 ****
--- 64,70 ----
OgrePagingLandScapeOcclusionCHCTraversal.cpp \
OgrePagingLandScapeOcclusionSWTraversal.cpp \
OgrePagingLandScapeOcclusionDebugTraversal.cpp \
+ OgrePagingLandScapeOcclusionTraversal.cpp \
OgrePagingLandScapeOcclusionVFTraversal.cpp \
OgreDebugRectangle2D.cpp \
OgreOcclusionBoundingBox.cpp \


Index: Terrainlistener.h
===================================================================
RCS file: /cvsroot/ogre/ogreaddons/paginglandscape/Samples/PagingLandScape2/include/Terrainlistener.h,v
retrieving revision 1.4
diff -B -c -r1.4 Terrainlistener.h
*** Terrainlistener.h 14 Oct 2005 07:36:13 -0000 1.4
--- Terrainlistener.h 17 Oct 2005 12:09:37 -0000
***************
*** 40,47 ****
while (i != mStaticGeometryList.end())
{
mSceneMgr->destroyStaticGeometry(i->second);
! i = mStaticGeometryList.erase(i);
! //++i;
}
mStaticGeometryList.clear();
}
--- 40,47 ----
while (i != mStaticGeometryList.end())
{
mSceneMgr->destroyStaticGeometry(i->second);
! // i = mStaticGeometryList.erase(i);
! ++i;
}
mStaticGeometryList.clear();
}
***************
*** 81,92 ****
// 375, 750, 1500
#ifndef _DEBUG
//const Real boxsize = 15000;
! //const uint interval = 1000;
const Real boxsize = 15000;
! const uint interval = 3000;
#else
const Real boxsize = 45000;
! const uint interval = 6000;
#endif


--- 81,92 ----
// 375, 750, 1500
#ifndef _DEBUG
//const Real boxsize = 15000;
! //const Ogre::uint interval = 1000;
const Real boxsize = 15000;
! const Ogre::uint interval = 3000;
#else
const Real boxsize = 45000;
! const Ogre::uint interval = 6000;
#endif


***************
*** 424,443 ****
const size_t tilex, const size_t tilez, const AxisAlignedBox &Bbox )
{
// EventString += " | tileShow: "
! // + StringConverter::toString(static_cast <uint> (pagex)) + ", "
! // + StringConverter::toString(static_cast <uint> (pagez)) + " | "
! // + StringConverter::toString(static_cast <uint> (tilex)) + ", "
! // + StringConverter::toString(static_cast <uint> (tilez));
}

virtual void tileHide(const size_t pagex, const size_t pagez,
const size_t tilex, const size_t tilez, const AxisAlignedBox &Bbox )
{
// EventString += " | tileHide: "
! // + StringConverter::toString(static_cast <uint> (pagex)) + ", "
! // + StringConverter::toString(static_cast <uint> (pagez)) + " | "
! // + StringConverter::toString(static_cast <uint> (tilex)) + ", "
! // + StringConverter::toString(static_cast <uint> (tilez));
}

//---------------------------------------------------------------------
--- 424,443 ----
const size_t tilex, const size_t tilez, const AxisAlignedBox &Bbox )
{
// EventString += " | tileShow: "
! // + StringConverter::toString(static_cast <Ogre::uint> (pagex)) + ", "
! // + StringConverter::toString(static_cast <Ogre::uint> (pagez)) + " | "
! // + StringConverter::toString(static_cast <Ogre::uint> (tilex)) + ", "
! // + StringConverter::toString(static_cast <Ogre::uint> (tilez));
}

virtual void tileHide(const size_t pagex, const size_t pagez,
const size_t tilex, const size_t tilez, const AxisAlignedBox &Bbox )
{
// EventString += " | tileHide: "
! // + StringConverter::toString(static_cast <Ogre::uint> (pagex)) + ", "
! // + StringConverter::toString(static_cast <Ogre::uint> (pagez)) + " | "
! // + StringConverter::toString(static_cast <Ogre::uint> (tilex)) + ", "
! // + StringConverter::toString(static_cast <Ogre::uint> (tilez));
}

//---------------------------------------------------------------------

Tools dir doesn't compile, but i think u knew that already

tuan kuranes

17-10-2005 13:33:49

all those are fixed in CVS this morning.
But maybe not have been transferred to anon cvs by sourceforge.

Tools dir doesn't compile, but i think u knew that already

Must have missed the post about that, can you point me to it ?

waldi

17-10-2005 13:49:08

MapUtil.cpp:395: error: 'class Ogre::PagingLandScapeOptions' has no member
named 'landScape_filename'
MapUtil.cpp:397: error: 'class Ogre::PagingLandScapeOptions' has no member
named 'landScape_extension'
MapUtil.cpp:400: error: 'class Ogre::PagingLandScapeOptions' has no member
named 'landScape_filename'
MapUtil.cpp:401: error: 'class Ogre::PagingLandScapeOptions' has no member
named 'landScape_export_extension'
MapUtil.cpp: In member function `void Ogre::MapUtil::processOneMap()':
MapUtil.cpp:726: warning: converting to `unsigned int' from `float'
MapUtil.cpp:727: warning: converting to `unsigned int' from `float'
MapUtil.cpp:746: warning: converting to `unsigned int' from `float'
make[2]: *** [MapUtil.o] Error 1


...i thought that was work-in-progress
maybe the new 'PagingLandScapeOptions' didn't make it into anon-cvs yet, i'll recheck tomorrow

tuan kuranes

17-10-2005 13:59:13

Nope it's a new bug introduced when harmonizing the var name... but visual studio didn't notice the change and thus didn't recompile it so I couldn't get the error...

Fixed now in cvs.
it was LandScape instead of landScape

waldi

19-10-2005 16:12:36

that Makefile.am still doesn't work: :(
OgrePagingLandScapeOgreOctree.cpp:62: Error: error: no `void
Ogre::PagingLandScapeOctree::_getChildIndexes(const Ogre::AxisAlignedBox&,
int&, int&, int&) const' member function declared in class `
Ogre::PagingLandScapeOctree'
OgrePagingLandScapeOgreOctree.cpp: In destructor `virtual
Ogre::PagingLandScapeOctree::~PagingLandScapeOctree()':
OgrePagingLandScapeOgreOctree.cpp:113: Error: error: `__deleting_dtor' undeclared
(first use this function)
OgrePagingLandScapeOgreOctree.cpp:113: Error: error: (Each undeclared identifier is
reported only once for each function it appears in.)
OgrePagingLandScapeOgreOctree.cpp: In member function `virtual
Ogre::OcclusionBoundingBox*
Ogre::PagingLandScapeOctree::getOcclusionBoundingBox()':
OgrePagingLandScapeOgreOctree.cpp:162: Error: error: cannot convert `
Ogre::WireBoundingBox*' to `Ogre::OcclusionBoundingBox*' in assignment
OgrePagingLandScapeOgreOctree.cpp: At global scope:
OgrePagingLandScapeOgreOctree.cpp:169: Error: error: no `void
Ogre::PagingLandScapeOctree::_addToRenderQueue(Ogre::Camera*,
Ogre::RenderQueue*, bool)' member function declared in class `
Ogre::PagingLandScapeOctree'
OgrePagingLandScapeOgreOctree.cpp:181: Error: error: no `void
Ogre::PagingLandScapeOctree::_addAlreadyNotifiedToRenderQueue(Ogre::Camera*,
Ogre::RenderQueue*, bool)' member function declared in class `
Ogre::PagingLandScapeOctree'
make[4]: *** [OgrePagingLandScapeOgreOctree.lo] Error 1

zeus:/usr/local/src/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src# cvs status Makefile.am
===================================================================
File: Makefile.am Status: Up-to-date

Working revision: 1.18
Repository revision: 1.18 /cvsroot/ogre/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src/Makefile.am,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: (none)

tuan kuranes

19-10-2005 18:01:11

sorry missed that one once again. it's done now, thanks a lot for your patience.

waldi

20-10-2005 12:14:37

OgrePagingLandScapeOcclusionTraversal.cpp is missing in paginglandscape/PlugIns/PagingLandScape2/src/Makefile.am

waldi

20-10-2005 12:36:09

...and the demo looks really strange now :(

tuan kuranes

20-10-2005 13:08:05

thanks for the report. was also missing on win32 project files. fixed in CVS

About screenshots, it's CVS version so it's not as it should be at first...
disable the trees (the big "if (1)" in terrainlistener.h) and the stick to ground (mLandScapeCameraMode (false) in framelistner.h)and you should be able to have a better view of landscapes.

waldi

20-10-2005 13:47:15

just did that, but it looks like some pages don't show up when they shoud...

tuan kuranes

20-10-2005 14:30:03

last last CVS ?
what say Ogre.log ?

waldi

20-10-2005 14:38:27

latest CVS (~3 hours old)
Ogre.log:
14:28:41: Creating resource group General
14:28:41: Registering ResourceManager for type Material
14:28:41: Registering ResourceManager for type Mesh
14:28:41: Registering ResourceManager for type Skeleton
14:28:41: Loading library libOgrePlatform.so
14:28:41: OverlayElementFactory for type Panel registered.
14:28:41: OverlayElementFactory for type BorderPanel registered.
14:28:41: OverlayElementFactory for type TextArea registered.
14:28:41: Registering ResourceManager for type Font
14:28:41: ArchiveFactory for archive type FileSystem registered.
14:28:41: ArchiveFactory for archive type Zip registered.
14:28:41: DevIL version: Developer's Image Library (DevIL) 1.6.7 Jan 24 2005
14:28:41: DevIL image formats: bmp dib cut dcx dds gif hdr ico cur jpg jpe jpeg lif mdl mng jng pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr sgi bw rgb rgba tga vda icb vst tif tiff wal xpm raw
14:28:41: Registering ResourceManager for type HighLevelGpuProgram
14:28:41: MovableObjectFactory for type 'Entity' registered.
14:28:41: MovableObjectFactory for type 'Light' registered.
14:28:41: MovableObjectFactory for type 'BillboardSet' registered.
14:28:41: MovableObjectFactory for type 'ManualObject' registered.
14:28:41: Loading library /usr/local/lib/OGRE/RenderSystem_GL
14:28:41: OpenGL Rendering Subsystem created.
14:28:41: Loading library /usr/local/lib/OGRE/Plugin_ParticleFX
14:28:41: Particle Emitter Type 'Point' registered
14:28:41: Particle Emitter Type 'Box' registered
14:28:41: Particle Emitter Type 'Ellipsoid' registered
14:28:41: Particle Emitter Type 'Cylinder' registered
14:28:41: Particle Emitter Type 'Ring' registered
14:28:41: Particle Emitter Type 'HollowEllipsoid' registered
14:28:41: Particle Affector Type 'LinearForce' registered
14:28:41: Particle Affector Type 'ColourFader' registered
14:28:41: Particle Affector Type 'ColourFader2' registered
14:28:41: Particle Affector Type 'ColourImage' registered
14:28:41: Particle Affector Type 'ColourInterpolator' registered
14:28:41: Particle Affector Type 'Scaler' registered
14:28:41: Particle Affector Type 'Rotator' registered
14:28:41: Loading library /usr/local/lib/OGRE/Plugin_BSPSceneManager
14:28:41: Registering ResourceManager for type BspLevel
14:28:41: Loading library /usr/local/lib/OGRE/Plugin_OctreeSceneManager
14:28:41: TerrainSceneManager: Registered a new PageSource for type Heightmap
14:28:41: Loading library /usr/local/lib/OGRE/Plugin_PagingLandScape2
14:28:41: Loading library /usr/local/lib/OGRE/Plugin_CgProgramManager
14:28:41: *-*-* OGRE Initialising
14:28:41: *-*-* Version 1.1.0 (Dagon)
14:28:41: Creating resource group Bootstrap
14:28:41: Added resource location 'Media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
14:28:41: Added resource location 'Media/materials/programs' of type 'FileSystem' to resource group 'General'
14:28:41: Added resource location 'Media/materials/scripts' of type 'FileSystem' to resource group 'General'
14:28:41: Added resource location 'Media/materials/textures' of type 'FileSystem' to resource group 'General'
14:28:41: Added resource location 'Media/models' of type 'FileSystem' to resource group 'General'
14:28:41: Creating resource group PLSM2
14:28:41: Added resource location 'Media/' of type 'FileSystem' to resource group 'PLSM2'
14:28:41: Added resource location 'Media/Splat' of type 'FileSystem' to resource group 'PLSM2'
14:28:41: Added resource location 'Media/datasrcs' of type 'FileSystem' to resource group 'PLSM2'
14:28:41: Added resource location 'Media/ps_height_1k' of type 'FileSystem' to resource group 'PLSM2'
14:28:41: Added resource location 'Media/gcanyon_height_4k2k' of type 'FileSystem' to resource group 'PLSM2'
14:28:41: Added resource location 'Media/alpes' of type 'FileSystem' to resource group 'PLSM2'
14:28:41: Added resource location 'Media/terragen16bits' of type 'FileSystem' to resource group 'PLSM2'
14:28:45: ******************************
*** Starting SDL Subsystem ***
******************************
14:28:45: GLRenderSystem::createRenderWindow "OGRE Render Window", 2560x1024 windowed miscParams: FSAA=0 title=OGRE Render Window
14:28:45: GL_VERSION = 1.5.3 NVIDIA 71.67
14:28:45: GL_VENDOR = NVIDIA Corporation
14:28:45: GL_RENDERER = GeForce 6600/PCI/SSE2/3DNOW!
14:28:45: GL_EXTENSIONS = GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_imaging GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shadow GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_texture_non_power_of_two GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_ATI_draw_buffers GL_ATI_texture_float GL_ATI_texture_mirror_once GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_Cg_shader GL_EXT_depth_bounds_test GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_texture3D GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_vertex_array GL_HP_occlusion_test GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_copy_depth_to_color GL_NV_depth_clamp GL_NV_fence GL_NV_float_buffer GL_NV_fog_distance GL_NV_fragment_program GL_NV_fragment_program_option GL_NV_fragment_program2 GL_NV_half_float GL_NV_light_max_exponent GL_NV_multisample_filter_hint GL_NV_occlusion_query GL_NV_packed_depth_stencil GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_primitive_restart GL_NV_register_combiners GL_NV_register_combiners2 GL_NV_texgen_reflection GL_NV_texture_compression_vtc GL_NV_texture_env_combine4 GL_NV_texture_expand_normal GL_NV_texture_rectangle GL_NV_texture_shader GL_NV_texture_shader2 GL_NV_texture_shader3 GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_program GL_NV_vertex_program1_1 GL_NV_vertex_program2 GL_NV_vertex_program2_option GL_NV_vertex_program3 GL_NVX_conditional_render GL_SGIS_generate_mipmap GL_SGIS_texture_lod GL_SGIX_depth_texture GL_SGIX_shadow GL_SUN_slice_accum
14:28:45: ***************************
*** GL Renderer Started ***
***************************
14:28:45: Registering ResourceManager for type GpuProgram
14:28:45: GLSL support detected
14:28:45: GL: Using framebuffer copy for rendering to textures (worst)
14:28:45: GL: Warning: RenderTexture size is restricted to size of framebuffer. If you are on Linux, consider using GLX instead of SDL.
14:28:45: RenderSystem capabilities
14:28:45: -------------------------
14:28:45: * Hardware generation of mipmaps: yes
14:28:45: * Texture blending: yes
14:28:45: * Anisotropic texture filtering: yes
14:28:45: * Dot product texture operation: yes
14:28:45: * Cube mapping: yes
14:28:45: * Hardware stencil buffer: yes
14:28:45: - Stencil depth: 8
14:28:45: - Two sided stencil support: yes
14:28:45: - Wrap stencil values: yes
14:28:45: * Hardware vertex / index buffers: yes
14:28:45: * Vertex programs: yes
14:28:45: - Max vertex program version: vp40
14:28:45: * Fragment programs: yes
14:28:45: - Max fragment program version: fp40
14:28:45: * Texture Compression: yes
14:28:45: - DXT: yes
14:28:45: - VTC: yes
14:28:45: * Scissor Rectangle: yes
14:28:45: * Hardware Occlusion Query: yes
14:28:45: * User clip planes: yes
14:28:45: * VET_UBYTE4 vertex element type: yes
14:28:45: * Infinite far plane projection: yes
14:28:45: * Hardware render-to-texture: no
14:28:45: * Floating point textures: yes
14:28:45: * Non-power-of-two textures: yes
14:28:45: * Volume textures: yes
14:28:45: * Multiple Render Targets: 1
14:28:45: Registering ResourceManager for type Texture
14:28:45: ResourceBackgroundQueue - threading disabled
14:28:45: Particle Renderer Type 'billboard' registered
14:28:45: Creating viewport on target 'OGRE Render Window', rendering from camera 'PlayerCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
14:28:45: Viewport for camera 'PlayerCam', actual dimensions L: 0 T: 0 W: 2560 H: 1024
14:28:45: Parsing scripts for resource group Bootstrap
14:28:45: Parsing script OgreCore.material
14:28:45: Parsing script OgreProfiler.material
14:28:45: Parsing script Ogre.fontdef
14:28:45: Parsing script OgreDebugPanel.overlay
14:28:45: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8B8G8R8,256x128x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
14:28:45: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8B8G8R8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
14:28:45: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8B8G8R8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
14:28:45: Font TrebuchetMSBoldusing texture size 512x512
14:28:45: Info: Freetype returned null for character 160 in font TrebuchetMSBold
14:28:45: Texture: TrebuchetMSBoldTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
14:28:45: Texture: ogretext.png: Loading 1 faces(PF_A8B8G8R8,256x128x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
14:28:45: Parsing script OgreLoadingPanel.overlay
14:28:45: Finished parsing scripts for resource group Bootstrap
14:28:45: Parsing scripts for resource group General
14:28:45: Parsing script Examples.program
14:28:45: Parsing script MapEditor-Circle.material
14:28:45: Parsing script MyTree.material
14:28:45: Parsing script colors.material
14:28:45: Parsing script Example-DynTex.material
14:28:45: Parsing script Example-Water.material
14:28:45: Parsing script Example.material
14:28:46: Parsing script Examples-Advanced.material
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named eyePosition.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Error in material Examples/BumpMapping/SingleLight at line 124 of Examples-Advanced.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named eyePosition.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named eyePosition.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Error in material Examples/BumpMapping/SingleLight at line 167 of Examples-Advanced.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named eyePosition.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named eyePosition.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Error in material Examples/BumpMapping/MultiLight at line 240 of Examples-Advanced.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named eyePosition.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named eyePosition.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Error in material Examples/BumpMapping/MultiLight at line 330 of Examples-Advanced.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named eyePosition.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named eyePosition.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Error in material Examples/BumpMapping/MultiLightSpecular at line 515 of Examples-Advanced.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named eyePosition.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named eyePosition.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Error in material Examples/Athene/NormalMapped at line 799 of Examples-Advanced.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named eyePosition.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named eyePosition.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Error in material Examples/Athene/NormalMapped at line 889 of Examples-Advanced.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named eyePosition.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named eyePosition.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Error in material Examples/Athene/NormalMappedSpecular at line 1095 of Examples-Advanced.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named eyePosition.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Parsing script OffsetMapping.material
14:28:46: Parsing script Ogre.material
14:28:46: Parsing script RZR-002.material
14:28:46: Parsing script smoke.material
14:28:46: Finished parsing scripts for resource group General
14:28:46: Parsing scripts for resource group PLSM2
14:28:46: Parsing script DecompressSplat.program
14:28:46: Parsing script DecompressVertex.program
14:28:46: Parsing script Splat.program
14:28:46: Parsing script BaseTexture.material
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named lightDirection.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Error in material InstantBaseMaterialVertexShaded at line 56 of BaseTexture.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named lightDirection.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named ambientLight.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Error in material InstantBaseMaterialVertexShaded at line 57 of BaseTexture.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named ambientLight.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named lightDirection.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Error in material InstantBaseMaterialVertexPixelShaded at line 97 of BaseTexture.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named lightDirection.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named ambientLight.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Error in material InstantBaseMaterialVertexPixelShaded at line 98 of BaseTexture.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named ambientLight.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Parsing script PagingLandScape.material
14:28:46: Parsing script PagingLandScapeTemplate.material
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named lightDirection.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Error in material PagingLandScape.Template.VertexPixelShaded at line 12 of PagingLandScapeTemplate.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named lightDirection.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named ambientLight.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Error in material PagingLandScape.Template.VertexPixelShaded at line 13 of PagingLandScapeTemplate.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named ambientLight.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named lightDirection.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Error in material PagingLandScape.Template.VertexShaded at line 56 of PagingLandScapeTemplate.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named lightDirection.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named ambientLight.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Error in material PagingLandScape.Template.VertexShaded at line 57 of PagingLandScapeTemplate.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named ambientLight.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Parsing script Splatting.material
14:28:46: Parsing script Splatting2.material
14:28:46: Parsing script Splatting3.material
14:28:46: Parsing script Splatting4.material
14:28:46: Parsing script Splatting5.material
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named lightDirection.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Error in material SplattingMaterial5Decompress at line 10 of Splatting5.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named lightDirection.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named ambientLight.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Error in material SplattingMaterial5Decompress at line 11 of Splatting5.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named ambientLight.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named fogSettings.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Error in material SplattingMaterial5Decompress at line 32 of Splatting5.material: Invalid param_named attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named fogSettings.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named fogColour.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Error in material SplattingMaterial5Decompress at line 35 of Splatting5.material: Invalid param_named attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named fogColour.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named fogSettings.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Error in material SplattingMaterial5 at line 90 of Splatting5.material: Invalid param_named attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named fogSettings.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named fogColour.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Error in material SplattingMaterial5 at line 93 of Splatting5.material: Invalid param_named attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named fogColour.
File: OgreGpuProgram.cpp
Line: 731
Stack unwinding: <<beginning of stack>>
14:28:46: Parsing script Splatting6.material
14:28:46: Parsing script Splatting7.material
14:28:46: Parsing script PagingLandScape2.overlay
14:28:46: Finished parsing scripts for resource group PLSM2
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 8
Function: ResourceGroupManager::openResource
Description: Cannot locate resource flare.png in resource group General..
File: OgreResourceGroupManager.cpp
Line: 501
Stack unwinding: <<beginning of stack>>
14:28:46: Error loading texture flare.png. Texture layer will be blank. Loading the texture failed with the following exception: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 8
Function: ResourceGroupManager::openResource
Description: Cannot locate resource flare.png in resource group General..
File: OgreResourceGroupManager.cpp
Line: 501
Stack unwinding: <<beginning of stack>>
14:28:46: WARNING: Mesh instance 'grassblades' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.
14:28:46: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 8
Function: ResourceGroupManager::openResource
Description: Cannot locate resource cursor.png in resource group General..
File: OgreResourceGroupManager.cpp
Line: 501
Stack unwinding: <<beginning of stack>>
14:28:46: Error loading texture cursor.png. Texture layer will be blank. Loading the texture failed with the following exception: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 8
Function: ResourceGroupManager::openResource
Description: Cannot locate resource cursor.png in resource group General..
File: OgreResourceGroupManager.cpp
Line: 501
Stack unwinding: <<beginning of stack>>
14:28:46: Texture: spot_shadow_fade.png: Loading 1 faces(PF_B8G8R8,128x128x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
14:28:46: Texture: ps_texture_1k.2.2.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
14:28:46: Texture: detail3.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
14:28:46: Texture: ps_texture_1k.2.1.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
14:28:46: Texture: ps_texture_1k.1.2.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
14:28:46: Texture: ps_texture_1k.1.1.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
14:28:47: Texture: ps_texture_1k.3.2.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
14:28:47: Texture: ps_texture_1k.2.3.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
14:28:47: Texture: ps_texture_1k.3.1.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
14:28:47: Texture: ps_texture_1k.1.3.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
14:28:47: Texture: ps_texture_1k.2.0.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
14:28:47: Texture: ps_texture_1k.0.2.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
14:28:47: Texture: ps_texture_1k.1.0.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
14:28:47: Texture: ps_texture_1k.0.1.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
14:28:47: Texture: ps_texture_1k.3.3.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
14:28:47: Texture: ps_texture_1k.3.0.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
14:28:47: Texture: ps_texture_1k.0.3.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
14:28:47: Texture: ps_texture_1k.0.0.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
14:32:52: *-*-* OGRE Shutdown
14:32:52: Unregistering ResourceManager for type Font
14:32:52: Unregistering ResourceManager for type Skeleton
14:32:52: Unregistering ResourceManager for type Mesh
14:32:52: Unregistering ResourceManager for type HighLevelGpuProgram
14:32:52: Unloading library /usr/local/lib/OGRE/Plugin_CgProgramManager
14:32:52: Unloading library /usr/local/lib/OGRE/Plugin_PagingLandScape2
14:32:52: Unloading library /usr/local/lib/OGRE/Plugin_OctreeSceneManager
14:32:52: Unregistering ResourceManager for type BspLevel
14:32:52: Unloading library /usr/local/lib/OGRE/Plugin_BSPSceneManager
14:32:52: Unloading library /usr/local/lib/OGRE/Plugin_ParticleFX
14:32:52: Render Target 'OGRE Render Window' Average FPS: 157.299 Best FPS: 254.237 Worst FPS: 21.374
14:32:52: Unregistering ResourceManager for type GpuProgram
14:32:52: ******************************
*** Stopping SDL Subsystem ***
******************************
14:32:53: Unregistering ResourceManager for type Texture
14:32:53: Unloading library /usr/local/lib/OGRE/RenderSystem_GL
14:32:53: Unregistering ResourceManager for type Material
14:32:53: Unloading library libOgrePlatform.so

tuan kuranes

20-10-2005 14:47:09

your materials and cfg doesn't seem to be up to date with CVS ?

waldi

20-10-2005 16:30:17

ok...now using Media/* stuff from CVS...and reran ./MapSplitter

but now i get errors with texture edges...

...and a segfault on exit:
#0 0xb7f03975 in Ogre::PagingLandScapePage::_Show (this=0xa0d34f0) at OgrePagingLandScapePage.cpp:601
#1 0xb7f035fe in Ogre::PagingLandScapePage::unload (this=0xa0d34f0) at OgrePagingLandScapePage.cpp:497
#2 0xb7f03652 in Ogre::PagingLandScapePage::unloadTexture (this=0xa0d34f0) at OgrePagingLandScapePage.cpp:525
#3 0xb7f036b2 in Ogre::PagingLandScapePage::postUnload (this=0xa0d34f0) at OgrePagingLandScapePage.cpp:536
#4 0xb7f01c1f in Ogre::PagingLandScapePage::uninit (this=0xa0d34f0) at OgrePagingLandScapePage.cpp:174
#5 0xb7f00f9a in ~PagingLandScapePage (this=0xa0d34f0) at OgrePagingLandScapePage.cpp:57
#6 0xb7f088fe in std::for_each<__gnu_cxx::__normal_iterator<Ogre::PagingLandScapePage**, std::vector<Ogre::PagingLandScapePage*, std::allocator<Ogre::PagingLandScapePage*> > >, delete_object> (__first=
{<std::iterator<std::random_access_iterator_tag, Ogre::PagingLandScapePage*, int, Ogre::PagingLandScapePage**, Ogre::PagingLandScapePage*&>> = {<No data fields>}, _M_current = 0x90060b8}) at OgrePagingLandScapePrerequisites.h:248
#7 0xb7f05ee8 in ~PagingLandScapePageManager (this=0x8195400) at stl_vector.h:355
#8 0xb7f14f8a in ~PagingLandScapeSceneManager (this=0x80af480) at stl_alloc.h:242
#9 0xb7f1952f in dllStopPlugin () at OgrePagingLandScapeSceneManagerDll.cpp:41
#10 0xb7d3c505 in Ogre::Root::unloadPlugins (this=0x8068358) at OgreRoot.cpp:761
#11 0xb7d3a27b in ~Root (this=0x8068358) at OgreRoot.cpp:279
#12 0x0804e688 in main (argc=1, argv=0xbfd84a04) at ExampleApplication.h:49
(gdb) fr 0
#0 0xb7f03975 in Ogre::PagingLandScapePage::_Show (this=0xa0d34f0) at OgrePagingLandScapePage.cpp:601
601 if (mPageNode->getParent ())
(gdb) p *mPageNode
Cannot access memory at address 0xf6f5f7f7


Ogre.log:
17:03:39: Creating resource group General
17:03:39: Registering ResourceManager for type Material
17:03:39: Registering ResourceManager for type Mesh
17:03:39: Registering ResourceManager for type Skeleton
17:03:39: Loading library libOgrePlatform.so
17:03:39: OverlayElementFactory for type Panel registered.
17:03:39: OverlayElementFactory for type BorderPanel registered.
17:03:39: OverlayElementFactory for type TextArea registered.
17:03:39: Registering ResourceManager for type Font
17:03:39: ArchiveFactory for archive type FileSystem registered.
17:03:39: ArchiveFactory for archive type Zip registered.
17:03:39: DevIL version: Developer's Image Library (DevIL) 1.6.7 Jan 24 2005
17:03:39: DevIL image formats: bmp dib cut dcx dds gif hdr ico cur jpg jpe jpeg lif mdl mng jng pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr sgi bw rgb rgba tga vda icb vst tif tiff wal xpm raw
17:03:39: Registering ResourceManager for type HighLevelGpuProgram
17:03:39: MovableObjectFactory for type 'Entity' registered.
17:03:39: MovableObjectFactory for type 'Light' registered.
17:03:39: MovableObjectFactory for type 'BillboardSet' registered.
17:03:39: MovableObjectFactory for type 'ManualObject' registered.
17:03:39: Loading library /usr/local/lib/OGRE/RenderSystem_GL
17:03:39: OpenGL Rendering Subsystem created.
17:03:39: Loading library /usr/local/lib/OGRE/Plugin_ParticleFX
17:03:39: Particle Emitter Type 'Point' registered
17:03:39: Particle Emitter Type 'Box' registered
17:03:39: Particle Emitter Type 'Ellipsoid' registered
17:03:39: Particle Emitter Type 'Cylinder' registered
17:03:39: Particle Emitter Type 'Ring' registered
17:03:39: Particle Emitter Type 'HollowEllipsoid' registered
17:03:39: Particle Affector Type 'LinearForce' registered
17:03:39: Particle Affector Type 'ColourFader' registered
17:03:39: Particle Affector Type 'ColourFader2' registered
17:03:39: Particle Affector Type 'ColourImage' registered
17:03:39: Particle Affector Type 'ColourInterpolator' registered
17:03:39: Particle Affector Type 'Scaler' registered
17:03:39: Particle Affector Type 'Rotator' registered
17:03:39: Loading library /usr/local/lib/OGRE/Plugin_BSPSceneManager
17:03:39: Registering ResourceManager for type BspLevel
17:03:39: Loading library /usr/local/lib/OGRE/Plugin_OctreeSceneManager
17:03:39: TerrainSceneManager: Registered a new PageSource for type Heightmap
17:03:39: Loading library /usr/local/lib/OGRE/Plugin_PagingLandScape2
17:03:39: Loading library /usr/local/lib/OGRE/Plugin_CgProgramManager
17:03:39: *-*-* OGRE Initialising
17:03:39: *-*-* Version 1.1.0 (Dagon)
17:03:39: Creating resource group Bootstrap
17:03:39: Added resource location 'Media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
17:03:39: Added resource location 'Media/materials/programs' of type 'FileSystem' to resource group 'General'
17:03:39: Added resource location 'Media/materials/scripts' of type 'FileSystem' to resource group 'General'
17:03:39: Added resource location 'Media/materials/textures' of type 'FileSystem' to resource group 'General'
17:03:39: Added resource location 'Media/models' of type 'FileSystem' to resource group 'General'
17:03:39: Creating resource group PLSM2
17:03:39: Added resource location 'Media' of type 'FileSystem' to resource group 'PLSM2'
17:03:39: Added resource location 'Media/paginglandscape' of type 'FileSystem' to resource group 'PLSM2'
17:03:39: Added resource location 'Media/paginglandscape/splat' of type 'FileSystem' to resource group 'PLSM2'
17:03:39: Added resource location 'Media/paginglandscape/datasrcs' of type 'FileSystem' to resource group 'PLSM2'
17:03:39: Added resource location 'Media/paginglandscape/ps_height_1k' of type 'FileSystem' to resource group 'PLSM2'
17:03:39: Added resource location 'Media/paginglandscape/gcanyon_height_4k2k' of type 'FileSystem' to resource group 'PLSM2'
17:03:39: Added resource location 'Media/paginglandscape/alpes' of type 'FileSystem' to resource group 'PLSM2'
17:03:39: Added resource location 'Media/paginglandscape/terragen16bits' of type 'FileSystem' to resource group 'PLSM2'
17:03:44: ******************************
*** Starting SDL Subsystem ***
******************************
17:03:44: GLRenderSystem::createRenderWindow "OGRE Render Window", 2560x1024 windowed miscParams: FSAA=0 title=OGRE Render Window
17:03:45: GL_VERSION = 1.5.3 NVIDIA 71.67
17:03:45: GL_VENDOR = NVIDIA Corporation
17:03:45: GL_RENDERER = GeForce 6600/PCI/SSE2/3DNOW!
17:03:45: GL_EXTENSIONS = GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_imaging GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shadow GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_texture_non_power_of_two GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_ATI_draw_buffers GL_ATI_texture_float GL_ATI_texture_mirror_once GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_Cg_shader GL_EXT_depth_bounds_test GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_texture3D GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_vertex_array GL_HP_occlusion_test GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_copy_depth_to_color GL_NV_depth_clamp GL_NV_fence GL_NV_float_buffer GL_NV_fog_distance GL_NV_fragment_program GL_NV_fragment_program_option GL_NV_fragment_program2 GL_NV_half_float GL_NV_light_max_exponent GL_NV_multisample_filter_hint GL_NV_occlusion_query GL_NV_packed_depth_stencil GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_primitive_restart GL_NV_register_combiners GL_NV_register_combiners2 GL_NV_texgen_reflection GL_NV_texture_compression_vtc GL_NV_texture_env_combine4 GL_NV_texture_expand_normal GL_NV_texture_rectangle GL_NV_texture_shader GL_NV_texture_shader2 GL_NV_texture_shader3 GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_program GL_NV_vertex_program1_1 GL_NV_vertex_program2 GL_NV_vertex_program2_option GL_NV_vertex_program3 GL_NVX_conditional_render GL_SGIS_generate_mipmap GL_SGIS_texture_lod GL_SGIX_depth_texture GL_SGIX_shadow GL_SUN_slice_accum
17:03:45: ***************************
*** GL Renderer Started ***
***************************
17:03:45: Registering ResourceManager for type GpuProgram
17:03:45: GLSL support detected
17:03:45: GL: Using framebuffer copy for rendering to textures (worst)
17:03:45: GL: Warning: RenderTexture size is restricted to size of framebuffer. If you are on Linux, consider using GLX instead of SDL.
17:03:45: RenderSystem capabilities
17:03:45: -------------------------
17:03:45: * Hardware generation of mipmaps: yes
17:03:45: * Texture blending: yes
17:03:45: * Anisotropic texture filtering: yes
17:03:45: * Dot product texture operation: yes
17:03:45: * Cube mapping: yes
17:03:45: * Hardware stencil buffer: yes
17:03:45: - Stencil depth: 8
17:03:45: - Two sided stencil support: yes
17:03:45: - Wrap stencil values: yes
17:03:45: * Hardware vertex / index buffers: yes
17:03:45: * Vertex programs: yes
17:03:45: - Max vertex program version: vp40
17:03:45: * Fragment programs: yes
17:03:45: - Max fragment program version: fp40
17:03:45: * Texture Compression: yes
17:03:45: - DXT: yes
17:03:45: - VTC: yes
17:03:45: * Scissor Rectangle: yes
17:03:45: * Hardware Occlusion Query: yes
17:03:45: * User clip planes: yes
17:03:45: * VET_UBYTE4 vertex element type: yes
17:03:45: * Infinite far plane projection: yes
17:03:45: * Hardware render-to-texture: no
17:03:45: * Floating point textures: yes
17:03:45: * Non-power-of-two textures: yes
17:03:45: * Volume textures: yes
17:03:45: * Multiple Render Targets: 1
17:03:45: Registering ResourceManager for type Texture
17:03:45: ResourceBackgroundQueue - threading disabled
17:03:45: Particle Renderer Type 'billboard' registered
17:03:45: Creating viewport on target 'OGRE Render Window', rendering from camera 'PlayerCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
17:03:45: Viewport for camera 'PlayerCam', actual dimensions L: 0 T: 0 W: 2560 H: 1024
17:03:45: Parsing scripts for resource group Bootstrap
17:03:45: Parsing script OgreCore.material
17:03:45: Parsing script OgreProfiler.material
17:03:45: Parsing script Ogre.fontdef
17:03:45: Parsing script OgreDebugPanel.overlay
17:03:45: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8B8G8R8,256x128x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
17:03:45: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8B8G8R8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
17:03:45: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8B8G8R8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
17:03:45: Font TrebuchetMSBoldusing texture size 512x512
17:03:45: Info: Freetype returned null for character 160 in font TrebuchetMSBold
17:03:45: Texture: TrebuchetMSBoldTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
17:03:45: Texture: ogretext.png: Loading 1 faces(PF_A8B8G8R8,256x128x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
17:03:45: Parsing script OgreLoadingPanel.overlay
17:03:45: Finished parsing scripts for resource group Bootstrap
17:03:45: Parsing scripts for resource group General
17:03:45: Parsing script Examples.program
17:03:45: Parsing script MapEditor-Circle.material
17:03:45: Parsing script MyTree.material
17:03:45: Parsing script colors.material
17:03:45: Parsing script Example-DynTex.material
17:03:45: Parsing script Example-Water.material
17:03:45: Parsing script Example.material
17:03:45: Parsing script Examples-Advanced.material
17:03:45: Parsing script OffsetMapping.material
17:03:45: Parsing script Ogre.material
17:03:45: Parsing script RZR-002.material
17:03:45: Parsing script smoke.material
17:03:45: Finished parsing scripts for resource group General
17:03:45: Parsing scripts for resource group PLSM2
17:03:45: Parsing script DecompressSplat.program
17:03:45: Parsing script DecompressSplatShader.program
17:03:45: Parsing script DecompressVertex.program
17:03:45: Parsing script SplatShader.program
17:03:45: Parsing script splat.program
17:03:45: Parsing script BaseTexture.material
17:03:45: Parsing script IPLSM_BaseTexture.material
17:03:45: Parsing script IPLSM_Image.material
17:03:45: Error in material IPLSM_Image at line 23 of IPLSM_Image.material: Bad colour_op_ex attribute, wrong number of parameters (expected 3 to 10)
17:03:45: Parsing script IPLSM_Splatting1.material
17:03:45: Error in material IPLSM_Splatting1 at line 36 of IPLSM_Splatting1.material: Unrecognised command: alpha_rejection
17:03:45: Error in material IPLSM_Splatting1 at line 62 of IPLSM_Splatting1.material: Unrecognised command: alpha_rejection
17:03:45: Error in material IPLSM_Splatting1 at line 88 of IPLSM_Splatting1.material: Unrecognised command: alpha_rejection
17:03:45: Error in material IPLSM_Splatting1 at line 113 of IPLSM_Splatting1.material: Unrecognised command: alpha_rejection
17:03:45: Parsing script IPLSM_Splatting2.material
17:03:45: Error in material IPLSM_Splatting2 at line 36 of IPLSM_Splatting2.material: Unrecognised command: alpha_rejection
17:03:45: Error in material IPLSM_Splatting2 at line 62 of IPLSM_Splatting2.material: Unrecognised command: alpha_rejection
17:03:45: Error in material IPLSM_Splatting2 at line 88 of IPLSM_Splatting2.material: Unrecognised command: alpha_rejection
17:03:45: Error in material IPLSM_Splatting2 at line 113 of IPLSM_Splatting2.material: Unrecognised command: alpha_rejection
17:03:45: Parsing script IPLSM_Splatting3.material
17:03:45: Parsing script PagingLandScape.material
17:03:45: Parsing script PagingLandScapeTemplate.material
17:03:45: Parsing script Splatting.material
17:03:45: Parsing script Splatting2.material
17:03:45: Parsing script Splatting3.material
17:03:45: Parsing script Splatting4.material
17:03:45: Parsing script Splatting5.material
17:03:46: Error in material SplattingMaterial5 at line 75 of Splatting5.material: Invalid vertex_program_ref entry - vertex program Splatcg/VP has not been defined.
17:03:46: Error in material SplattingMaterial5 at line 97 of Splatting5.material: Invalid fragment_program_ref entry - fragment program Splatcg/FP has not been defined.
17:03:46: Parsing script Splatting6.material
17:03:46: Parsing script Splatting7.material
17:03:46: Parsing script SplattingShader.material
17:03:46: Parsing script alpha_splat.material
17:03:46: Parsing script shadersplat.material
17:03:46: Parsing script PagingLandScape.overlay
17:03:46: Parsing script PagingLandScape2.overlay
17:03:46: Finished parsing scripts for resource group PLSM2
17:03:46: Texture: flare.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
17:03:46: WARNING: Mesh instance 'grassblades' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.
17:03:46: Texture: cursor.png: Loading 1 faces(PF_A8B8G8R8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
17:03:46: Texture: spot_shadow_fade.png: Loading 1 faces(PF_B8G8R8,128x128x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
17:03:46: Texture: ps_texture_1k.1.1.png: Loading 1 faces(PF_B8G8R8,512x512x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
17:03:46: Texture: detail3.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
17:03:46: Texture: ps_texture_1k.1.0.png: Loading 1 faces(PF_B8G8R8,512x512x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
17:03:46: Texture: ps_texture_1k.0.1.png: Loading 1 faces(PF_B8G8R8,512x512x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
17:03:47: Texture: ps_texture_1k.0.0.png: Loading 1 faces(PF_B8G8R8,512x512x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
17:06:27: *-*-* OGRE Shutdown
17:06:27: Unregistering ResourceManager for type Font
17:06:27: Unregistering ResourceManager for type Skeleton
17:06:27: Unregistering ResourceManager for type Mesh
17:06:27: Unregistering ResourceManager for type HighLevelGpuProgram
17:06:27: Unloading library /usr/local/lib/OGRE/Plugin_CgProgramManager

tuan kuranes

20-10-2005 16:51:26

Edge fix was commited this afternoon.

I'm already looking after the segault on exit, thanks for the stack, on win32 it only happens on Release mode, without giving stack. So now I have a start to look at.

tuan kuranes

20-10-2005 17:05:48

ok found the bug. fixing it. (was calling uninit in destructor even when not inited....)

Thanks again.

I should really get a VMWARE where I run a linux to have all linux debug facilites... should check VMWARE if supports accelerated rendering and windows 64bits.

waldi

21-10-2005 11:56:47

thanks, everything compiles now...just some warnings about implicit casts, but who cares ;)

...and a texture called 'Detail3.jpg' is referenced as 'detail3.jpg' in some files:
zeus:/usr/local/src/ogre/ogreaddons/paginglandscape# grep -r -I detail3.jpg * | sort | uniq
Samples/Media/paginglandscape/BaseTexture.material: texture detail3.jpg
Samples/Media/paginglandscape/PagingLandScape.material: texture detail3.jpg
Samples/Media/paginglandscape/PagingLandScapeTemplate.material: texture detail3.jpg

waldi

21-10-2005 12:17:25

pkg-config get messed up after installation because 'prefix' was missing...

OGRE-PLUGIN-PLSM2.pc.in
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
plugindir=@OGRE_PLUGINDIR@

Name: OGRE-PLUGIN-PLSM2
Description: Ogre Paging LandScape Scene Manager
Version: @VERSION@
Libs: -L${plugindir} -lPagingLandScape2
Cflags: -I${includedir}/@PACKAGE@ @OGRE_CFLAGS@

waldi

21-10-2005 13:08:33

prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
plugindir=@OGRE_PLUGINDIR@

Name: OGRE-PLUGIN-PLSM2
Description: Ogre Paging LandScape Scene Manager
Version: @VERSION@
Libs:
Cflags: -I${includedir}/@PACKAGE@ @OGRE_CFLAGS@

the stuff in 'Libs:' should be removed...can't be linked, and its not needed at all

maybe some API headers should be installed like:
- OgrePagingLandScapeRaySceneQuery.h
- OgrePagingLandScapeListenerManager.h

...dunno whats required, so i just installed them all by replacing 'noinst_HEADERS = ..." to 'pkginclude_HEADERS = ...' in PlugIns/PagingLandScape2/include/Makefile.am

tuan kuranes

22-10-2005 16:05:44

thanks.
about header only those two are needed.

Does it work without the static linking ? with Libs empty ?
on Win32 it's required as soon as we use the listener.

waldi

22-10-2005 17:48:11

prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
plugindir=@OGRE_PLUGINDIR@

Name: OGRE-PLUGIN-PLSM2
Description: Ogre Paging LandScape Scene Manager
Version: @VERSION@
Libs: -rpath ${plugindir} ${plugindir}/Plugin_PagingLandScape2.so
Cflags: -I${includedir}/@PACKAGE@ @OGRE_CFLAGS@


i thought it would be enough if ogre loads the plugin at run-time, but i guess i was wrong...
the old line:
Libs: -L${plugindir} -lPagingLandScape2
doesn't work because it would try to find a library called libPagingLandScape2.so (or libPagingLandScape.a), but its called Plugin_PagingLandScape2.so