Generate Level Of Detail (Data Management)

Summary

Generates a new scene layer package with properly defined levels of detail.

Only the finest level of detail is maintained; all other levels of detail are discarded. The finest level of detail is reorganized into tiles that generate new coarse levels of detail.

Usage

  • Use this tool for integrated mesh scene layer packages generated from third-party software that have poorly defined levels of detail. This includes scene layer packages with a single level of detail generated from other applications.

  • Use this tool with output from the Create Integrated Mesh Scene Layer Content tool if the original OpenSceneGraph binary (OSGB) data had missing levels of detail or poorly defined levels of detail.

  • Integrated mesh is the only supported scene layer type.

Parameters

LabelExplanationData Type
Input Dataset

The input integrated mesh scene layer package.

File
Output Dataset

The output scene layer package.

File
Texture Optimization
(Optional)

Specifies the textures that will be optimized according to the target platform where the scene layer package will be used.

Caution:

Optimizations that include KTX2 may take significant time to process. For fastest results, use the Desktop or None options.

  • AllAll texture formats will be optimized including JPEG, DXT, and KTX2 for use in desktop, web, and mobile platforms.
  • DesktopWindows, Linux, and Mac supported textures will be optimized including JPEG and DXT for use in ArcGIS Pro clients on Windows and ArcGIS Maps SDKs desktop clients on Windows, Linux, and Mac. This is the default.
  • MobileAndroid and iOS supported textures will be optimized including JPEG and KTX2 for use in ArcGIS Maps SDKs mobile applications.
  • NoneJPEG textures will be optimized for use in desktop and web platforms.
String

arcpy.management.GenerateLevelOfDetail(in_dataset, out_dataset, {texture_optimization})
NameExplanationData Type
in_dataset

The input integrated mesh scene layer package.

File
out_dataset

The output scene layer package.

File
texture_optimization
(Optional)

Specifies the textures that will be optimized according to the target platform where the scene layer package will be used.

Caution:

Optimizations that include KTX2 may take significant time to process. For fastest results, use the Desktop or None options.

  • AllAll texture formats will be optimized including JPEG, DXT, and KTX2 for use in desktop, web, and mobile platforms.
  • DesktopWindows, Linux, and Mac supported textures will be optimized including JPEG and DXT for use in ArcGIS Pro clients on Windows and ArcGIS Maps SDKs desktop clients on Windows, Linux, and Mac. This is the default.
  • MobileAndroid and iOS supported textures will be optimized including JPEG and KTX2 for use in ArcGIS Maps SDKs mobile applications.
  • NoneJPEG textures will be optimized for use in desktop and web platforms.
String

Code sample

GenerateLevelOfDetail example (Python window)

The following script demonstrates how to use the GenerateLevelOfDetail function in the Python window.

import arcpy
arcpy.management.GenerateLevelOfDetail(
    in_dataset=r"C:\test\mesh.slpk",
    out_dataset=r"C:\test\meshLOD.slpk",
    texture_optimization="Desktop"
)

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes

Related topics