Skip to content

Support EXT_georeference in 3D Tiles 2.0 tilesets - #14134

Draft
arobison wants to merge 27 commits into
gltf-typesfrom
ext-georeference
Draft

arobison wants to merge 27 commits into
gltf-typesfrom
ext-georeference

Conversation

@arobison

@arobison arobison commented Dec 2, 2026 •

Copy link
Copy Markdown

Cesium3DTileset.fromGltf now places nodes with the draft EXT_georeference glTF extension in east-north-up axes at their longitude, latitude and height, on the ellipsoid of the CRS declared with EXT_geospatial_crs, after the node's own transform.

Description

Issue number and link

Testing plan

Author checklist

  • I have submitted a Contributor License Agreement
  • I have added my name to CONTRIBUTORS.md
  • I have updated CHANGES.md with a short summary of my change
  • I have added or updated unit tests to ensure consistent code coverage
  • I have updated the inline documentation, and included code examples where relevant
  • I have performed a self-review of my code

AI acknowledgment

  • I used AI to generate content in this PR
  • If yes, I have reviewed the AI-generated content before submitting

If yes, I used the following Tools(s) and/or Service(s):

If yes, I used the following Model(s):

Jeshurun Hembd added 26 commits December 1, 2026 10:00
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Thank you for the pull request, @arobison!

✅ We can confirm we have a CLA on file for you.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the experimental georeferencing support.

No open issues 🎉

What changed in this PR

Adds draft EXT_georeference support to Cesium3DTileset.fromGltf, placing experimental 3D Tiles 2.0 nodes at geographic coordinates after applying their local transforms.

Changes:

  • Computes georeferenced transforms using the declared coordinate reference system’s ellipsoid.
  • Integrates placement and axis handling into tileset loading.
  • Adds unit tests, integration fixtures, and a changelog entry.
File Description
Specs/​Data/​Cesium3DTiles/​Tilesets/​TilesetGltfGeoreferencedWithUnknownCrs/​root.tileset.gltf Fixture for unknown-CRS fallback.
Specs/​Data/​Cesium3DTiles/​Tilesets/​TilesetGltfGeoreferencedWithoutCrs/​root.tileset.gltf Fixture for missing-CRS behavior.
Specs/​Data/​Cesium3DTiles/​Tilesets/​TilesetGltfGeoreferenced/​root.tileset.gltf Fixture for georeferenced transform hierarchies.
packages/​engine/​Specs/​Scene/​GltfGeoreferenceSpec.js Tests transforms, axes, and ellipsoid selection.
packages/​engine/​Specs/​Scene/​Cesium3DTilesetSpec.js Tests placement through tileset loading.
packages/​engine/​Source/​Scene/​GltfGeoreference.js Implements georeference transforms and ellipsoid lookup.
packages/​engine/​Source/​Scene/​Cesium3DTileset.js Integrates georeferencing into glTF tileset loading.
CHANGES.md Documents the new experimental support.

Review effort: Balanced


// The ellipsoids of the coordinate reference systems that EXT_geospatial_crs_wkid
// may declare, by authority and code.
const ellipsoidsByCrs = {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this PR might be cleaner if it's rewritten on top of #14123, which should be ready next week.

This JS enum will then already be defined in the gltf package, with full TS support.

* fallback ellipsoid.
* </p>
*
* @param {object} gltfJson The glTF JSON.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This untyped object signature is what we are trying to get away from. See #13949

Cesium3DTileset.fromGltf now places nodes with the draft EXT_georeference
glTF extension in east-north-up axes at their longitude, latitude and height,
on the ellipsoid of the CRS declared with EXT_geospatial_crs, after the
node's own transform.

Generate glTF types for EXT_georeference and EXT_geospatial_crs_wkid in
@cesium/gltf and use them, instead of untyped objects, in GltfGeoreference.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@arobison
arobison changed the base branch from main to gltf-types December 3, 2026 15:55
@jjhembd
jjhembd force-pushed the gltf-types branch 8 times, most recently from e397c1f to d94d36f Compare December 4, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants