Part 4: Movies and Visual Data Files

STK Pro, STK Premium (Air), STK Premium (Space), or STK Enterprise
You can obtain the necessary licenses for this tutorial by contacting AGI Support at support@agi.com or 1-800-924-7244.

The results of the tutorial may vary depending on the user settings and data enabled (online operations, terrain server, dynamic Earth data, etc.). It is acceptable to have different results.

Capabilities covered

This lesson covers the following STK Capabilities:

  • STK Pro

Problem Statement

Engineers and operators often need resources to prepare visual presentations for briefings, talks, speeches and demonstrations. In this scenario, an aircraft is flying an important mission that you wish to simulate using a video and an STK Visual Data File.

Solution

Upon completion of this tutorial, you will learn how to:

  • Create a simple movie that can be embedded in a PowerPoint presentation or played for an audience.
  • Convert an STK scenario into a visual data file (VDF).
  • Display the VDF in STK Viewer, which does not require an STK license.
  • Create a first-rate briefing experience for both the presenter and the audience.

What you will learn

Upon completion of this tutorial, you will be able to:

  • Make movies with STK
  • Create Visual Data Files
  • Use STK Viewer

Video guidance

Watch the following video. Then follow the steps below, which incorporate the systems and missions you work on (sample inputs provided).

Creating a new scenario

Create a new scenario.

  1. Launch STK ().
  2. Click Create a Scenarioin the Welcome to STK dialog box.
  3. Enter the following in the STK: New Scenario Wizard:
  4. Option Value
    Name STK_Movies_VDFs
    Location Default
    Start 1 Mar 2023 23:00:00.000
    Stop + 4 hrs
  5. When you finish, click OK.
  6. Click Save () once the scenario loads. A folder with the same name as your scenario is created for you in the location specified above.
  7. Verify the scenario name and location and click Save.

Save () often during this lesson!

Post-typhoon aerial photography flight route

You will simulate an aircraft's flight route across Japanese airspace. Your aircraft will fly over the following islands and cities in the order shown:

  • Naha, Okinawa
  • Amami Oshima, Kagoshima
  • Minamidaito, Okinawa
  • Back to Naha, Okinawa

Inserting Naha Airport as a Place object

  1. Select Place () in the Insert STK Objects Tool.
  2. Select the Search by Address () method.
  3. The Insert by Address option requires an internet connection. If you do not have an internet connection, you can select the Define Properties option and set the lat/lon manually.

  4. Click Insert...
  5. Type Naha Airport in the Enter an address or other search criteria below field in the STK: Insert by Address dialog box.
  6. Select Naha Airport, Japan (latitude 26.19583, longitude 127.64583).
  7. Click Insert Place(s).

Inserting Amami Oshima as a Place object

  1. Type Amami in the Enter an address or other search criteria below field.
  2. Select Amami, Japan (latitude 28.37724 longitude 129.49374).
  3. Click Insert Place(s).

Inserting Minamidaito as a Place object

  1. Type Minamidaito in the Enter an address or other search criteria below field.
  2. Select Minamidaito, Japan (latitude 25.82889 longitude 131.23187).
  3. Click Insert Place(s).
  4. Click Close to close the STK: Insert by Address dialog box.

Using the Label Declutter option

Label Declutter moves labels away from the central body and towards the viewer, keeping the labels from being obscured by the terrain.

  1. Click Properties () in the 3D Window Defaults tool bar.
  2. Select the Details page when the Properties Browser opens.
  3. Select the Enable check box in the Label Declutter frame.
  4. Click OK to accept your change and to close the Properties Browser.

Inserting an Aircraft object

You will insert an Aircraft () object. Adjust the altitude, speed, turn radius, and attitude.

  1. Insert an Aircraft () object using the Insert Default () method.
  2. Right-click Aircraft1 () in the Object Browser.
  3. Select Rename.
  4. Rename Aircraft1 () to PhotoMission.
  5. Bring the 2D Graphics window to the front.
  6. Maximize the 2D Graphics window.
  7. Zoom in to the 2D Graphics window so that all three Place () objects are visible and centered.

Maximized View of Islands

