Hi Ole-Morten, On 1/12/07, Ole-Morten Duesund <[EMAIL PROTECTED]> wrote:
Nice! Now it works, I'm missing the usual Producer keybindings for wireframe, statistics and such but I guess they're not available (yet?) in the new osgViewer framework?
The wireframe, stats etc are not default parts of osgViewer::Viewer, they need to be explictly added to the viewer. See my thread on osgviewer. This is deliberate change to make osgViewer::Viewer rather than an incomplete implements, one of the main ideas is to make viewers more incremental in their functionality.
Any idea what exactly caused the problem?
No exact idea. These problems typically come from threading issues, Producer uses quite a few threads to manage the graphics contexts and events, there seems to be occassional problems like this in start up or exit clean. Over the years I've tried to debug this. osgViewer's threading is much more modest - just threading for the graphics contexts when needed, events are threaded, they are simply collected during the main loop. Initially I did get errors like you are see with Producer, but I worked hard to ensure that threading could be started and exited cleanly. Its a much more modest use of threads though so its not such a awkward beast to conquer. Don is revamping Producer so perhaps some of these issues will be resolved their too.
BTW, examples/osgslice now needs to link with osgGA as well. In CVS it currently doesn't.
Curious, osgslice doesn't use osgGA, and the way it uses osgViewer is very decoupled (its only linked in, not used in the code) so I'm surprised by the need for osgGA. I also don't get any problems on my linux machine. What version of gcc are you using? I have 4.0.2 here. Robert. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
