CesiumGS / cesium-unreal

Bringing the 3D geospatial ecosystem to Unreal Engine
https://cesium.com/platform/cesium-for-unreal/
Apache License 2.0
886 stars 286 forks source link

Add ability to exclude vertices from meshes #1300

Open Lildreas opened 8 months ago

Lildreas commented 8 months ago

Hi,

please find a description of the requested feature here: https://community.cesium.com/t/suggestion-exclusion-volume-for-google-3dtiles/28110/7

Best Andreas

j9liu commented 7 months ago

Hi @Lildreas,

Thanks for opening this issue. I've modified the title so it is more readily clear what feature is being requested.

To elaborate on what I wrote on the forum: this would require the plugin (more likely, Cesium Native) to modify glTFs as they are loaded. This would involve a post-process stage that checks each mesh against this volume, and to prune vertices that are inside of it. If we’re not careful with the algorithm, this could lead to malformed meshes depending on the placement of the volume.

This will probably have performance implications depending on the size of the volumes, but hopefully it can be mitigated with bounding volume checks, both at the tile level and at the mesh level using accessor min / max.

j9liu commented 2 months ago

Came up on the forum again here: https://community.cesium.com/t/delete-these-floating-objects/31580

KieranCoppins commented 2 months ago

Just adding +1 to be able to cull meshes that includes collision mesh as mentioned in my issue #1395