Gaussian Splat mesh flips on Y after applying scaling

Hi @Cedric

Noticed a weird problem with Gaussian Splats in my projects that flip Y when scaling GS mesh

Here’s the playground reproduction

https://playground.babylonjs.com/?inspectorv2=true#KGRFFQ#13

gaussianSplatMesh.scaling = new BABYLON.Vector3(1.2, 1.2, 1.2);

This happens for any vector, even if it is 1,1,1.

I guess you can give some info on this. Thanks!

Hi @bitbybit-dev

yes, loading a GS might change scaling.y. Best practice is to scale like this:

https://playground.babylonjs.com/?inspectorv2=true#KGRFFQ#14

2 Likes

Thanks for pointing that out! If I may ask - if this won’t be patched, will this behavior remain consistent across all splats? I’m trying to determine whether I should implement a solution for backwards compatibility to my users that used this not-recommended approach.

It should stay consistent now. It’s been the wild west for quite some but I’ve done a pass on all supported formats and it should not change now. So, non uniform scaling are expected now, depending on formats and other parameters. In the future, some format might have a coordinate system that will modify it.

1 Like

Thanks for all the info. Also - great work on splats, nice to see so much happening in this area! Have a great day.

1 Like