This is something I noticed just now after trying to load in my own gcloud files. They're generated with Polycam, and their Z axis is inverted from the one that this plugin uses. My quick method of rotating the cloud was with the following function:
Initialising the GlobalTransform of the cloud with a 4x4 matrix. The rotation is successful, but the splats get culled at odd angles where they're definitely supposed to be visible. It seems like the rendering is not respecting the GlobalTransform component on the cloud and assumes it's always default.
Before
After. Same angle, but the trees are getting cut off from their roots or trunks and a bunch of other gaussians are getting culled unnecessarily.
For context, the same angle in Polycam's web viewer.
This angle makes it seem like the issue is with the sorting algorithm. The trees are getting cut off where the hill behind them begins.
A related but separate issue: should GaussianClouds use the Transform component like built-in Bevy primitives?
This is something I noticed just now after trying to load in my own gcloud files. They're generated with Polycam, and their Z axis is inverted from the one that this plugin uses. My quick method of rotating the cloud was with the following function:
Initialising the GlobalTransform of the cloud with a 4x4 matrix. The rotation is successful, but the splats get culled at odd angles where they're definitely supposed to be visible. It seems like the rendering is not respecting the GlobalTransform component on the cloud and assumes it's always default.
Before![image](https://github.com/mosure/bevy_gaussian_splatting/assets/31853349/865eeb11-a15c-453d-b7d7-d81df3355100)
After. Same angle, but the trees are getting cut off from their roots or trunks and a bunch of other gaussians are getting culled unnecessarily.![image](https://github.com/mosure/bevy_gaussian_splatting/assets/31853349/25b77e56-201d-4924-a7bc-ea52e50e954b)
For context, the same angle in Polycam's web viewer.![image](https://github.com/mosure/bevy_gaussian_splatting/assets/31853349/4a690324-3f4a-4108-b659-2a0dfef502d5)
This angle makes it seem like the issue is with the sorting algorithm. The trees are getting cut off where the hill behind them begins.![image](https://github.com/mosure/bevy_gaussian_splatting/assets/31853349/c13ff342-92cd-4676-988e-67b62a796e59)
A related but separate issue: should GaussianClouds use the Transform component like built-in Bevy primitives?