Re: [osg-users] Viewer creation and frame() from different threads

2009-12-02 Thread Riccardo Corsi
Hi Robert and all, I played a bit more with the Qt application and threads, and I've succeeded in running: - osg in the main application thread - QApplication and WebBrowser in a background thread The only limitation is that everything related to the Qt world must be executed in that same thread.

Re: [osg-users] Viewer creation and frame() from different threads

2009-12-01 Thread Robert Osfield
Hi Riccardo, As far as I could tell Qt is designed to only allow you to drive it's event and rendering loop from the applications main thread. I tried lots of different combinations of threading to get round this but didn't succeed. Perhaps separate process might be able to do it. Robert. On T

Re: [osg-users] Viewer creation and frame() from different threads

2009-12-01 Thread Riccardo Corsi
Hi Robert and All, I'm revamping this thread 'cause my question is related to it. Simon knows much more than I do about windows event handling, but I have tried to run the osgQtBrowser example under WinXP, and it works fine (with active navigation) both in threaded and single thread mode. But on

Re: [osg-users] Viewer creation and frame() from different threads

2009-10-20 Thread Simon Hammett
2009/10/20 J.P. Delport : > Hi Simon, > > Simon Hammett wrote: >>> >>> I will try osgqtbrowser on Windows and >>> see what happens. >>> >>> Anyone else have reports on osgqtbrowser on Windows? >>> >>> thanks >>> jp >>> >> Windozes is same as Mac, only the owner thread can retrieve events for >> win

Re: [osg-users] Viewer creation and frame() from different threads

2009-10-20 Thread J.P. Delport
Hi Simon, Simon Hammett wrote: I will try osgqtbrowser on Windows and see what happens. Anyone else have reports on osgqtbrowser on Windows? thanks jp Windozes is same as Mac, only the owner thread can retrieve events for windows. can you expand on what you mean by "owner". If a thread oth

Re: [osg-users] Viewer creation and frame() from different threads

2009-10-20 Thread Simon Hammett
>>> >>> is it OK to create a viewer in e.g. the main thread and then call frame() >>> from a different thread? We're getting erratic results on Linux vs >>> Windows >>> vs Mac. So I just want to know if this use case is "legal". >> >> I've done this under Linux - the osgqtbrowser example in svn/tru

Re: [osg-users] Viewer creation and frame() from different threads

2009-10-20 Thread J.P. Delport
Hi Robert, Robert Osfield wrote: Hi J.P, On Tue, Oct 20, 2009 at 7:44 AM, J.P. Delport wrote: is it OK to create a viewer in e.g. the main thread and then call frame() from a different thread? We're getting erratic results on Linux vs Windows vs Mac. So I just want to know if this use case is

Re: [osg-users] Viewer creation and frame() from different threads

2009-10-20 Thread Robert Osfield
Hi J.P, On Tue, Oct 20, 2009 at 7:44 AM, J.P. Delport wrote: > is it OK to create a viewer in e.g. the main thread and then call frame() > from a different thread? We're getting erratic results on Linux vs Windows > vs Mac. So I just want to know if this use case is "legal". I've done this under

[osg-users] Viewer creation and frame() from different threads

2009-10-19 Thread J.P. Delport
Hi all, is it OK to create a viewer in e.g. the main thread and then call frame() from a different thread? We're getting erratic results on Linux vs Windows vs Mac. So I just want to know if this use case is "legal". thanks jp -- This message is subject to the CSIR's copyright terms and cond