Hi Robert,

Thanks, I'm now porting to the osgViewer::Viewer, All goes really
easy, but I miss a way to access to the SceneView, or a way to
change the default CullVisitor, in our system we have inherited from
the CullVisitor to add some extra functionality. And I don't find an
easy path to change it in the current osgViewer::Viewer.

Thanks
Rafa.


On 6/3/07, Robert Osfield <[EMAIL PROTECTED]> wrote:
Hi Rafa,

On 6/2/07, Rafa Gaitan <[EMAIL PROTECTED]> wrote:
> That's really good news, I will do a test with our Viewer in Java, and
> I'll comment you how it works!

This morning I check in a convenience method into osgViewer::Viewer to help out:


         /** Convenience method for setting up the viewer so it can be
used embedded in an external managed window.
          * Returns the GraphicsWindowEmbedded that can be used by
applications to pass in events to the viewer. */
        virtual GraphicsWindowEmbedded*
setUpViewerAsEmbeddedInWindow(int x, int y, int width, int height);

Have a look at the osgviewerGLUT and osgviewerSDL examples to see it
can be used.  The basic idea is that you contruct the viewer, use the
above method to create the GraphicsWindowEmbedded with you then use to
pass in events to via the GraphicsWindow's EventQueue.  Note there is
a resized method that needs to be called as well on the window so it
can resize all the camera viewports and camera projection matrices.

Robert.
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/



--
Rafael Gaitán Linares
Instituto de Automática e Informática Industrial  http://www.ai2.upv.es
Ciudad Politécnica de la Innovación
Universidad Politécnica de Valencia
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to