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 the following tools:
  • Create and save animations—Allows you to 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).
  • Animation Controls—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.

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.

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/CreateAndPlayApplication.java Contains the code to build the user interface (UI) 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