CesiumGS / cesium-omniverse

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

Instancing support #687

Open lilleyse opened 5 months ago

lilleyse commented 5 months ago

Once instancing is supported in cesium-native (https://github.com/CesiumGS/cesium-native/issues/458) we'll need a way to convert EXT_mesh_gpu_instancing to instanced USD/Fabric geometries.

See UsdGeomPointInstancer as a potential starting point. Not sure what the equivalent Fabric representation looks like.

lilleyse commented 5 months ago

I found some sample data from the OpenUSD website: PointInstancedMedCity.zip

image

#

I saved the Fabric stage (fabric_stage.zip) and had a look at the Fabric representation. The instanced meshes have an _instancerPath attribute which points to a prim that has instanced positions, orientations, scales. With more reverse engineering we should be to replicate this in FabricGeometry.

#

How to save the Fabric stage: