Failed to create Gaussian mesh

hello everyone,I failed to create Gaussian mesh using Sog model.

new BABYLON.GaussianSplattingMesh

const mesh = new BABYLON.GaussianSplattingMesh("1233",

"https://raw.githubusercontent.com/CedricGuillemet/dump/master/hornedlizard/hornedlizard.sog",scene)

I got the following error:gaussianSplattingMesh.ts:1593 Uncaught (in promise) RangeError: byte length of Float32Array should be a multiple of 4.

And loading Gaussian models in the sandbox will also generate error:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘uniqueId’)

1 Like

sog | Babylon.js Playground This is my PG, I want to expand the Gaussian grid, but I don’t want to load the Gaussian model using a loader

Hi @Happy0Ending This issue should be fixed now.

I can open your PG without an error.

1 Like

create new GSMesh USE SOG MODEL | Babylon.js Playground ,It seems that only the .splat model can be loaded through this method.

I can repro. I’m taking a look.

Indeed, url passed to GS mesh is a splat. To load a dog, spz,… you need to use ImportMeshAsync and then get the loaded mesh. Like in these PG:

1 Like