Integrating PLSM2 into app

winston2020

13-03-2010 05:32:17

Well, I'm trying to to use OgreNewt with PLSM2, however the only tutorial I can find is this which seems to be a little out of date. I don't believe this part works anymore:

mSceneManager->getOption("PageGetTileVertexData_2",&params);

So I'm trying to include the PagingSceneManager in my app so I can use this:

Ogre::PagingLandScapeTile* tile = mSceneManager->getPageManager()->getTile(tileX, tileZ, pageX, pageZ, true);
Ogre::PagingLandScapeRenderable* renderable = tile->getRenderable();

unsigned int vertex_count = renderable->getVertexCount();

unsigned int vertexcount = tile->getRenderable()->getVertexCount();
Ogre::Vector3 *vertices = new Ogre::Vector3[1024];
tile->getRenderable()->getRawVertexData(vertices);
Ogre::IndexData* indexData = tile->getRenderable()->getRawIndexData(renderLevel);


I'm getting linker errors, but I don't know how to resolve them:

PLSM2Manager.obj : error LNK2019: unresolved external symbol "public: class Ogre::IndexData * __thiscall Ogre::PagingLandScapeRenderable::getRawIndexData(int)" (?getRawIndexData@PagingLandScapeRenderable@Ogre@@QAEPAVIndexData@2@H@Z) referenced in function "protected: void __thiscall PLSM2Manager::tileLoaded(class Ogre::PagingLandscapeEvent *)" (?tileLoaded@PLSM2Manager@@IAEXPAVPagingLandscapeEvent@Ogre@@@Z)
1>PLSM2Manager.obj : error LNK2019: unresolved external symbol "public: void __thiscall Ogre::PagingLandScapeRenderable::getRawVertexData(class Ogre::Vector3 *)" (?getRawVertexData@PagingLandScapeRenderable@Ogre@@QAEXPAVVector3@2@@Z) referenced in function "protected: void __thiscall PLSM2Manager::tileLoaded(class Ogre::PagingLandscapeEvent *)" (?tileLoaded@PLSM2Manager@@IAEXPAVPagingLandscapeEvent@Ogre@@@Z)
1>PLSM2Manager.obj : error LNK2019: unresolved external symbol "public: unsigned int const __thiscall Ogre::PagingLandScapeRenderable::getVertexCount(void)" (?getVertexCount@PagingLandScapeRenderable@Ogre@@QAE?BIXZ) referenced in function "protected: void __thiscall PLSM2Manager::tileLoaded(class Ogre::PagingLandscapeEvent *)" (?tileLoaded@PLSM2Manager@@IAEXPAVPagingLandscapeEvent@Ogre@@@Z)


Does anyone either know how to solve this, or could provide another method of loading the vertex data?