[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

It seems that this method is no longer working, any idea on how to make it work in the lastest version of the engine ?

Thanks !

entity.gsplat.customAabb should work