Modifying the Aircraft object's properties

  1. Right-click PhotoMission () in the Object Browser.
  2. Select Properties ().
  3. Select the Basic - Route page when the Properties Browser opens.
  4. Open the Reference drop-down menu in the Altitude Reference frame.
  5. Select MSL (Mean Sea Level).
  6. Bring the 2D Graphics window to the front by clicking the 2D Graphic... tab near the bottom of STK.

Clicking the tab is a safe way to bring the 2D Graphics window to the front when you have an Aircraft () object's properties open and you are on the Basic - Route page. If you inadvertently click the 2D window map, you will create a waypoint.

Creating waypoints for the Aircraft object

To keep things simple and focus on movie making and creating VDFs, you'll use the "clicking the 2D Graphics window" method to create waypoints for PhotoMission (). By clicking the 2D Graphics window, you won't fly to precise locations. You'll fly to the point you clicked. Start at Naha.

  1. Click as close as you can to the Naha Place () object symbol's point in the 2D Graphics window.
  2. Click the Place Object Symbol's Sharp Point

  3. Click as close as you can to the Amami Place () object symbol's point.
  4. Click as close as you can to the Minamidaito Place () object symbol's point.
  5. Click as close as you can to the Naha Place () object symbol's point.
  6. Due to the default turn radius, your waypoints won't be overhead of Amami or Minamidaito. You'll fix that shortly.

  7. Return to PhotoMission's () properties by clicking the PhotoMission... tab () below the 2D Graphics window.

Adjusting the aircraft's altitude, speed, and turn radius

Adjust the altitude, speed, and turn radius.

  1. Click Set All....
  2. Select the Altitude, Speed, and Turn Radius check boxes in the Set All Grid Values dialog box.
  3. Set the following:
  4. Option Value
    Altitude 10000 ft
    Speed 200 mi/hr
    Turn Radius 1 km
  5. Click OK to close the Set All Grid Values dialog box.
  6. Click Apply to save your changes and to keep the Properties Browser open.
  7. Return to the 2D Graphics window.

Notice that by creating a smaller turn radius, PhotoMission is much closer to the waypoints. You could further adjust them in the 3D Graphics window using the 3D Object Editing tool if desired.

Adjusting the attitude

Define the attitude profile for PhotoMission () by using a coordinated turn. This profile computes the roll (banking) of an aircraft based on a balancing of the forces acting on the aircraft, assuming a zero angle of attack The angle between the body X axis and the projection of the velocity vector onto the body XZ plane. The velocity vector is the velocity of the object as observed in the object's central body fixed coordinate system. and no-slip condition.

  1. Return to PhotoMission's () properties ().
  2. Select the Basic - Attitude page.
  3. Open the Type drop-down menu in the Basic frame.
  4. Select Coordinated Turn.
  5. Click Apply to save your changes and to keep the Properties Browser open.

Changing the Aircraft object's model

PhotoMission's () model is a glTF (GL Transmission Format) model that looks similar to a Boeing 737. Here, you will learn to change it to a smaller model that resembles a two-engine turbo prop aircraft.

  1. Select the 3D Graphics - Model page.
  2. Click the Model File ellipsis () in the Model frame.
  3. Select the commuter.glb file in the File dialog box.
  4. Click Open.
  5. Click Apply to save your changes and to keep the Properties Browser open.
  6. Select the Basic - Route page.

Preparing the Scene

There are many ways to create a movie inside of STK. For the purposes of this movie, you'll use just one of them.

The second point (waypoint) is when PhotoMission () is over Amami_Japan (). You will make a movie that begins ten (10) seconds prior to and ends ten (10) seconds after the waypoint's time. Jump to the waypoint's time. Your time will be different than the time showed in the example.

  1. Go to the Time cell of point two.
  2. Click in the cell to select the time.
  3. Waypoint 2 Time Cell

  4. Press Ctrl + C (copy) on your keyboard.
  5. Highlight the time in the Current Scenario Time field in the Animation Toolbar.
  6. Press Ctrl + V (paste) on your keyboard.
  7. Press the Enter key on your keyboard.

