Camera and layer animation in the Globe control

This sample demonstrates how to use camera and layer animation in the GlobeControl by loading a document that contains an animation file or by directly loading an ArcGlobe animation file(*.aga). When a document containing an animation file is loaded into the GlobeControl (using the IGlobeControl.Load3dFile method), you can play the animation for a set amount of time (the duration) or for a number of iterations.
This sample also demonstrates how to loop an animation (cycles). In addition, you can directly load an animation file using the Load Animation File button of the sample (using the IBasicScene.LoadAnimation method). The two radio buttons indicate whether the animation is played for the set duration or for the number of iterations. The cycles text box indicates the number of times the animation plays.
This sample also demonstrates how to use the IGlobeControl.Load3dFile, BasicScene.LoadAnimation, and IAnimationTracks.ApplyTracks methods, as well as the IAnimationTrack.InterpolateObjectProperties property. In addition, it also illustrates how to access and manipulate different keyframes (IKeyframe) of different animation types(IAnimationTrack.AnimationType) in an animation track.

How to use

See How to use ArcGIS samples for help on running the sample.

  1. Run the application.
  2. Click the Load Animation button and select an animation file (.aga).
  3. Click the Play Animation button. The globe animates according to the instructions in the animation file.
  4. Adjust the duration, iteration, or cycle settings as necessary, then repeat Steps 2 and 3.

If you installed the samples feature, you will find the files associated with this sample in <Your Developer Kit install location>\DeveloperKit10.4\Java\Samples\ArcObjects.

globe/ Contains the code to build the user interface (UI) for the sample.
globe/ Contains the swing code to build a panel containing the animation controls. This panel is placed to the south of the Globe control.
globe/ Contains the code to handle events raised by and starts a background thread to play the animation.
globe/ Represents a runnable target that contains the required code to play the animation according to the settings.

Development licensing Deployment licensing
Engine Developer Kit Engine: 3D Analyst
ArcGIS for Desktop Basic: 3D Analyst