[osg-users] Switch node, and multiple views

2011-09-26 Thread Lars Karlsson
Hi all, I have a scene graph containing a switch node (osg::Switch) having 4 children. What would be the best way to render this scene graph in 4 different views/viewports, with each child (attached under the osg::Switch) rendered in its own view? Thanks!

Re: [osg-users] Switch node, and multiple views

2011-09-26 Thread Lars Karlsson
Hi Robert, Hi all, I have a scene graph containing a switch node (osg::Switch) having 4 children. What would be the best way to render this scene graph in 4 different views/viewports, with each child (attached under the osg::Switch) rendered in its own view? Thanks! Is it just one

Re: [osg-users] Switch node, and multiple views

2011-09-26 Thread Lars Karlsson
@lists.openscenegraph.org Date: Monday, September 26, 2011, 10:56 AM Hi Lars, On 26/09/11 11:30 , Lars Karlsson wrote: Yes, I'd like to render one single scenegraph, however four times DIFFERENTLY (i.e. in four different views), and of course simultaneously. ... I looked quickly into TraversalMask

Re: [osg-users] Switch node, and multiple views

2011-09-26 Thread Lars Karlsson
Hi Farshid, Interesting, thank you for the pointer. Lars Hi Lars, On Mon, Sep 26, 2011 at 11:58 AM, Lars Karlsson klars3...@yahoo.com wrote: Any ideas or pointers as of how to architect this in OSG? Thank you. I've accomplished the same thing you are trying to do

[osg-users] Double-click events in AdapterWidget / OSGQtWidget

2011-09-26 Thread Lars Karlsson
Hi, I managed to modify AdapterWidget : public QGLWidget so that it recognizes double-click events as well, by adding the associated protected method virtual void mouseDoubleClickEvent( QMouseEvent* event ). However, whenever I double click within the OSGQtWidget (which inherits public

[osg-users] Double-click events in AdapterWidget / OSGQtWidget

2011-09-26 Thread Lars Karlsson
Hi, I managed to modify AdapterWidget : public QGLWidget so that it recognizes double-click events as well, by adding the associated protected method virtual void mouseDoubleClickEvent( QMouseEvent* event ). However, whenever I double click within the OSGQtWidget (which inherits public

[osg-users] Animating large time-stamped series of data?

2009-06-11 Thread Lars Karlsson
Hi all, what would be the best approach to animate huge time-stamped series of data in OSG? The data is in the format: (t0, x,y,z) (t1, x,y,z) (t2, x,y,z) ... I have hundreds of thousands of these tuples in a typical input file. The tuples themselves were generated using a

[osg-users] Multi-pass rendering

2008-05-25 Thread Lars Karlsson
Hi, In my application, I have to perform the following operations: 1) render the scene into buffer A, using fixed GL pipeline 2) render the scene again into buffer B, using some shaders 3) render the scene again into the color framebuffer, using some shaders 4) superimpose (i.e. lay over)

Re: [osg-users] Multi-pass rendering

2008-05-25 Thread Lars Karlsson
Robert, I'll start with the samples you mentioned. Thanks, Lars Hi Lars, The OSG support multi-pass, multi-stage rendering pretty thoroughly. There are plenty of examples that use various combinations of multi-pass. For starters have a look at the osgprerender, osgprerendercubemap,

[osg-users] Item buffer for lines in OSG

2008-05-22 Thread Lars Karlsson
Hi, apologies for a relatively long post I have an old OpenGL application which uses a so-called item buffer for lines. This buffer is based on the idea to associate, upon loading, unique IDs to all the lines in the 3D model, then (on each frame) to: - render all these lines (each with a