|
1 | 1 | # Visualize 3DObject ID's |
2 | 2 |
|
3 | | -Get the ID for individual buildings in a scene. |
| 3 | +Get the ID for individual buildings in a Level. |
4 | 4 |
|
5 | 5 |  |
6 | 6 |
|
7 | 7 | ## How to use the sample (SampleViewer) |
8 | 8 |
|
9 | | -1. The SampleViewer Scene should open by default, if it is not open, click the **SampleViewer** scene to open it. |
| 9 | +1. The SampleViewer Level should open by default, if it is not open, click the **SampleViewer** Level to open it. |
10 | 10 | 2. Click play. |
11 | 11 | 3. Using the UI, enter an APIKey in the input field to the top left. |
12 | | -4. Open the **Samples** drop down, and click **HitTest** to open the level. |
| 12 | +4. Open the **Samples** drop down, and click **HitTest** to open the Level. |
13 | 13 | 5. Click a building. The building's ID's will show up on a 3D UI Component. |
14 | 14 |
|
15 | | -## How to use the sample (HitTest Scene) |
| 15 | +## How to use the sample (HitTest Level) |
16 | 16 |
|
17 | | -1. Open the **HitTest** level. |
| 17 | +1. Open the **HitTest** Level. |
18 | 18 | 2. Click on the **ArcGISMap** Actor and set your API key in the **Details** panel. |
19 | 19 | 3. Click play. |
20 | 20 | 4. Click a building. The building's ID's will show up on a 3D UI Component. |
21 | 21 |
|
22 | 22 | ## How it works |
23 | 23 |
|
24 | 24 | 1. Create an ArcGIS Map. |
25 | | -2. Add an **ArcGISPawn** to the scene. |
26 | | -3. Within the Level Blueprint, create an Input mapping. Off the **Pressed** node, drag off and create a **Line Trace by Channel**. |
27 | | -4. Drag off the Exec node, and create an **ArcGISRaycast Hit**. |
28 | | -5. Break the **ArcGISRaycast Hit Result** and drag off the **FeatureID** node. |
29 | | -6. Convert this integer to a string, and connect it to a print node. |
30 | | -7. Enter your **APIKey** in the **APIMapCreator**. |
31 | | -8. Hit play. Once the scene is running click a building. The building's ID's will show up in a debug on screen. |
| 25 | +2. Add an **ArcGISPawn** to the Level. |
| 26 | +3. Within the HitTest folder, drag the ArcGISRaycast Blueprint into the Level. |
| 27 | +4. In the UI folder within the HitTest folder, drag the bp_featureId Actor into the Level. |
| 28 | +5. Add a Sphere Static Mesh Actor into the Level and call it 'HitLocation'. |
| 29 | +6. In the Outliner panel, select the ArcGISRaycast Actor. |
| 30 | +7. Navigate to the Default sections in the Details Panel. For each variable shown in the image, click on the drop-down and add the respective Actor as its reference. |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | +8. Select the **ArcGISMap** Actor in the Outliner panel, and enter your **APIKey** in the Authentication section in the Details panel. |
| 35 | +9. Hit Play. Once the Level is running, hold Shift and click a building. The building's ID will show up in a debug on screen. |
32 | 36 |
|
33 | 37 | ## About the data |
34 | 38 |
|
35 | | -Building models for New York are loaded from a [3D object scene layer](https://tiles.arcgis.com/tiles/z2tnIkrLQ2BRzr6P/arcgis/rest/services/New_York_LoD2_3D_Buildings/SceneServer/layers/0) hosted by Esri. |
| 39 | +Building models for New York are loaded from a [3D object Level layer](https://tiles.arcgis.com/tiles/z2tnIkrLQ2BRzr6P/arcgis/rest/services/New_York_LoD2_3D_Buildings/LevelServer/layers/0) hosted by Esri. |
36 | 40 |
|
37 | 41 | Elevation data is loaded from the [Terrain 3D elevation layer](https://www.arcgis.com/home/item.html?id=7029fb60158543ad845c7e1527af11e4) hosted by Esri. |
38 | 42 |
|
|
0 commit comments