Create camera flyby from path


Purpose
This add-in sample describes how to create a camera fly from path. The tool mimics the out-of-the-box functionality to create a camera fly from path available on the Animations toolbar. The tool creates a Globe Camera animation that moves the camera along a selected feature in a feature class.
The tool allows you to create three types of flybys using the path destination options. You can choose to create a simple flyby where both the observer and target move along the path. The second option allows you to create a camera fly where the observer moves along the path while looking at the current target. The third option allows you to move the target along the path while the observer remains fixed at one location.

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. 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.

  1. Open the Visual Studio solution file.
  2. Build the solution.
  3. Start ArcGlobe.
  4. On the Customize dialog box, choose the Add-In Controls category.
  5. On the Command Items pane, drag the Camera flyby from path onto a toolbar.
  6. To move the globe camera along a path, add a line feature dataset in the globe session. Also, select a line feature using the "Select features" tool. The selected line is the one along which the globe camera will be animated.
  7. Choose the tool.
  8. Choose the options on the Camera Flyby From Path form.
  9. On running the tool, a Globe Camera track gets added to the globe.
  10. An animation is created, which can then be played by clicking Customize, Toolbars, and Animation to open the Animation Toolbar and then clicking on “Open Animation Controls” command

cameraflybyfrompath/frmCameraPath.cs Form file.
cameraflybyfrompath/clsCameraFlyby.cs ICommand implementation to create a camera fly from path.
Download the C# files
frmCameraPath.vb Form file.
clsCameraFlyby.vb ICommand implementation to create a camera fly from path.
Download the VB.NET files

Download the files for all languages




Development licensing Deployment licensing
ArcGIS for Desktop Basic: 3D Analyst ArcGIS for Desktop Basic: 3D Analyst
ArcGIS for Desktop Standard: 3D Analyst ArcGIS for Desktop Standard: 3D Analyst
ArcGIS for Desktop Advanced: 3D Analyst ArcGIS for Desktop Advanced: 3D Analyst