Camera and layer animation in the Globe control


Purpose 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 key frames (IKeyframe) of different animation types(IAnimationTrack.AnimationType) in an animation track.

How to use

See How to use ArcGIS samples for help 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, and repeat steps 2 and 3.





Development licensing Deployment licensing
Engine Developer Kit Engine Runtime: 3D
ArcView: 3D Analyst