Animation in the GlobeControl
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).
The sample also shows how to use the ToolbarControl and TOCControl, which allows the user to search and select Globe documents, interact and navigate with the globe using different tools and commands, and turn layers on and off. The TOCControl and ToolbarControl property pages have been used to set the buddy controls and add the globe commands.
When a document containing an animation file (.aga) is loaded into the GlobeControl (using IGlobeControl:Load3dFile method), the user will be able to 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, the user can directly load an animation file using the Load Animation File command button of the sample (using 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 IGlobeControl:Load3dFile,BasicScene:LoadAnimation, IAnimationTracks:ApplyTracks methods, and IAnimationTrack:InterpolateObjectProperties. In addition, it will also illustrate how to access and manipulate different keyframes (IKeyframe) of different animation types (IAnimationTrack:AnimationType) found in an animation track.
Development licensing
Deployment licensing
Engine Developer Kit
Engine Runtime: 3D
ArcView: 3D Analyst
ArcEditor: 3D Analyst
ArcInfo: 3D Analyst
How to use
See Using the samples for help on compiling, setting up the debugger, and running the sample (either an exe or dll).
If no default document is loaded, open a globe document that contains animation or load the sample animation file (<install location>\ArcGIS\DeveloperKit\SamplesNET\Engine\data\AnimationSample.aga).
After loading a document that contains animation or the sample animation file, run play animation for a certain duration (default 10 seconds) or a no iterations (default 500).
Download the files for all languages
See Also: GlobeControl class IGlobeControl interface