Viewing in 3D

  1. Bring the 3D Graphics window to the front
  2. Right-click PhotoMission () in the Object Browser.
  3. Select Zoom To.
  4. Using your mouse, set up the view so that you can see both PhotoMission () and Amami_Japan ().
  5. PhotoMission and Amami_Japan Example

Editing PhotoMission's properties

  1. Return to PhotoMission's () properties ().
  2. Select the 2D Graphics - Attributes page.
  3. Clear the following check boxes in the Inheritable Settings frame:
    • Inherit from Scenario
    • Show Route
    • Show Route Marker
  4. Click Apply to save your changes and to keep the Properties Browser open.
  5. Bring the 3D Graphics window to the front.

PhotoMission Without Flight Route Line

3D Graphics Data Display

Placing important dynamic data that is displayed on the 3D Graphics window enhances both the movie and the presentation.

  1. Return to PhotoMission's () properties ().
  2. Select the 3D Graphics - Data Display page.
  3. Select the Show check box for Show LLA Position (Latitude, Longitude, Altitude). You can make changes to its Position and Appearance if desired.
  4. Click OK to accept your changes and to close the Properties Browser.

3D Graphics window size

The 3D Graphic window has to be set at certain sizes when you make a movie. For instance, a good size to set the window for a movie you'll place on a PowerPoint slide is 640 x 480. This isn't the only size you can use, but for this scenario, stick with this. If your 3D Graphics window is maximized, you need to restore the window to normal size.

  1. Return to the 3D Graphics window.
  2. Ensure the window returns to its normal size by clicking the icon for Restore the window to normal size.

Setting Animation Time

Earlier, you set your animation time to the second waypoint, which is in the Current Scenario Time field. You will start the movie 10 (ten) seconds prior to that time. The following is an example of what to do:

  • Assume the time in the Current Scenario Time field is 1 Mar 2023 23:56:20.123.
  • Round down ten seconds earlier to the nearest integer 1 Mar 2023 23:56:10.000.

Now apply this to your scenario.

  1. Round down the time by ten seconds in the Animation Toolbar Current Scenario Time field.
  2. Press Enter on your keyboard.
  3. Make sure you're satisfied with your view. Once you start recording the movie, do not touch the 3D Graphics window.

Creating a Stored View

  1. Click Stored Views () in the 3D Graphics window toolbar.
  2. Click New in the Stored View: 3D Graphics 1 - Earth dialog box.
  3. Set the View Name to "Movie Time".
  4. Click OK to close the the Stored View: 3D Graphics 1 - Earth dialog box.
  5. By creating this view, if you were to Reset () your scenario, you can quickly jump back to this time and view in the 3D Graphics window.

  6. Click X Real-time Animation Mode () in the Animation toolbar.

Using the Movie Timeline Plugin

The Movie Timeline Plugin helps you record animations from STK. You can also record a movie using 3D Graphics window properties where It is found on the Record Movie page. In this scenario, use the Movie Timeline Plugin. There are a lot of features in the Movie Timeline Plugin, but to keep things simple, you'll use the Record from the Movie Timeline button.

  1. Open the View menu at the top of STK.
  2. Select Toolbars in the drop-down menu.
  3. Select Movie Timeline in the second drop-down menu. You should now see the Movie Timeline toolbar.
  4. Click Record () in the Movie Timeline tool bar.

Movie Wizard

The Movie Wizard will help you walk through important steps in creating your movie.

On the left side are pages starting with Filename & Format. For a straightforward way to make a movie, follow the sequence below from top to bottom.

Choosing a directory and format for your movie

Save your movie in your scenario directory using H.264 format.

  1. Select the Filename & Format page.
  2. Click Save as...in the Choose the filename to use during movie recording frame.
  3. Browse to your scenario folder (e.g., C:\Users\username\Documents\STK 12\STK_Movies_VDFs).
  4. Change File name to any name you desire (e.g., First Movie.h264).
  5. Click Save.
  6. Leave the format as a H.264 (.mp4).
  7. Click Next.

Selecting a graphics window to record

You can select which window you are recording. You're recording the 3D Graphics window.

  1. Ensure the 1 - 3D Graphics 1 - Earth option is selected.
  2. Click Next.

Changing the resolution

