Re: [osg-users] switch between two camera

2009-05-08 Thread J.P. Delport
Hi, Allen Saucier wrote: Hi all, After reading this thread, i think i'm in the right place. Please let me know if I'm not w/my question. I've got one scene, two graphics windows each with a different camera and I want to be able to manipulate the camera in each window separately. Right

Re: [osg-users] switch between two camera

2009-05-08 Thread Robert Osfield
On Thu, May 7, 2009 at 11:20 PM, Allen Saucier allen.sauc...@itt.com wrote: Would y'all mind pointing me in the right direction to be able to have two views into a single scene and be able independently control the cameras in each? Well convert your language above into classes, you'll have

Re: [osg-users] switch between two camera

2009-05-08 Thread Allen Saucier
Hi, Thanks everyone! I'll try these suggestions and see where they lead. Now that the OSG .org site is backup, I can to look @ the composite viewer example! Yeha. This group is great! :D ... Thank you! Cheers, Allen -- Read this topic online here:

Re: [osg-users] switch between two camera

2009-05-08 Thread Robert Osfield
On Fri, May 8, 2009 at 2:21 PM, Allen Saucier allen.sauc...@itt.com wrote: Hi, Thanks everyone!  I'll try these suggestions and see where they lead.  Now that the OSG .org site is backup, I can to look @ the composite viewer example! Yeha. The osgcompositeviewer is part of the OSG source

Re: [osg-users] switch between two camera

2009-05-07 Thread Allen Saucier
Hi all, After reading this thread, i think i'm in the right place. Please let me know if I'm not w/my question. I've got one scene, two graphics windows each with a different camera and I want to be able to manipulate the camera in each window separately. Right now, when I move one camera

Re: [osg-users] switch between two camera

2009-05-07 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
-Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Allen Saucier Sent: Thursday, May 07, 2009 4:21 PM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] switch between two camera Hi all, After reading

Re: [osg-users] switch between two camera

2009-03-20 Thread Robert Osfield
HI Ben, On Fri, Mar 20, 2009 at 9:48 AM, Ben ben.poul...@gmail.com wrote: Hi, if I have understood , I must design my application with a CompositeViewer in order to use two scene, each in it's own view. I have a 3D classic view and a map vue. How can I display only one at once using

Re: [osg-users] switch between two camera

2009-03-20 Thread Lingyun Yu
Hi, Ben, I use something like camera0-setNodeMask(0X); camera1-setNodeMask(0); to enable camera0 but disable camera1. I hope it helps. Yun On Fri, Mar 20, 2009 at 10:48 AM, Ben ben.poul...@gmail.com wrote: Hi, if I have understood , I must design my

Re: [osg-users] switch between two camera

2009-03-20 Thread Ben
I try to use nodemask but doesn't work. Id do this : Code: osgViewer::CompositeViewer viewer; osgViewer::GraphicsWindowEmbedded* gw = new osgViewer::GraphicsWindowEmbedded; osgViewer::View* vue2D = new osgViewer::View; osgViewer::View* vue3D = new osgViewer::View; viewer.addView(vue2D);

Re: [osg-users] switch between two camera

2009-03-20 Thread Lingyun Yu
Hi ben, where did you put your code? I put them in the updatecallback function, that's why mine will change every frame. Yun 2009/3/20 Ben ben.poul...@gmail.com benbao wrote: I try to use nodemask but doesn't work. Id do this : Code: osgViewer::CompositeViewer viewer;

Re: [osg-users] switch between two camera

2009-03-17 Thread Robert Osfield
Hi Yin, For scene graph related render to texture work use a Camera in the scene graph. NodeMask and switches can be used. Robert. 2009/3/16 Lingyun Yu lingyun.yu...@gmail.com Hi Robert, I also meet the same problem, I have 128 snapshots of particles, and I want to use those 128 shapshots

Re: [osg-users] switch between two camera

2009-03-17 Thread Robert Osfield
Hi Peter, On Tue, Mar 17, 2009 at 12:57 PM, Peter Amstutz peter.amst...@tseboston.com wrote: 'll take a look at this. The (doxygen) documentation is a bit thin here, so I wasn't sure what exactly CompositeViewer was for -- I assumed it was for rendering multiple subwindows of a single main

Re: [osg-users] switch between two camera

2009-03-17 Thread Peter Amstutz
Robert Osfield wrote: Hi Peter, Benoit et, On Mon, Mar 16, 2009 at 8:15 PM, Peter Amstutz peter.amst...@tseboston.com mailto:peter.amst...@tseboston.com wrote: The way I handled this in my application was to create multiple instances of osgViewer::Viewer with a separate camera for

Re: [osg-users] switch between two camera

2009-03-16 Thread Robert Osfield
Hi Peter, Benoit et, On Mon, Mar 16, 2009 at 8:15 PM, Peter Amstutz peter.amst...@tseboston.comwrote: The way I handled this in my application was to create multiple instances of osgViewer::Viewer with a separate camera for each view but all bound to the same output window. On each render

Re: [osg-users] switch between two camera

2009-03-16 Thread Lingyun Yu
Hi Robert, I also meet the same problem, I have 128 snapshots of particles, and I want to use those 128 shapshots to make an real time animation. First thing I tried, was using a update callback function and bind it on my geode, everytime I just updated all positions of particles. But obviously

Re: [osg-users] switch between two camera

2009-03-13 Thread Ben
thank's, but I don't see how to use osg::CameraViews, does somebody have a little example?? I will try to specify more what I want to do. I have one scene to render with 2 differents views, one as a FPS 3D vue, and one as 2D vue (the camera is on top with an orthografic vue). Each camera has

Re: [osg-users] switch between two camera

2009-03-12 Thread Roland Smeenk
benbao wrote: what is the best way to switch between 2 cameras to render? Each camera corresponding to a point of view, I need to render only one camera at once. You can add different osg::CameraViews to a scene and use the CameraViewSwitchManipulator to toggle between predefined

[osg-users] switch between two camera

2009-03-11 Thread Benoît Poulard
Hi what is the best way to switch between 2 cameras to render? Each camera corresponding to a point of view, I need to render only one camera at once. thanks ___ osg-users mailing list osg-users@lists.openscenegraph.org