I'm experiencing some strange behaviour with the world geometry when using the NatureSceneManager. What I am trying to do is to change the position of this geometry. Apparently, the default position of it is off-center (positive x & z), and I would like to get it centered (eg -w/2 <= x <= w/2)
I have tried setPosition(), like you would with any other node, like this:
Code: Select all
SceneNode * rnode = mSceneMgr->getRootSceneNode();
static_cast<SceneNode*>(rnode->getChild("NaturePluginRoot"))->setPosition(-2048, 0, -1024);
What I'm seeing is that the terrain seems to run away as I approach it with the camera. I don't think the terrain is actually moving, but it's like the clipping of the camera has changed (near plane seems to be to far), so it's like this clipping is affected by setPosition().
I have no idea why this is happening, so I'm hoping someone can help me out here.
Thanks,
g
EDIT: I meant Demo_Nature, obviously