How to pause rendering

Merlimoo

22-12-2007 17:31:14

Hi,

I am currently programming a game with NxOgre and I'd like to implement a pause. I am creating the World object with the FrameListener option ON. Currently, I am removing the PhysXDriver framelistener from the Ogre::Root queue and putting it in when I want to resume the game. But when I am pausing the game when a force is applied to an object, this object have some kind of an infinite force applied to him when I resume the game. I can understand why, but I don't know how to avoid it.

I don't really know another method to do this. Can somebody help me please ? :)

betajaen

22-12-2007 18:17:12

Don't use the frameListener and inject simulate and render to the physxDriver when you want it to not paused.

Merlimoo

24-12-2007 08:36:16

That's what I tought, thanks.

Even if it is not an Ogre forum, maybe you can help me with the following. I've got the same problem with animation effects in Ogre directly. How can I do to stop rendering this animation, while rendering the CEGUI menu ? I really want to avoid testing of all my effects to decide which one have to be render. Isn't there a way with multiple SceneManager or something like that?