Re: [osg-users] Multiple viewers and one scene

2008-02-25 Thread nicolas peña
I'll work with this. Thanks a lot. Nicolas. 2008/2/25, Robert Osfield <[EMAIL PROTECTED]>: > > On Mon, Feb 25, 2008 at 9:22 AM, nicolas peña <[EMAIL PROTECTED]> > wrote: > > Yes, I think I'll be OK with that. > > Sorry for my lack of knowledge but, can you tell me how can I > > deactivate/activa

Re: [osg-users] Multiple viewers and one scene

2008-02-25 Thread Robert Osfield
On Mon, Feb 25, 2008 at 9:22 AM, nicolas peña <[EMAIL PROTECTED]> wrote: > Yes, I think I'll be OK with that. > Sorry for my lack of knowledge but, can you tell me how can I > deactivate/activate > the cameras ?. > I don't find the proper method. camera->setNodeMask(0x0); _

Re: [osg-users] Multiple viewers and one scene

2008-02-25 Thread nicolas peña
>If you can have the frames all done >synchronously then perhaps you could have one frame loop and just >disable the cameras that you don't need updating on each frame, i.e. >main viewer runs at 60Hz, and the other RTT cameras run at 20Hrz so >get update on frame in 3. Yes, I think I'll be OK with

Re: [osg-users] Multiple viewers and one scene

2008-02-25 Thread Robert Osfield
On Mon, Feb 25, 2008 at 8:49 AM, nicolas peña <[EMAIL PROTECTED]> wrote: > Just in case you are curious about my case of use, I will try to explain a > bit my intentions, if you consider that my > approximation is not right please correct me. > I am building a simulation framework aimed at multi-ro

Re: [osg-users] Multiple viewers and one scene

2008-02-25 Thread nicolas peña
Thanks a lot for your answer, now I understand a bit of what is going on... I will write the example for better understanding of what I am trying to do and look at the code you suggested. I'll derive it from the code in osgwindows (setting one camera for each window in an independent viewer) and p

Re: [osg-users] Multiple viewers and one scene

2008-02-24 Thread Robert Osfield
HI Nicolas, On Fri, Feb 22, 2008 at 7:11 PM, nicolas peña <[EMAIL PROTECTED]> wrote: > I have done several tests and have reached to the conclusion that it is not > possible to use two viewers at the same time from one process. Are you running the viewers single threaded? If so then the lazy s

Re: [osg-users] Multiple viewers and one scene

2008-02-22 Thread nicolas peña
I forgot to say that I was two instances of osgviewer::viewer. Thanks again, Nicolas. 2008/2/22, nicolas peña <[EMAIL PROTECTED]>: > > Hi Robert, > > I have done several tests and have reached to the conclusion that it is > not possible > to use two viewers at the same time from one

Re: [osg-users] Multiple viewers and one scene

2008-02-22 Thread nicolas peña
Hi Robert, I have done several tests and have reached to the conclusion that it is not possible to use two viewers at the same time from one process. This happens even when they do not share anything and even if I set-up the viewers from different threads. I have done the most simplistic code

Re: [osg-users] Multiple viewers and one scene

2008-02-22 Thread Robert Osfield
Hi Nicolas, Its really hard to know whats going on at your end w.r.t application setup and flow control so advicing on it is easy. In general I can say that sharing a scene between View's is OK within on CompositeViewer as they will Views on the same scene will share the same FrameStamp i.e. ther

[osg-users] Multiple viewers and one scene

2008-02-21 Thread nicolas peña
Hi all, As I need to control the frame rate of my cameras independently, I have set-up a viewer for each one. One camera has to draw in a window and accept user input, while the others should not appear in the screen at all (they have an image attached and send a copy of it to other process).