CesiumGS / cesium-omniverse

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

Invert option for polygon raster overlays #633

Closed r-veenstra closed 8 months ago

r-veenstra commented 8 months ago

Add support for inverting the polygon raster overlay as per Cesium for Unreal. Make clipping exclude outside of the polygon instead of inside.

image

image

cc @corybarr

corybarr commented 8 months ago

Removing the inherited CesiumCartographicPolygon prim makes this challenging. With the prim, we can easily add a corresponding property to the schema, which I believe is the proper way to do this. We can create the invert attribute during instantiation at the Python level. However, this has disadvantages:

Image

r-veenstra commented 8 months ago

@corybarr doesn't this just live on the CesiumPolygonRasterOverlay prim schema, which should still exist? In Unreal its a property of the overlay, as opposed to individual polygons.

corybarr commented 8 months ago

@corybarr doesn't this just live on the CesiumPolygonRasterOverlay prim schema, which should still exist? In Unreal its a property of the overlay, as opposed to individual polygons.

@r-veenstra Yeah, you're right. I just came back here to add that. Seems I worked a bit too much today.