[SOLVED] Is there a Bounding Box accessible on the Gsplat component?

Hi all,

I wasn’t able to find any information on this by searching the web/forum.

I’m wondering if there is any way to access the Bounding Box of a Gaussian Splat Model (for example for automatic Camera View framing of dynamically changing Models).

From the documentation, I have seen the GSplat component contains a customAabb Accessor, but it seems to be there more for manually adding a custom Aabb and didn’t return usable values.

The editor shows a Bounding Box around the Model, so clearly it is computed somewhere. Can we access it somehow?

I appreciate any help or pointers in the right direction.

Regards,
Felix

You could probably use private API to get it:
entity.gsplat.instance.meshInstance.aabb
(untested, but should work … test instance for undefined, as it likely is undefined or null if the splat is not loaded)

1 Like

This works! Thank you very much!

1 Like