CesiumGS / cesium-omniverse

Bringing the 3D geospatial ecosystem to Omniverse
https://cesium.com/platform/cesium-for-omniverse/
Apache License 2.0
55 stars 7 forks source link

Globe anchors aren't working with payloads using a resolve transform #660

Closed r-veenstra closed 7 months ago

r-veenstra commented 7 months ago

I was updating the Globe Anchors tutorial and noticed Globe Anchors are not functioning correctly with Payloads, when adding the payload results in additional resolve transforms, such as these.

image

Reproduction steps:

image

lilleyse commented 7 months ago
  • The Globe Anchor properties appear on the prim, however the lat/lon/height is 0,0,0
  • The object doesn't remain on the correct location on the globe if the CesiumGeoreference is moved.
  • Editing any of the lat/lon/height or ECEF positions doesn't change position of the object
  • Globe anchor still doesn't work after a save then reload

If you see any of these, it's because the globe anchor is disabled, and a warning should have showed up in the console.

2024-02-01 14:22:34 [Warning] [cesium.omniverse.plugin] [2024-02-01 09:22:34.693] [cesium-omniverse] [warning] Globe anchor xform op order must [translate, rotate, scale] without additional transforms.

I open a PR so that globe anchors work with additional transforms: https://github.com/CesiumGS/cesium-omniverse/pull/662