Robert,

Is there a method for switching the app from fullscreen to windowed and back 
again with an osgViewer?

-Brad

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield
Sent: Saturday, April 21, 2007 5:36 AM
To: osg users
Subject: Re: [osg-users] My own renderer

Hi Remi,

I'd recommend learning and using osgViewer rather than osgProducer.
osgViewer offers all the functionality of osgProducer plus much more
besides, and is provides more direct access to core OSG classes.
osgViewer is only available in the SVN version of the OSG though.  In
SVN osgProducer has now moved out of the core OSG into its own
separate distribution.

Getting the camera from osgViewer::Viewer is as simple as:

  viewer.getCamera()

Getting project matrix etc.

  osg::Matrix proj = viewer.getCamera()->getProjectionMatrix();
  osg::Matrix view = viewer.getCamera()->getViewMatrix();

Robert.

On 4/17/07, Chaignon, Remi <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi all,
>
>  I'd like to use OpenSceneGraph within my renderer, but I'm a beginner so
> I'm having some trouble.
>  I've seen the example in OSGWiki
> (http://www.openscenegraph.com/osgwiki/pmwiki.php/FAQ/FAQ#faq_34),
> but I need to use osgProducer::Viewer and not osgUtil::SceneView as in the
> example.
>  So I'm facing trouble when I want to set up the viewport and the projection
> matrix. I don't find such functions in osgProducer::Viewer.
>
>  Can someone help me?
>
>  Thanks,
>
>  Rémi.
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to