LuciadCPillar C# 2026.1.02
Loading...
Searching...
No Matches
Luciad.Formats.Ogc3DTiles.Ogc3DTilesModelDecoder Class Reference

This class can be used to create an ITileSet3DModel implementation that can read OGC 3D Tiles data. More...

Classes

class  Options
 Options for decoding OGC 3D Tiles data. More...

Static Public Member Functions

static Luciad.Models.TileSet3D.ITileSet3DModel Decode (string source)
 An OGC 3D Tiles model connects to a 3D tile service to retrieve tiles for a TileSet3DLayer.
static Luciad.Models.TileSet3D.ITileSet3DModel Decode (string source, Luciad.Formats.Ogc3DTiles.Ogc3DTilesModelDecoder.Options options)
 An OGC 3D Tiles model connects to a 3D tile service to retrieve tiles for a TileSet3DLayer.

Detailed Description

This class can be used to create an ITileSet3DModel implementation that can read OGC 3D Tiles data.

See Ogc3DTilesModelDecoder.Decode for more details.

Since
2022.0

Member Function Documentation

◆ Decode() [1/2]

Luciad.Models.TileSet3D.ITileSet3DModel Luciad.Formats.Ogc3DTiles.Ogc3DTilesModelDecoder.Decode ( string source)
inlinestatic

An OGC 3D Tiles model connects to a 3D tile service to retrieve tiles for a TileSet3DLayer.

Parameters
sourcethe OGC 3D tiles endpoint url or the path to the entry point file
Returns
the decoded tile set 3D model for the OGC 3D Tiles data.
Exceptions
System.IO.IOExceptionwhen decoding the OGC 3D Tiles data fails.
See also
decode(const std.string&, const Options&)

◆ Decode() [2/2]

Luciad.Models.TileSet3D.ITileSet3DModel Luciad.Formats.Ogc3DTiles.Ogc3DTilesModelDecoder.Decode ( string source,
Luciad.Formats.Ogc3DTiles.Ogc3DTilesModelDecoder.Options options )
inlinestatic

An OGC 3D Tiles model connects to a 3D tile service to retrieve tiles for a TileSet3DLayer.

Input files
FileEntry pointDescription
tileset.json/root.jsonxFile containing the root tile metadata as well as links to the sub-tiles/content.
*.jsonFiles containing sub-tile metadata as well as links to its sub-tiles/content.
*.b3dmFile containing Batched 3D Model data. See the B3DM documentation for more information about this file.
*.pntsFile containing batched Point Cloud data. See the PNTS documentation for more information about this file.
Model reference

The decoder assumes a Geocentric or Cartesian reference system.

Supported versions

The current OGC 3D Tiles model supports the OGC 3D Tiles 1.0 specification. The OGC 3D Tiles 1.1 specification is partially supported. It explicitly supports:

  • Decoding from the tileset.json file entry point, with full metadata support, including property values and ranges.
  • Decoding from the tileset.json file entry point, when it is describing an implicit tile structure, making use of subtrees.
  • B3DM/GLB/GLTF payload for the visualization of 3D meshes.
  • I3DM (Instanced 3D Model, .i3dm files) and CMPT (Composite, .cmpt files) tile payloads.
  • Both glTF 1.0 and glTF 2.0 in the B3DM payload.
  • Draco compressed meshes in the glTF data.
  • JPG/PNG/WebP images in the glTF data.
  • The following glTF extensions:
    • KHR_texture_transform
    • KHR_mesh_quantization
    • EXT_meshopt_compression
    • EXT_mesh_features
    • EXT_mesh_gpu_instancing
    • EXT_structural_metadata
    • KHR_gaussian_splatting
    • KHR_gaussian_splatting_compression_spz_2
  • glTF models referencing multiple textures.
  • PNTS payload for the visualization of point clouds, including Draco compression.
  • GLB payload for the visualization of point clouds, including meshopt compression.
  • Additive and Replace refinement for tileset.json.
  • Styling and filtering of point cloud data sets with full expression language support for dynamic, GPU-based styling and filtering of point clouds.
  • Quality management to trade off between visual quality and performance, through the quality factor setting in the API.
  • glTF for the visualization of Gaussian splats, with either compressed SPZ 2.0 payloads, or containing uncompressed splats directly.
  • glTF metallic-roughness materials, shaded with physically based rendering. See MeshStyle.ShadingModel.
Limitations
  • I3DM support is not complete. Orientation of instances can be wrong depending on the input data. East-north-up orientation is not applied.
  • Only composite tiles containing i3dm and b3dm data are supported, not pnts.
  • Multiple-node glTF and multiple contents in OGC 3D Tiles 1.1 are not supported.
  • B3DM does not support animations.
  • Embedded binary textures are supported, but externally referenced textures are not.
  • glTF material extensions other than KHR_materials_unlit are not supported.
  • Declarative Styling in tileset.json is not supported directly, but can be achieved using expressions, based on StyleExpressionFactory.
  • Complex, hierarchical batch table properties are not supported.
  • KTX2/CRN images in the glTF data are not supported.
  • Metadata for subtrees (implicit tiling) is not supported.
  • Metadata in glTF (EXT_structural_metadata) is not supported.
  • glTF as a replacement for PNTS is not supported.
  • In EXT_mesh_features, 'Feature ID by Texture' is not supported.
  • In EXT_structural_metadata, 'Property Textures' and 'Multiple Feature IDs' are not supported.
Performance considerations

Since OGC 3DTiles relies on a tree structure to determine which tile to load. This means the way this tree is built can impact performance. An ideal tree has enough level of details to avoid loading highly details at an early stage while loading those when fully zoomed-in.

Available attributes for styling

OGC 3D tiles point clouds data can be styled using style expressions that make use of attributes. An attribute represents additional metadata for each of the points in the point cloud. Typical attributes are intensity, color, height, etc...

When attributes are available, they can be discovered by manually inspecting the top-level tileset.json or root.json file. That file can contain a section called "properties". It's a list of attribute names, with (optionally) range indications.

This is an example of the attributes that you can find in this file:

"properties" : {
  "Intensity" : {
    "minimum" : 0.0,
    "maximum" : 65535.0
  },
  "Classification" : {
    "minimum" : 2.0,
    "maximum" : 4.0
  },
  "ReturnNumber" : {
    "minimum" : 1.0,
    "maximum" : 7.0
  },
  "Height" : {
    "minimum" : 29.02975082397461,
    "maximum" : 116.85025024414062
  }
}

Additional properties can be discovered by manually inspecting the data itself. More concretely, b3dm files contain a header section that describe these properties. This is an example of the attributes that you can find in a b3dm file:

{
  "fid": {
    "componentType": "INT",
    "type": "SCALAR",
    "byteOffset": 0
  },
  "height" : {
    "componentType" : "FLOAT",
    "type" : "SCALAR",
    "byteOffset" : 24
  }
}
Example: decoding and visualizing OGC 3D Tiles data

This article provides more information and example code.

Parameters
sourcethe OGC 3D tiles endpoint url or the path to the entry point file
optionsoptions for decoding OGC 3D Tiles data, for example an optional custom loader implementation to fetch the OGC 3D Tiles resources.
Returns
the decoded tile set 3D model for the OGC 3D Tiles data.
Exceptions
System.IO.IOExceptionwhen decoding the OGC 3D Tiles data fails.
Since
2022.1