HOW TO

Export textured models from CityEngine into Unity

Last Published: April 26, 2020

Summary

CityEngine models can be exported to Wavefront OBJ files along with any associated textures and opened in the 3D game engine, Unity. However, issues with drawing models in Unity may arise if export settings are not set correctly.

Procedure



  1. In CityEngine, select all of the models to be exported.
    [O-Image]
    Note:
    Left-clicking and dragging from bottom-right to top-left allows users to select every part of every model that is partially included in the select box. Left-clicking and dragging from top-left to bottom-right only selects the part of the models that are fully in the select box.

  2. Go to File > Export Models.
  3. Select the Autodesk FBX option.
  4. Use the following settings in the Export model wizard:
    • Export Geometry: Models with Shape Fallback
    [O-Image]

    • Vertex Normals: Write vertex normals
    • Normals Indexing: Allow shared normals
    • Texture Coordinates: Write all UV layers
    • In the Global Offset section, click the Center button.
    [O-Image]

    • Include Materials: Checked
    • Collect Textures: Checked
    • Embed Textures: Checked
    [O-Image]
  5. In Unity, navigate to the Asset menu > Import new asset, and navigate to the .fbx file.
  6. Drag and drop the model from the Assets window into the scene.

    Note:
    If the model flickers or moves in the scene when navigating, it is most likely too far from the origin. Ensure the model is selected in the Hierarchy, and change the position of the model to 0, 0, 0.
    [O-Image]

Article ID: 000012449

Software:
  • ArcGIS CityEngine Prev

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options