Hello Robert,

Here is a simplified version of the code with all of the motion tracking and camera movement 
taken out. As the code is right now, my program crashes when calling viewer>done() the 
first time. If I comment out viewer->realize(), the program crashes on the first call to 
viewer->frame(). If I comment out viewer->realize() and viewer->frame() the the 
program runs indefinitely.

First of all, your example calls no OpenGL / GLU / GLUT code itself, so you can remove those headers...

Second of all, there was still an initTracker() call at the beginning of main() I had to comment out.

But after that, even though I don't have your data so it starts up an empty viewer, your code works for me. It doesn't crash.

...
iter: 594
iter: 595
iter: 596
iter: 597
iter: 598

So if it crashes for you, I suspect you have some mixup of release and debug libraries, or you have a mixup of versions of OpenSceneGraph, or something like that. Double- and triple-check your linker settings and dependencies, there is probably something there.

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                    http://whitestar02.dyndns-web.com/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to