Home
Categories
Dictionnary
Download
Project Details
Changes Log
Who We Are
FAQ
License

Camera 3D


    1  Main Camera modes
    2  Animation transitions and interactions
    3  Transition from 2D to 3D
    4  Following modes
       4.1  Followed trajectory mode
       4.2  Camera AC mode
       4.3  Feature: Show most of Trajectory
    5  Camera Events
    6  Look At Request
    7  Possible simplification of camera coordinates
    8  See also

The camera is used to parameter the 3d View. You can insert multiple A661_CAMERA_3D in the maps Maps 3D Environment, however only one Camera is active at any moment.
The Camera widget hold all the characteristics relative to the point of view of the Map3D Widget.
Note about field of view: JavaFX implements only define one axis (vertical of horizontal) at the same time.

Main Camera modes

Cameras have two main modes:

Animation transitions and interactions

The JavaFX renderer implements some animation transitions when camera location change. It supports zoom, drag translation and scroll events. Some attributes defined in the camera widget allow you to constraint all those interactions. The zoom support different levels of zoom that can be defined in them.

Transition from 2D to 3D

In look At mode, when the camera elevation is near the camera Max Elevation Allowed, there is a transition to 2D. (elevation is at 90') The 2D effect is obtains by placing the camera at a very big distance and changing his field of view to make illusion that the camera hasn't moved.

Following modes

Followed trajectory mode

The attribute CameraTrajectoryID is used to specify which trajectory you want to follow. You indicate a mapList ID. Only one trajectory must be in the list. Yet, only the ribbon (see Ribbon Start 3D code) support drag on trajectory. For remove the following of the trajectory you must set the ID to 0 (default value).

Camera AC mode

The AC mode make the camera to center on the aircraft and following it automatically when moving. This done if you update the aircraft coordinates of the maps3D Widget. The bearing of the camera in this case can be adapt to correspond to the different between the aircraft orientation and the camera. This a Work to do!

Feature: Show most of Trajectory

In the AC mode or the followed trajectory mode, there also a feature not developped yet. This feature would make the camera showing automatically the maximum of the trajectory planned from the current point.

Camera Events

      A661_EVT_CAMERA_LOCATION_UPDATED: notify the camera location
      A661_EVT_CAMERA_ROTATION_UPDATED: notify the camera rotation
      A661_EVT_CAMERA_DISTANCE: send notify camera distance

Look At Request

Some attributes of the camera are used to request to look at a point from the current position camera. It's work in any mode, the camera stay to his position but rotate on itself to centering on the request point.

Possible simplification of camera coordinates

For now, the CameraLat, CameraLon, CameraAlt don't define the same elements between the A661_LOOK_AT and the A661_CAMERA_DIRECTION mode. In Look At, it defines the lookedAt point, wheras in direction mode it defines the camera location. We can imagine other parameters which can always signify the same thing:

See Also


Category: maps3d Category: dev Category: user

Copyright 2016 Dassault Aviation. All Rights Reserved. Documentation and source under the GPL v2 licence

Project Web Hosted by SourceForge.net Copyright 1999-2010 - Geeknet, Inc., All Rights Reserved About - Legal - Help