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 training by contacting AGI Support at support@agi.com or 1-800-924-7244.

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 to 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 on 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 on PhotoMission () in the Object Browser.
  2. Select Properties ().
  3. Select the Basic - Route page when the Properties Browser opens.
  4. Open the Reference: shortcut 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 on the 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 on the 2D Graphics window method to create waypoints for PhotoMission (). By clicking on 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. We'll fix that shortly.

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

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

Adjust the altitude, speed, and turn radius using Set All... .

  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: shortcut 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 which looks similar to a Boeing 737. Here, you will learn to change it to a smaller model that resembles a two-engined turbo prop aircraft. The model type is an MDL Model (.mdl).

  1. Select the 3D Graphics - Model page.
  2. Click the Model File: ellipsis () in the Model frame.
  3. Select the commuter.mdl 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 one of many.

The second point (waypoint) is when PhotoMission () is overhead 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 on 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 which 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 LLA Position (Latitude, Longitude, Altitude) Show check box. 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 Restore.

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:

  • Let's say 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
  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.

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 shortcut menu.
  3. Select Movie Timeline in the second shortcut menu.
  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. If you follow the sequence from top to bottom, you will make a fairly effortless movie.

Filename and format

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 the 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 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: shortcut menu in the Choose the resolution of the recorded movie: frame.
  2. Select Large.
  3. In order 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.

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 pull-down menu to select Movie Time.
  2. Return to the Movie Wizard.
  3. Select None (use current view).
  4. Click Next.

Video time and length

Take your time on this page. It's important to follow the following 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 Movie time range: Start time: field.
  4. Highlight the time and units in the Movie playback length Shorter / Longer field.
  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 Movie time range: End Time: to twenty (20) seconds past the Start time.
  7. Select the black lock () check box.
  8. Click Next.

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. Anti-aliasing is a technique for diminishing jagged - stair step-like lines that you want to be smooth.

  1. Extend the Anti-aliasing: pull-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 if required. 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

Using the Movie Wizard, when you create the start and stop time of your movie, it 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 to 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 can be used in a briefing:

  1. Right-click on PhotoMission () in the Object Browser.
  2. Select Access () in the shortcut 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.

Save 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.

Visual Data File (VDF)

You can convert your STK 3D scenarios to Visual Data (.vdf) files that can be:

  • Displayed 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. The free STK Viewer can be downloaded through AGI's website.
  • Loaded and edited 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.
  • Loaded, edited and saved 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.

Windows File Explorer

  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 the 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 Save in: points to your scenario folder.
  10. Click Save.

STK Viewer

STK Viewer is an application for displaying the visual results of analyses performed and authored by STK users. When you install STK, Viewer is also installed on your computer. STK Viewer can be downloaded from the AGI Website for free and installed 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 shortcut menu.
  3. Click STK Viewer User when the Open Package dialog box appears.
  4. This takes you to the folder where your scenarios are defaulted to be saved. 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 that was used to record a movie and save a visual data file. You began by entering ground locations, inserting an Aircraft () object, building it's 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!