Exercise 5: Working with animations
Imagine that you wish to create an animated sequence showing the flight of an object over a landscape. You've created a TIN and have draped images over it to show the area. You also have some data pertaining to a strange phenomenon that has been occurring in the region. You are interested in displaying all the data in a dynamic way, making an animation to tour points of interest, and showing how you made the surface. You would also like to model the phenomenon by moving a layer in the scene.
The tutorial data has already been assembled in the scene document named Animation.sxd. You will use animation tools in ArcScene to effectively convey the points you want to show.
Data was supplied courtesy of MassGIS, Commonwealth of Massachusetts Executive Office of Environmental Affairs.
In this exercise, you will play an existing animation in an ArcScene document, Final Animation_A.sxd, and perform the tasks typically used to create the animation. Note that the majority of steps you'll perform in ArcScene to create the animation are also applicable in ArcGlobe.
Opening the Final Animation_A scene document
In this section, you'll play an animation that demonstrates some effects you can create when you animate a scene.
- Start ArcScene by clicking Start > All Programs > ArcGIS > ArcScene 10.
- On the ArcScene - Getting Started dialog box, click Existing Scenes --> Browse for more.
- Navigate to the Exercise5 folder and double-click Final Animation_A ArcScene document.
Playing the scene’s animation
To view a scene's animation, you need to have the Animation toolbar accessible in the view.
- Click Customize, point to Toolbars, and click Animation.
- Click the Open Animation Controls button.
- Click the Play button.
Opening the Animation scene document
- In ArcScene, click File and click Open.
- Navigate to the Exercise5 folder and double-click Animation ArcScene document.
In this section, you'll use the animation tools to capture keyframes, import tracks, play back your animations, and save them to a scene document.
You will use three types of keyframes to capture building your animation. The first is a camera keyframe. A camera keyframe is a snapshot of the view you see in a scene. The second, a layer keyframe, is a snapshot of a layer's properties. The third type is a scene keyframe, which stores properties of a scene. In this section, you will create a simple animation from a set of camera keyframes.
Capturing perspective views as keyframes to make an animation
The simplest way to make animations is by capturing views to be stored as keyframes. The captured views are snapshots of camera perspectives in a scene at a particular time. The most fundamental element of an animation is a keyframe. Keyframes are used as snapshots to interpolate in between a track. You'll create a series of keyframes to make a camera track that will show an animation between points of interest in your study area.
- Click the Capture View button to create a camera keyframe showing the full extent of the scene.
- Right-click UFO.lyr and click Zoom To Layer.
- Click the Capture View button to create a camera keyframe showing the UFO layer.
- Click the Full Extent button to view all the data.
- Click Zoom In on the Tools toolbar and zoom to Goss Heights, located near the center of your view.
- Click the Capture View button to create a camera keyframe of Goss Heights.
- Click the Full Extent button.
- Zoom to Littleville Lake using the Zoom In tool again.
- Click the Capture View button to capture a view of Littleville Lake.
- Click the Full Extent button.
The captured views you just made are stored as a set of camera keyframes in a camera track. When the track is played, it shows a smooth animation between the keyframes. Next, you'll play your animation track.
Playing back your animation
You will play back animations using simple tools that resemble the controls of a movie player.
- Click the Open Animation Controls button.
- Click and hold the top bar of the Animation toolbar and drag it to the upper-right corner of the scene so it won't block your view of the tools or data.
- Click the Play button.
Clearing an animation
If you want to start over, you can erase all the tracks you created. In this section, you'll remove the tracks you just created so you can improve your animation.
- Click Animation and click Clear Animation.
Recording navigation
Another way to create a camera track for an animation is to record in real time while you navigate in a scene. In this section, you will record your view of the scene while you navigate using the Fly tool.
- Click the Fly tool.
- Click the Record button to start recording your navigation.
- Click once in the center of the scene to activate the Fly tool. You start flying by entering into hovering mode.
- Click once more to begin flying through the scene.
- Press ESC to stop flying.
- Click the Stop button to finish recording.
- Click the Full Extent button.
- Click the Play button to see the animation you recorded.
- Click Animation and click Clear Animation.
Making a camera track from 3D bookmarks
In the previous sections, you navigated in a scene and created keyframes to build a camera track. Another way to create the keyframes for a camera track is to import bookmarked perspective views of a scene. In this section, you'll create keyframes from 3D bookmarks.
- Click Animation and click Create Keyframe.
- Click the Type drop-down arrow and choose Camera.
- Click New to create a new track.
- Click Create.
- Check Import from bookmark.
- Click the Import from bookmark drop-down arrow and click Goss Heights.
- Click Create to make the second keyframe in your track.
- Click the Import from bookmark drop-down arrow and choose LittleVilleDam.
- Click Create to import this bookmark as a keyframe.
- Click the Import from bookmark drop-down arrow and click Knightville.
- Click Create to make the Knightville keyframe.
- Click the Import from bookmark drop-down arrow once more and click Overview.
- Click Create to import a keyframe showing all the data.
- Click Close.
- Click the Play button.
Switching the visibility between layers using a group animation
Now that you have explored some of the ways to create an animated camera track from keyframes, you’ll learn how to change the way layers in a scene are displayed during animation. In this section, you will switch the layer that is draped over the terrain model to show different ways of representing the terrain.
- Click Animation and click Create Group Animation.
- Select the group layer named Image Data.
- Slide the Fading transition bar about a quarter of the way to the right.
- Check Blend layers when fading.
- Click OK.
- Click the Play button to watch your animation.
Using the Animation Manager to disable a track from playing
The Animation Manager allows you to control many properties of an animation. In this section, you'll use the Animation Manager to stop a camera track from playing.
- Click Animation and click Animation Manager.
- Click the Tracks tab.
- Uncheck Camera track 1.
- Click Close.
- Click the Play button.
Using Animation Controls to adjust the playback duration
- Click Options.
- Type 10 in the By duration text box.
- Click Options again to close this portion of the dialog box.
- Click the Play button.
Moving an object along a predefined path
One of the things an animation allows you to do is move an object through a scene. You can add a layer containing a model vehicle and move it through the scene along a specified track. Note that this functionality is only available in ArcScene.
You can choose to move a layer along a selected line feature or graphic. The scene contains a graphic layer with a model UFO that was created using Visual Basic code. In the next set of steps, you'll fly the model UFO along a shapefile that shows its flight path.
- Turn on the Flight Path layer in the table of contents by checking it.
- Right-click Flight Path, point to Selection, then click Select All.
- You can also use the Select Features tool to select the path you want to use if it is constructed from a single selected line feature. Use the Select Graphics tool if your path is constructed from a line graphic.
- Click Animation and click Move Layer along Path.
- Click the Layer drop-down arrow and click UFO.lyr.
- Type a Vertical offset of 75. This will make the object appear to fly above the surface.
- Click Orientation Settings to modify the layer's position while it's animated.
- Click Calculate from path to calculate the layer's roll based on the path's shape.
- Type 1 as a scale factor.
- Click OK.
- Click Import to import the selected line as a flight path.
- Click Animation and click Animation Manager.
- Click the Tracks tab.
- Uncheck Group animation (Mesh).
- Uncheck Group animation (Photo.sid).
- Uncheck Group animation (Topo.sid).
- Click Close.
- Uncheck Flight Path to turn off the visibility of this layer.
- Click the Play button.
Creating a camera flyby from a path
You can move a camera along a flight path in the same way you just moved a layer along a path. Next, you'll combine the track you made in the last step with one that will point the camera at the UFO as it flies.
- Check Flight Path, make sure the line you chose for your path is still selected, then uncheck Flight Path.
- Click Bookmarks, then click UFO.
- Click Animation and click Create Flyby from Path.
- Click the third path destination option.
- Click Import.
- Click the Play button.
- Uncheck the Topo.sid check box to make the orthophoto visible.
- Click Options.
- Type 30 in the Duration text box.
- Click Options to minimize the dialog box.
- Click the Play button.
Saving an animation in a scene document
You can save animation tracks in a scene document. In the next step, you'll save the animation you made in a scene document.
- Click File and click Save As.
- In the File name text box, type Animation_A.
- Click Save.
- Click File in ArcScene and click Exit.
In this exercise, you learned how to create and save simple animations that help you better visualize 3D data. This exercise focused on creating animations in ArcScene, but the majority of steps can also be performed in ArcGlobe.
Note that the Animation toolbar is also available in ArcMap, meaning that animations can also be created in this application. A 3D Analyst license is not required to animate data in ArcMap. You can capture the view to create a map view track (the ArcMap equivalent of a camera track in ArcScene or ArcGlobe) that captures the display extent. This allows you to create an animation where you are zooming in and out and panning the display. You can also create a map layer track (the ArcMap equivalent to the layer track in ArcScene or ArcGlobe) to create an animation where you are altering layer visibility or transparency.
As you can see from this exercise, depending on the type of animation you want to create there are different ways to build animations in ArcGIS. Depending on the application (ArcScene, ArcGlobe, or ArcMap) you are working in, some of the tools may not be available on the Animation toolbar. For example, the Move Layer along Path option is available in ArcScene only. Explore the Animation help files located the Mapping and Visualization section of the ArcGIS Help if you want to learn more about animation concepts.
In the next exercise, you'll learn some basic fundamentals of working with ArcGlobe.