Working with Multitrack Objects
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
What you will learn
This tutorial is an introduction to the Multitrack object (MTO) in STK. In this exercise, you will:
- Create an MTO Object
- Change the appearance of MTO tracks in the 2D Graphics window
- Modify the view of an MTO in the 3D Graphics window
You can use MTO objects within STK to group together many moving or stationary objects. An MTO consists of one or more "tracks." Each track consists of points with time, latitude, longitude, and altitude information.
MTOs are the most efficient way to quickly display a large number of objects within STK. However, MTOs are only for visualization. If you want to perform analyses such as graphs, reports, and access calculations with your objects, you cannot use an MTO object.
For this tutorial, you will create and visualize four paths: a friendly ship, a friendly ground vehicle, an enemy ship, and an enemy ground vehicle.
Creating a new scenario
- Launch STK ().
- Click in the Welcome to STK dialog box.
- Enter the following in the New Scenario Wizard:
Option Value Name MTO_Scenario Location Default Start 1 Aug 2015 15:00:00.00 Stop + 1 day - Click when you finish.
- Click Save () when the scenario loads. STK creates a folder with the same name as your scenario for you.
- Verify the scenario name and location in the Save As window.
- Click .
Changing the date format
For this scenario, change the date format to epoch seconds.
- Right-click your scenario, MTO_Scenario ().
- Open MTO_Scenario's Properties ().
- Go to the Basic - Units page.
- Change the DateFormat to Epoch Seconds (EpSec).
- Click to save your changes and close the MTO_Scenario properties browser.
Creating an MTO object
Insert an MTO object into the scenario.
- Click Insert Object (), located in the Default toolbar.
- Click .
- Select the check box next to MTO and click .
- Select the MTO object () and Define Properties method. The MTO object's properties browser appears.
Adding tracks
Add four tracks to the MTO object. Each track represents one vehicle.
- Go to the Basic - Tracks properties page. This page displays all tracks that are part of the MTO.
- Click four times to add four tracks to this MTO object.
- Highlight the first track and click . The "Modify Track Data" dialog box appears.
- Name this track "Friendly Ship".
- Click .
- Double-click each field of the first point to enter the following data:
- Click again and modify the second point with the following data:
- Select the Interpolate Position check box to make sure that the track computes intermediate points from one point to the next as you animate.
- Click to close the "Modify Track Data" dialog box.
- Click in the MTO properties browser.
Option | Value |
---|---|
Time | 0 EpSec |
Latitude | 42.4 deg |
Longitude | -86.6 deg |
Altitude | 0 km |
Option | Value |
---|---|
Time | 10000 EpSec |
Latitude | 43.1 deg |
Longitude | -86.5 deg |
Altitude | 0 km |
Viewing the Friendly Ship track
Take a look at the track of the Friendly Ship.
- In the 2D Graphics window, zoom in on the Great Lakes area. Alternatively, you can zoom in on a rectangle roughly centering on 42 degrees latitude, -86 degrees longitude.
- Animate the scenario. You should see a marker representing your "Friendly Ship" track move along the east side of Lake Michigan.
Modifying the other three MTO tracks
Return to the Basic - Tracks page of your MTO object properties browser. Modify the other three tracks according to the table below, making sure that you select the Interpolate Position check box for each track.
STK will automatically rearrange the points by time, so after entering the data for point #2, it may jump to the #3 position.
Track | Name | Point | Time | Latitude | Longitude | Altitude |
---|---|---|---|---|---|---|
2 | Enemy Ship | 1 | 0.0 | 42.7 | -87.6 | 0 |
2 | 6000.0 | 43.4 | -87.0 | 0 | ||
3 | 10000.0 | 43.3 | -86.5 | 0 | ||
3 | FriendlyTruck | 1 | 0.0 | 40.8 | -84.4 | 0 |
2 | 5000.0 | 41.2 | -85.0 | 0 | ||
3 | 10000.0 | 41.8 | -85.3 | 0 | ||
4 | EnemyTruck | 1 | 0.0 | 43.2 | -86.1 | 0 |
2 | 7000.0 | 42.2 | -85.7 | 0 | ||
3 | 10000.0 | 42.1 | -85.0 | 0 |
After inserting all of the track points, click
on MTO object properties browser and animate the scenario. You should now see all four of your objects move along the MTO paths.Adjusting graphics attributes
In this section you will adjust certain attributes to make the MTO graphics easier to see and understand.
Changing the line width
Make your track lines thicker by adjusting a 2D Graphics attribute.
- Open the properties browser of the MTO object again.
- Go to the 2D Graphics – Track Attributes page.
- Click .
- Click . This opens the "Modify Track Graphics Data" dialog box.
- Change the Line Width value to 3.
- Click to save your changes and close the dialog box.
- Click On the 2D Graphics – Track Attributes page, you should see that the paths displayed are now thicker.
Changing marker styles
To make it easier to identify the types of objects represented, you will now change the markers for the paths.
- Go back to the 2D Graphics – Track Attributes page
- Highlight the first path and hold down the Ctrl key while clicking on the second path to multiselect the two ships.
- Click . This opens the "Modify Track Graphics Data" dialog box.
- Change the marker style to the ship icon
- Click to save your changes and close the dialog box.
- Multiselect tracks 3 and 4.
- Change their marker style as you did in steps 3-5 but using the ground vehicle icon.
Changing colors
You can use color to distinguish between "friendly” and “enemy” vehicles.
- Multiselect tracks 2 and 4.
- Click . This opens the "Modify Track Graphics Data" dialog box.
- Using the drop-down selection, change Color to red.
- Click to save your changes and close the dialog box.
- Use the same procedure to set tracks 1 and 3 to green.
- Click in the MTO object properties browser.
- Animate the scenario. You should now see two ship icons and two ground vehicles. The red paths represent enemy vehicles and the green paths represent friendly vehicles.
2D View of the MTO paths
Applying 3D models to the MTO objects
You can replace the object markers with models of the ships and ground vehicles.
- Open the 3D Graphics – 3D Track Attributes page in the MTO object properties browser.
- Highlight track 1 and click . This opens the "Modify Track 3D Graphics Data" dialog box.
- Select the Show check box in the Model area.
- Click the ellipsis () button next to Model File.
- Select the file ship.glb in the Sea directory.
- Set the log scale to 2.0.
- Clear the "Z Points toward Nadir" check box.
- Click to save changes and close the "Modify Track 3D Graphics Data" dialog box..
- Repeat the above procedure to make the following settings for the other tracks:
- Click in the MTO object properties browser and animate the scenario. The 3D Graphics window now shows models for the objects as they travel along the MTO tracks.
Track | Model File | Log Scale | Z Points Toward Nadir |
---|---|---|---|
2 | Sea\aegis-destroyer.mdl | 2.3 | No |
3 | Land\military-truck.mdl | 3.5 | No |
4 | Land\humvee.mdl | 3.5 | No |
Setting the view to an MTO path
You can set your view to one of the MTO paths.
- Go to the Basic – Tracks page.
- Set the Computation Track Id to 3.
- Click to save your changes and close the MTO object properties browser.
- Click the View From/To () button on the 3D Graphics window toolbar.
- Select the MTO object in the View From field.
- Click . The view will now be centered on the friendly truck, which is track number 3. By changing the Computation Track Id, you can change which path the view will be centered on when selecting the MTO as the View From/To object.
Saving your work
Make sure to save your scenario before exiting STK.
Summary
This tutorial provided an introduction to Multitrack Objects in STK. Although you cannot use them for numerical analysis, MTOs provide a way to efficiently display the positions of hundreds or thousands of objects in STK.
The MTO paths in this activity were defined with the graphical user interface. However, you can also modify MTO positions and properties through automated processes interacting with STK.