[osg-users] How can I create a osgViewer windowed?

1,164 views
Skip to first unread message

Ricardo Ruiz

unread,
Nov 24, 2009, 6:32:24 PM11/24/09
to osg-...@lists.openscenegraph.org
Hi all!

osgViewer starts always in full screen mode. How can I tell it I would like a window or windowed app?

Thanks a lot.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=20302#20302

_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC

unread,
Nov 24, 2009, 6:34:40 PM11/24/09
to osg-...@lists.openscenegraph.org
view->setUpViewInWindow()...

Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC

unread,
Nov 24, 2009, 6:38:23 PM11/24/09
to OpenSceneGraph Users
Sorry...I had suggested doing it programmatically...:(

If you do "osgviewer --help-all", I'm sure it will show you how to do it
from the command line...

-Shayne

Ricardo Ruiz

unread,
Nov 24, 2009, 6:39:52 PM11/24/09
to osg-...@lists.openscenegraph.org
Wonderful!

Thanks a lot.

BTW, is there any way to automatically center that window? or get screen size and window size? Just to let my window nicer. (from OSG, not from Win32 API)

Thanks Tueller.

------------------
Read this topic online here:

http://forum.openscenegraph.org/viewtopic.php?p=20305#20305

Robert Osfield

unread,
Nov 25, 2009, 5:06:48 AM11/25/09
to osg-...@lists.openscenegraph.org
Hi Ricardo,

Have a look at the osgcamera example as it shows how to query display
properties and how to set up windows.

Robert.

Reply all
Reply to author
Forward
0 new messages