Hi Iganacio, On 10/25/06, Ignacio García <[EMAIL PROTECTED]> wrote:
My little experience with OSG with MFC has leaded me to two threads, besides OSG internal threads: - The MFC main thread (CWinApp), that controls the MFC GUI. - Another thread for OSG loop: viewer->realize() while ( !viewer->done() ) { viewer->sync(); viewer->update(); viewer->frame(); }The OSG loop must be always done, in order to refresh the scene. And if you use the MFC thread to do it, no messages will be processed in the GUI, the GUI will be responseless.
The above only applies if you are using osgProducer::Viewer integrated with MFC. If you have an event driven application then integrated osgProducer::Viewer will just complicate things and not bring any great value add. For event driven apps osgsimpleviewer* examples in CVS will be a much better place to start. Robert. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
