Description | Example | Return message | Group

VO 3DTiles

Add, remove, or modify a 3DTiles tileset for display in the 3D Graphics window.

Syntax

VO <ScenarioPath> 3DTiles {AddTileset | RemoveTileset} {Options}

Description

The VO 3DTiles command enables you to add, remove, or modify seetings for a 3DTiles tileset for display in the 3D Graphics window.

When removing a tileset, the path/URL to the tileset, ReferenceSystem, and Central Body must match the settings used when the tileset was added.

The following table describes the {Options} for this command.

{Option}Description
File "<TilesetFilePath>"Enter the file path to a 3DTiles tileset. The file path can be an absolute path to the tileset or a path relative to the scenario directory.
GCS "<Tileset URL>" "<GCS URL>"Enter the URL of the 3DTiles tileset and the URL of the AGI Geospatial Content Server (GCS) that the tileset is hosted on.
ReferenceSystem <TruncObjPath> <SystemName> Specify the reference system that the tileset will use. By default, STK uses an Earth-centered Fixed (ECF) frame.
CentralBody <CBName>Specify the central body that STK will use if the tileset contains information that is defined by latitude/longitude/altitude. If CentralBody is not defined, STK uses Earth by default.
WindowID <WinNumber>Specify the 3D Graphics window that the tileset is displayed in. If you do not specify this option, STK will display the tileset in all 3D Graphics windows. You can use the WindowID option two or more times in the same command to display the tileset in more than one window.
ION <api_endpoint_url>Specify the Cesium ion API Endpoint URL.
ASSETID <id>Enter the Cesium ion Asset identifier.
ACCESSTOKEN <access_token>Enter the Cesium ion Access token.
Modify <Name> <keyword value>Specify the name of the tileset you want to modify followed by the keyword of the Modify option and the value for that keyword. The following keyword options are available:

MaxScreenSpaceError - Enter a real number value between 0.0 and 1000.0.

GoogleMaps APIKEY <key>This adds the Google Maps 3D tileset. For <key>, enter the API key that you received from Google.

For information about obtaining an API key, go to this STK Help page: Using STK > Customization > Edit Preferences > Data Services > Google Maps.

You must use either the File option or GCS option for all other options except Modify and GoogleMaps.

Examples

To display a tileset from the file system in all 3D Graphics windows:

VO * 3DTiles AddTileset File "C:\tilesets\test tileset\tileset.json"

To display a tileset using a specific reference system in all 3D Graphics windows:

VO * 3DTiles AddTileset File "C:\tilesets\test tileset\tileset.json" ReferenceSystem Satellite/Satellite1 Body

To display a tileset that uses the Moon as the central body in all 3D Graphics windows:

VO * 3DTiles AddTileset File "C:\tilesets\test tileset\tileset.json" CentralBody Moon

To display a tileset from the GCS server:

VO * 3DTiles AddTileset GCS "https://gcs.agi.com/assets/3/4/tileset.json" "https://gcs.agi.com"

To display a tileset from the file system in 3D windows 2 and 3:

VO * 3DTiles AddTileset File "C:\tilesets\test tileset\tileset.json" WindowID 2 WindowID 3

To add a Cesium ion Tileset:

VO * 3DTiles AddTileset ION "http://api.cesium.com" ASSETID 9 ACCESSTOKEN eyJhbGci0iJIUzI1 ...

To remove a tileset from all 3D Graphics windows:

VO * 3DTiles RemoveTileset File "C:\tilesets\test tileset\tileset.json"

To remove a tileset that is using a specific reference system:

VO * 3DTiles RemoveTileset File "C:\tilesets\test tileset\tileset.json" ReferenceSystem Satellite/Satellite1 Body

To remove a tileset from 3D Graphics window 2 only:

VO * 3DTiles RemoveTileset File "C:\tilesets\test tileset\tileset.json" WindowID 2

To remove a Cesium ion tileset:

VO * 3DTiles RemoveTileset ION "http://api.cesium.com" ASSETID 9 ACCESSTOKEN <access_token>

To modify a tileset in the scenario:

VO * 3DTiles Modify "AGI Headquarters" MaxScreenSpaceError 10.0

To add the Google Maps tileset in the scenario:

VO * 3DTiles GoogleMaps APIKEY aBc123Xyz456

Return message

Group membership

This command belongs to the following group(s):

Object Tools

VO

VO Objects

Version

12.8