Here, you resize the 3D Graphics window using preset sizes.

  1. Open the Preset drop-down menu in the Choose the resolution of the recorded movie frame.
  2. Select Large.
  3. For this to work, the 3D Graphics window needs to be restored to normal size (which you accomplished previously). If your 3D Graphics window is maximized, you will receive a "WINDOW SIZE MISMATCH" error.

    This is a very common mistake that people make. If you receive this error, you will need to restore the 3D Graphics window to normal size.

  4. Click Next.

Using advanced camera controls

If you're making a more advanced movie using paths created with the 3D Camera Control Toolbar, you would select the path you want to record.

  1. Ensure your 3D Graphics window is using your stored view. If required, return to the 3D Graphics window toolbar, extend the Stored Views drop-down menu to select Movie Time.
  2. Return to the Movie Wizard.
  3. Select None (use current view).
  4. Click Next.

Setting the video time and length

Take your time on this page. It's important to follow these steps:

Time & Length Steps

  1. Clear the black lock () check box.
  2. Copy (Ctrl + C) the time in the Current Scenario Time field.
  3. Paste (Ctrl + V) it in the Start time field of the Movie time range section.
  4. Highlight the time and units in the Shorter / Longer field of the Movie playback length section.
  5. Enter the value 20 into the Shorter / Longer field.
  6. Press the Tab key on your keyboard. This will automatically enter sec (seconds) and change the End Time in the Movie time range section to twenty (20) seconds past the Start time.
  7. Select the black lock () check box.
  8. Click Next.

Setting the video size and quality

In the 3D Graphics window, aliasing is the process by which smooth curves and other lines become jagged because the resolution of the graphics device or file is not high enough to represent a smooth curve. Antialiasing is a technique for diminishing jagged stair-step-like lines that you want to be smooth.

  1. Extend the Anti-aliasing drop-down menu to view the settings.
  2. Leave the default setting of 3x3 - Good Quality.
  3. In the Recorded image quality, and estimated file size field, change Quality to High Quality @ 1080. This adjusts the bitrate and changes the estimated maximum size of the recorded movie.
  4. Click Next.

Starting your recording

Here you can view the summary and go back to make any changes you feel are necessary. Remember, it's a good idea not to manipulate the 3D Graphics window once the recording begins.

You can enable the Record in parallel option to use STK's Parallel Computing ability.

  1. Click Begin Record () once you are prepared to record. Sit back and wait until the recording is complete.
  2. Click Yes when you are prompted to view the recording.
  3. When you are finished admiring your Oscar-winning creation, close the media player and return to STK.
  4. Click Finish in the Movie Wizard.

Resetting the scenario animation time

In the Movie Wizard, creating the start and stop time of your movie sets those times in the Scenario () objects Basic - Time Animation field. It's a good idea to reset these time so that you can animate your complete analysis time (in this case four hours).

  1. Open STK_Movies_VDFs () properties ().
  2. Select the Basic - Time page.
  3. Select the following check boxes in the Animation frame:
    • Use Analysis Start Time
    • Use Analysis Stop Time
  4. Click OK to select your changes and close the Properties Browser.

Creating reports with your video

When you create a video of your scenario for a presentation or briefing, you can generate reports using STK to support your claims. Create a couple of reports that you can use in a briefing:

  1. Right-click PhotoMission () in the Object Browser.
  2. Select Access () in the drop-down menu.
  3. When the Access tool opens, select all three Place () objects in the Associated Objects list.
  4. Click .
  5. Click Access... in the Reports Frame.

Saving as Quick Reports

  1. Click Save as quick report () in the access report tool bar.
  2. Close the access report.
  3. Click AER... in the Reports Frame.
  4. Click Save as quick report () in the AER report tool bar.
  5. Close the AER report and the Access Tool.

Converting a Visual Data File (VDF)

