Re: [osg-users] Examples and multiple monitors on Mac OS X

2009-06-05 Thread Robert Osfield
Hi Brent,

The OSG by default will query all the available displays and open up
viewer across all these displays.  The OSG is a real-time graphics,
multi-thread, multi-context API that just loves to run to it's full
capacity :-)

You can customize how the examples run by either using the --window x
y width height, the --screen screenNum, or -c viewerconfiguration.cfg
or -c viewconfiguration.view command line options.  The viewer
configuration files can be Producer ones (.cfg) or native osgViewer
(.view) ones, for examples of the later see
OpenSceneGraph/Configuration.

You can also set all this using the env vars such as:

   setenv OSG_SCREEN=1

For full details of options do:

  osgviewer --help
  osgviewer --help-env

In your own apps you can set up the windowing exactly how you want,
there are plenty of examples illustrating this.

As for find paths, set the OSG_FILE_PATH env var to pick up where
you've install OpenSceneGraph-Data.

Robert.

On Fri, Jun 5, 2009 at 12:49 AM, Brent
Gulanowski wrote:
> Hi,
>
> The examples are fullscreen. Strangely, they span multiple monitors, instead 
> of simply using the primary monitor. Perhaps there are some launch arguments 
> I need.
>
> Running from Xcode causes problems, like missing resources, for example with 
> the osgforest.app:
>
>
> Code:
> Creating terrain...Warning: Could not find plugin to read objects from file 
> "Images/lz.rgb".
> done.
> Creating tree locations...done.
> Creating cell subdivision...done.
> Warning: Could not find plugin to read objects from file "Images/tree0.rgba".
> Creating osg::Billboard based forest...Warning: font file "fonts/arial.ttf" 
> not found.
> done.
> Creating double quad based forest...Warning: font file "fonts/arial.ttf" not 
> found.
> done.
> Creating osg::MatrixTransform based forest...Warning: font file 
> "fonts/arial.ttf" not found.
> done.
> Creating OpenGL shader based forest...Warning: font file "fonts/arial.ttf" 
> not found.
> done.
>
>
>
>
> Of course debug builds must be run from Xcode.
>
> There are some other strange aspects of the Xcode project, such as building 
> dSYM files and universal products for the Debug (aka "Development") build 
> configuration, which is unnecessary unless you want to distribute debug 
> builds (which is unusual).
>
> ...
>
> Thank you!
>
> Cheers,
> Brent
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=13544#13544
>
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Examples and multiple monitors on Mac OS X

2009-06-04 Thread Brent Gulanowski
Hi,

The examples are fullscreen. Strangely, they span multiple monitors, instead of 
simply using the primary monitor. Perhaps there are some launch arguments I 
need.

Running from Xcode causes problems, like missing resources, for example with 
the osgforest.app:


Code:
Creating terrain...Warning: Could not find plugin to read objects from file 
"Images/lz.rgb".
done.
Creating tree locations...done.
Creating cell subdivision...done.
Warning: Could not find plugin to read objects from file "Images/tree0.rgba".
Creating osg::Billboard based forest...Warning: font file "fonts/arial.ttf" not 
found.
done.
Creating double quad based forest...Warning: font file "fonts/arial.ttf" not 
found.
done.
Creating osg::MatrixTransform based forest...Warning: font file 
"fonts/arial.ttf" not found.
done.
Creating OpenGL shader based forest...Warning: font file "fonts/arial.ttf" not 
found.
done.




Of course debug builds must be run from Xcode.

There are some other strange aspects of the Xcode project, such as building 
dSYM files and universal products for the Debug (aka "Development") build 
configuration, which is unnecessary unless you want to distribute debug builds 
(which is unusual).

... 

Thank you!

Cheers,
Brent

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





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