Create and play animations in a globe


Purpose
This sample describes how to create, play, load, and save animations in a globe in ArcGlobe or GlobeControl. The functionality in this sample is available in two tools: Create and save animations and Animation Controls.
 
With the Create and save animations tool, you can create simple camera animations by capturing different perspective views to a camera animation track. This tool also allows you to save and load an animation to an ArcGlobe animation file (*.aga).
 
The Animation Controls tool allows you to play animations based on the animation duration. The animation can also be played based on the play interval or on the looping options (play forward, play reverse, loop forward, and loop forward and reverse).

How to use

See How to use ArcGIS samples for help on running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

Create an animation
  1. Run the sample.
  2. Navigate the globe using the Navigation tool, and click the Capture View button at different locations as you navigate.
  3. Click the Play Animation button. This animates the globe along the path you navigated in the previous step.

Save the animation
  1. Click the ellipses button to specify the file in which to save the animation.
  2. Click Save. The animation you created is saved as a .aga file.

Load additional animations
  1. Click the Load Animation button on the Load Animation tab and browse to an animation (.aga) file.
  2. Click the Play Animation button to animate the globe.


Download the files for Java
globe/CreateAndPlayApplication.java Contains the code to build the user interface for the sample.
globe/AnimationPanel.java Contains the swing code to build a panel containing the animation controls. This panel is placed to the west of the Globe control.
globe/AnimationPanelActionListener.java Contains the code to handle events raised by AnimationPanel.java and delegates to AnimationUtil.java to create, load, save, and play the animations.
globe/AnimationUtil.java Contains the ArcObjects code to create, load, save, and play animations.




Development licensing Deployment licensing
Engine Developer Kit Engine Runtime