You can convert your STK 3D scenarios to Visual Data (.vdf) files so that you can do the following:

  • Display them in STK Viewer: Using STK Viewer, you can send the VDF file to managers, coworkers, customers, and prospects for collaboration, without the need for a full STK installation. You can download the free STK Viewer through AGI's website.
  • Load and edit them in STK Viewer: Using STK Viewer, you can change the globe, images, and terrain in the VDF file and then share this file with other STK Viewer or STK users.
  • Load, edit, and save them as a scenario file (.sc) in STK: You can load and modify a VDF file in STK and then save it as a scenario file (.sc). To save a VDF file as a scenario file, click Save as... from the STK File menu.

Checking your scenario folder

  1. Open Windows File Explorer.
  2. Browse to your scenario folder (e.g., C:\Users\username\Documents\STK 12\STK_Movies_VDFs).
  3. Other than the movie you stored here, all the files you see are being used in the STK scenario. The more objects in your scenario, the more files you will see here. When you create a VDF of your scenario, it combines all these files into one file.

  4. Close Windows File Explorer.
  5. Reset () the scenario.
  6. Zoom To PhotoMission ().
  7. Save () your scenario.

Creating a VDF

The VDF Setup tool is small, but there's a lot going on. For more detailed information beyond the scope of this training, use Best Practices for Authoring a VDF to help you optimize your VDF for your users.

  1. Open the File menu at the top of STK.
  2. Select VDF Setup...
  3. Select the Exclude Install Files check box when the VDF Setup for Scenario STK_Movies_VDFs dialog box opens.
  4. Click Yes for each time the Question window appears.
  5. Enable Exclude Install Files to reduce the VDF size by excluding files that are part of the STK install from the VDF.

  6. Look at Custom/User data. Use this to select the scenario files and non-STK files (.doc and .XLS files, for example) to be included with the VDF file.
  7. Look at Quick Reports For STK Viewer. These reports will be available if using STK Viewer during your presentation.
  8. Click Create VDF...
  9. Ensure the Save in location points to your scenario folder.
  10. Click Save.

Opening STK Viewer

STK Viewer is an application for displaying the visual results of analyses performed and authored by STK users. When you install any STK application package, STK Viewer is also installed on your computer. Anyone can download STK Viewer from the AGI Website for free and install it on a different computer.

  1. Minimize STK.
  2. Double-click STK Viewer 12 on your Desktop.
  3. Accept the licensing agreement if it's the first time opening STK Viewer.

Opening the VDF

  1. Open the File menu when STK Viewer opens.
  2. Select Open... in the drop-down menu.
  3. Click STK Viewer User when the Open Package dialog box appears.
  4. This takes you to the default folder for saving your scenarios. If you are storing your scenarios in a different location, you will need to browse to that location.

  5. Open the STK_Movies_VDFs folder.
  6. Open the STK_Movies_VDFs.vdf file.
  7. Explore STK Viewer.
  8. STK Viewer only shows the 3D Graphics window. If you explore, you'll find that your stored views and quick reports are available. During the briefing preparation, you can create multiple stored views showing scenes important to your audience. You can save multiple quick reports of data and graphs available for the presentation. Animation functionality is available too.

  9. Close STK Viewer once you are done.
  10. Another great feature of STK Viewer is that you can embed it into PowerPoint and Web Pages.

Summary

You created a scenario, recorded a movie of a segment of the scenario, and saved a visual data file. You began by entering ground locations, inserting an Aircraft () object, building its flight route, and changing the model to match the actual mission aircraft. Preparing the movie scene, you removed lines and points, kept labels, and created a 3D Graphics data display to enhance situational awareness showing important latitude, longitude and altitude data dynamically. Setting the 3D Graphics window to normal size, you created a stored view of the time and view of when the movie would start and what you wanted to see in the movie. You learned how to enable the Movie Timeline Plugin and use all of its functionality by recording a movie. You created important data reports that you needed for a briefing and packaged up the scenario as a visual data file. Finally, you were introduced to the functionality of STK Viewer and its power in delivering a top-notch briefing to your audience.

Continue to Lesson Five: Introduction to Connect.

On your own

Throughout the tutorial, hyperlinks were provided that pointed to in-depth information of various subjects. Now's a good time to go back through this tutorial and view that information. Create new movies using paths and articulations. Change settings in the Movie Wizard to see how they change the quality of your movie. Learn how embedding STK viewer into PowerPoint and web pages enhances these media forms. Explore and have fun!