Yeah, it's working ;) Thank you for your great support. You and all are
doing a great job, but if someone else will read this, it should be:
viewer.setCameraManipulator(new osgGA::TrackballManipulator()); instead of
viewer.addCameraManipulator(new osg::TrackballManipulator());
Robert Osfield schrieb:
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/
--
----------------------------------------------------------------
Marcus Fritzen E-mail: [EMAIL PROTECTED]
University Koblenz Mobil: +491786867360
Triererstr. 105, 56072 Koblenz,
HIWI FB4 Herr Jackel
----------------------------------------------------------------
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/