How to make always rendering render window?

nolver

03-07-2006 16:49:51

This should be very easy to do, but just can't figure it out.

I've got a render window (created by ogre on init) and I want to control some aspects of the rendering from another form. The thing is that when the focus is on the form, the render window becomes inactive and stops rendering.

How can you force the render window to render constinuoslly, even when it's not the active window?

thanks!

pjcast

03-07-2006 18:57:13

By default, if you are using RenderOneFrame (or startRendering for that matter), Ogre will only update Active windows. And, if you let Ogre create the window, it will also use it's own WinProc to know when the window loses focus. One solution, don't use renderOneFrame and update the renderwindow's yourself. Make sure also fire off framestarted and ended events.

diegospc

08-07-2006 02:38:32

This should be very easy to do, but just can't figure it out.

I've got a render window (created by ogre on init) and I want to control some aspects of the rendering from another form. The thing is that when the focus is on the form, the render window becomes inactive and stops rendering.

How can you force the render window to render constinuoslly, even when it's not the active window?

thanks!


Hello, i'm new in the OgreDotNet World :D
I don't know hoy to render in a window. Please, you can send me an example or tell me what code is necesary write for render in a windows and manage the render from other window.
Thanks a lot!

Sory for my really bad english.

pjcast

08-07-2006 22:20:04

You should grab OgreDotNet from CVS, and look at the example source code. It shows how to setup ODN into a WinForm and it also shows how to create the default external window :)

spliff

20-10-2009 10:19:58

i found this (old) thread with the search function because of it's topic. in case other people find it, i want to add that in the actual ogre3d release you can just use a function of the http://www.ogre3d.org/docs/api/html/cla ... indow.html class to achieve this:

void Ogre::RenderWindow::setDeactivateOnFocusChange( bool deactivate )