On 6/21/07, Marcus Fritzen <[EMAIL PROTECTED]> wrote:
Thank you Robert, so I decided to tried it with the CameraManipulator as
you said, but when I call
osgViewer::Viewer viewer;
viewer.getCameraManipulator()->setHomePosition( eye, center, up );
my program crashs, also when I want to get the home position. Is there
no camera manipulator in the normal viewer?
A default constructed Viewer deosn't have a CameraManipulator attached
yet so getCameraManipulator() will return NULL, so its not surprising
it crashes :-)
osgViewer::Viewer viewer;
viewer.addCameraManipulator(new osg::TrackballManipulator());
viewer.getCameraManipulator()->setHomePosition(...);
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/