cesium-omniverse
cesium-omniverse copied to clipboard
Add support for boolean property table properties
We didn't add support for boolean properties in #573. It would look something like this:
- Allow boolean properties in
MetadataUtil - Add
BOOLEANtoDataType,MdlInternalPropertyType, andMdlExternalPropertyType. Update template specializations inDataTypeUtiland anything else that switches based onDataType - Add
cesium_property_boolandcesium_internal_property_table_bool_lookuptocesium.mdl.cesium_property_boolcan be modeled aftercesium_property_int,cesium_internal_property_table_bool_lookupcan be modelled aftercesium_internal_property_table_int_lookup(but withouthas_no_data,no_data, anddefault_value, which aren't relevant for boolean properties). - Update
FabricMaterial - Add
cesium_property_booltoFabricUtil::isCesiumPropertyNode
I'm probably forgetting some areas, but this should be a good start.
Sample tileset: 3d-tiles-samples-boolean-in-property-table 2024-01-09.zip (same testing procedure as https://github.com/CesiumGS/cesium-omniverse/issues/614)