cls_FlyCamera - almarklein/visvis GitHub Wiki
Inherits from BaseCamera.
The fly camera provides a fun way to visualise 3D data using an interaction style that resembles a flight sim.
Think of the fly camera as a remote controlled vessel with which you fly trough your data, much like in the classic game 'Descent'.
Interaction
Notice: interacting with this camera might need a bit of practice.
Moving:
- w,a,s,d keys to move forward, backward, left and right
- f and c keys move up and down
- Using SHIFT+RMB, the scale factor can be changed, a lower scale means smaller motions (i.e. more fine-grained control).
Viewing:
- Use the mouse to control the pitch and yaw.
- Alternatively, the pitch and yaw can be changed using the keys i,k,j,l.
- The camera auto-rotates to make the bottom of the vessel point down, manual rolling can be performed using q and e.
- Using the RMB, one can zoom in, like looking through binoculars. This will also make you move slightly faster.
The FlyCamera class implements the following properties:
fov, rotation
The FlyCamera class implements the following methods:
Reset, SetView
Get/set the current field of view (i.e. camera aperture). This value is between 10 and 90.
Get/set the current rotation quaternion.
Reset the view.
Prepare the view for drawing This applies the camera model.