56b384d880
I found very useful to have a control whether osgView::setCameraManipulator does or does not reset camera to home position. I extended method signature as follows: void setCameraManipulator(osgGA::MatrixManipulator* manipulator, bool resetPosition = true); keeping the current usage intact (default parameter), while enabling user to disable the position reset. That can be useful in the situation when manipulator position was already loaded, for example from a file (user specification), or defined any other way, while we do not want to be reset to home position. Other usability is usage of two manipulators in a modeling program (orbiting around the model, walking on the model) and changing between them while we want to preserve the position of a camera in the change. Games may benefit from it as well when we change from user-defined helicopter manipulator to soldier manipulator because the user escaped the helicopter. The camera will change manipulator but the position is expected to be kept in the transition (provided that user makes the state transition between the two manipulators himself). " |
||
---|---|---|
.. | ||
api | ||
CompositeViewer | ||
Export | ||
GraphicsWindow | ||
Renderer | ||
Scene | ||
Version | ||
View | ||
Viewer | ||
ViewerBase | ||
ViewerEventHandlers |