Forcing update of terrain page (TSM)

Problems building or running the engine, queries about how to use features etc.
Post Reply
User avatar
DWORD
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 1365
Joined: Tue Sep 07, 2004 12:43 pm
Location: Aalborg, Denmark
Contact:

Forcing update of terrain page (TSM)

Post by DWORD »

Hi,

I'm wondering what is the best way to force the TerrainSceneManager to update a terrain page (the single one there is)? Currently I'm thinking about a way to make the TerrainSceneManager invoke TerrainPageSource::expirePage() and then TerrainPageSource::requestPage(). Because it looks like I can't just call attachPage() when the page is already attached. If there's a better method I would also like to know.

Edit: Please note, that I don't want to clear the scene, so clearScene() is not an option. And setWorldGeometry() is overkill.
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 67
Contact:

Post by sinbad »

Since the paging isn't implemented in TSM yet, there are no calls to expirePage() at all yet. You'll have to add this yourself.
Post Reply