Repository navigation
Conversation
|
Thank you for the pull request, @arobison! ✅ We can confirm we have a CLA on file for you. |
There was a problem hiding this comment.
🟢 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 = { |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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>
7091fe2 to
9db1b82
Compare
e397c1f to
d94d36f
Compare
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
CONTRIBUTORS.mdCHANGES.mdwith a short summary of my changeAI acknowledgment
If yes, I used the following Tools(s) and/or Service(s):
If yes, I used the following Model(s):