Skip to content

[3d-tiles] parseImplicitTiles fails to load subtree if availableLevels in the implicit tiling scheme is 1 #3193

Open
@brncsk

Description

@brncsk

The condition in the line below fails to account for the case when maximumLevel is 0:

I'm admittedly no 3d tiles expert but I guess this should be !Number.isFinite(maximumLevel) in order to cater for tilesets where the implicit tiling scheme defines a single level (copy-pasting the following from a Cesium Tileset we're using):

    "implicitTiling": {
      "subdivisionScheme": "OCTREE",
      "subtreeLevels": 5,
      "availableLevels": 1,
      "subtrees": { "uri": "subtrees/{level}/{x}/{y}/{z}.subtree" }
    },

maximumLevel is being set to 0 here in normalizeImplicitTileHeaders():

maximumLevel: Number.isFinite(availableLevels) ? availableLevels - 1 : maximumLevel,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions