You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (CppUtil::contains(pTileset->getRasterOverlayPaths(), _path)) {
constauto pEllipsoid = pTileset->getEllipsoid();
if (!maybeEllipsoid) {
maybeEllipsoid = pEllipsoid;
} elseif (*maybeEllipsoid != pEllipsoid) {
// If not all tilesets that reference this raster overlay use the same ellipsoid then set it to nullptr
returnnullptr;
}
}
}
return maybeEllipsoid.value_or(nullptr);
}
If you attach a raster overlay to tilesets with different ellipsoids it will give up and use the default ellipsoid.
I think a better approach would be to create an OmniRasterOverlayInstance object that points to the OmniRasterOverlay and owns the Cesium Native object. That way each instance can receive its own ellipsoid.
The text was updated successfully, but these errors were encountered:
In supporting custom ellipsoids we introduced some coupling between
OmniTileset
andOmniRasterOverlay
.cesium-omniverse/src/core/src/OmniRasterOverlay.cpp
Lines 137 to 154 in e9a4bd0
If you attach a raster overlay to tilesets with different ellipsoids it will give up and use the default ellipsoid.
I think a better approach would be to create an
OmniRasterOverlayInstance
object that points to theOmniRasterOverlay
and owns the Cesium Native object. That way each instance can receive its own ellipsoid.The text was updated successfully, but these errors were encountered: