Hi All,

I am the majority the way through porting the OSG examples across to
use osgViewer, but I'm leaving the potentially biggest till last - the
osgviewer application!

I can actually get the basic functionality viewer working with three
lines of code - bringing up a multi-threaded, multi-screen viewer is
pretty easy with osgViewer.  The task become bigger once you dig a bit
deeper into what the osgProducer::Viewer class does for you by default
- and compare this to what osgViewer::Viewer provides for you by
default.

osgProducer::Viewer development ended up going down the route of
integrating a wide range of functionality - the big areas were:

  statistics
  state manipulation
  saving to file
  multiple camera manipulator selectable from a key press
  escape key sets done

If you didn't want these then you'd have to switch them off via the
Viewer::setUpViewer(uint optionsMask).

I have gone a different route with osgViewer::Viewer, it comes with
none of the above, not even a camera manipulator.  The only exceptions
are the default of escape key sets done, and the run method that
checks to see if any camera manipulator is present, if not it
automatically sets a trackball manipulator.

I don't plan to add anything more in terms of default user
functionality, as this I believe is really in the domain of the
application program - they should add to the viewer what they require,
perhaps for pre-built components, but the basic Viewer should be
pretty minimal.  At least thats the philosophy behind the design.

Now osgviewer is an app that I have used a lot for testing purposes
and model investigation purposes through the years.  Facilities likes
stats, state manipulation and multiple cameras are all pretty useful
tools.  So I'd like to port osgviewer across to osgViewer::Viewer, and
add these items one by one.

I am curious what functionality you'd like to see in the port
osgviewer, and what functionality if any you could do without, at
least initially ;-)

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

Reply via email to