Tutorial 15: Publish web scenes

To access the tutorial projects in ArcGIS CityEngine, open CityEngine and click Help > Download Tutorials and Examples in the main menu. After choosing a tutorial or example, the project is automatically downloaded and added to your CityEngine workspace.

SLPK layers in Scene Viewer

In this tutorial, you'll learn how to export CityEngine layers to Scene Layer Package (SLPK) and Tile Package (TPK) files. You'll then share the .slpk and .tpk files to ArcGIS Online. Finally, you'll add these as layers to Scene Viewer to create a web scene.

Export and upload Scene Layer Packages

  1. Expand the Tutorial_15_Publish_Web_Scenes tutorial folder in the Navigator window.
  2. Open theĀ Esri_Campus.cej scene in the /scenes/ folder.

    Generate the models when prompted.

  3. Select the Dev HQ.Exterior Walls layer in the Scene Editor window.
  4. Click File > Export Models or press Ctrl+E to start the exporter.
  5. Select Esri Scene Layer Package:

    Export models

  6. Click Next to open the Esri Scene Layer Package dialog box:

    Esri Scene Layer Package export

  7. Keep the default export options but change the Scene Name to Esri_Campus_Walls.

    For more details about exporting SLPK files , refer to Export SLPK.

  8. Click Finish.

    The exporter creates a Scene Layer Package (.slpk) in the /models/ folder of the project.

  9. Right click the Esri_Campus_Walls.slpk file and click Share As.

    Share slpk in Navigator

  10. Ensure that the Publish package after upload check box is checked.

    Share Scene Package

  11. Click Share.

    Sign in to ArcGIS Online if you are not already signed in to continue uploading.

    Next, you'll export and share the rest of the layers as one .slpk file.

  12. Select the following layers in the Scene Editor:

    Selected layers for interior objects

  13. Repeat the steps above to export the newly selected layers.

    In the Esri Scene Layer Package dialog box, this time name the scene Esri_Campus in the Scene Name box..

Export and upload Tile Packages

Next, you'll export the terrain to add into the web scene in ArcGIS Online.

  1. Select the Terrain layer in the Scene Editor window.
  2. Click File > Export.
  3. In the CityEngine folder, click Export Selected Layers as TPK:

    Export terrain as TPK

  4. Click the Maps drop-down menu and select Basemap only:

    Export terrain as tile package

    As the elevation was not edited, you'll use the elevation service in ArcGIS Online and only need the basemap of terrain. But if you had custom elevation, you could export the elevation in this same manner.

  5. Click Finish.
  6. Right-click the Esri_Campus_Basemap.tpk file in the /data/ folder and select Share As.
  7. As you did with the .slpk file above, ensure that the Publish package after upload check box is checked in the Tile Package dialog box.
  8. click Share.

Combine scene layers into a web scene

  1. In the Navigator window, click My Content My content to verify and all files and layers are there:

    SLPK and TPK layers in My Content

  2. Right-click the Esri_Campus_Walls file and select Open in browser to open the item in ArcGIS Online.

    Again, if prompted to sign in to ArcGIS Online, do so.

    Esri Campus walls item in

  3. Click Open in Scene Viewer to open the item in Scene Viewer.
  4. You can then search and add the Esri_Campus and Esri_Campus_Basemap layers in Scene Viewer to get the following scene:

    SLPK layers in Scene Viewer

  5. Hide the walls by unchecking the Esri_Campus_Walls layer in the Layers menu at the top.

    This allows you to see the lower levels more easily.

    SLPK layers with no walls in Scene Viewer

  6. Save the scene and name it Esri_Campus.
  7. In My Content My content in the Navigator window, right-click the empty space and click Refresh.

    The new Esri_Campus web scene appears:

    scene added to CityEngine My Content

    The web scene is ready to share with others.

Note:
For more information about creating and sharing web scenes in ArcGIS Online, refer to the following:

In this tutorial, you learned how to do the following:

  • Export CityEngine layers as Scene Layer Packages (SLPK) and Tile Packages (TPK).
  • Share these layers to ArcGIS Online.
  • Create a web scene in Scene Viewer you can share with others

To continue your learning with CityEngine, see the complete CityEngine tutorial catalog.