How to use
See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample.
Data has been provided for your use with this sample. It can be found at
<Your ArcGIS Developer Kit Install directory>/Samples/data/Globe/AnimationSample.aga.
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.
- Open a globe document that contains animation or load the sample animation file (from the provided data folder).
- Run play animation for a certain duration (default 10 seconds) or a number of iterations (default 500).
Additional information
When a document containing an animation file (.aga) is loaded into the GlobeControl (using the IGlobeControl.Load3dFile method), you can play the animation for the set amount of time (duration) or for a number of iterations. The sample also demonstrates how to loop an animation (cycles). In addition, you can directly load an animation file using the Load Animation File command button of the sample (using the IBasicScene.LoadAnimation method).
The two radio buttons indicate whether the animation will be played for the set duration or for the number of iterations. The Cycles text box indicates the number of times the animation plays. The sample demonstrates how to use the IGlobeControl.Load3dFile, IBasicScene.LoadAnimation, IAnimationTracks.ApplyTracks, and IAnimationTrack.InterpolateObjectProperties methods. In addition, the sample also illustrates how to access and manipulate different keyframes (IKeyframe) of different animation types (IAnimationTrack.AnimationType) in an animation track.
AssemblyInfo.cs | Assembly information. |
Animation.cs | Form file. |
AssemblyInfo.vb | Assembly information. |
Animation.vb | Form file. |
Download the files for all languages
See Also:
GlobeControl classIGlobeControl interface
Development licensing | Deployment licensing |
---|---|
Engine Developer Kit | Engine Runtime: 3D |
ArcView: 3D Analyst | |
ArcEditor: 3D Analyst | |
ArcInfo: 3D Analyst |