From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield
Sent: Tuesday, May 16, 2006 1:56 AM
To: osg users
Subject: Re: [osg-users] Application camera control?
The OSG doens't have specific functionality you are looking for, but its designed to be extensible, so in the case of camera manipulators you can just write your own, this can be entirely driven from the keyboard if you wish, it just have your own application events drive it. The osgimposter example provides an example of writing your own manipulator.
I'm wondering how to allow an application to steer the camera to a particular position and orientation while still keeping mouse and keyboard events as the primary mode of navigation.
This could falls within the scope of the matrix manipulator's duties. In my case, I'm using the TerrainManipulator, and besides handling mouse events, it would be nice if it would handle events sent from the application (eg "go to position A and look at position B"). Since it is aware of the terrain-centric nature of the scene, it could smoothly transition to the given spot without going through the ground - say flying there instead, or, as Google Earth does, going way up into space and then coming back down in the desired location. It could continue on such a course unless preempted by a mouse event or another application event.
I've looked through various osg code and documentation and haven't found this sort of capability. If it is there and I have missed it, can anyone help me find and use it? Otherwise, I would be interested in writing it, and welcome input on how best to design it.
Thanks!
Charlie
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
