Skip to content

Babylon.js GaussianSplattingMesh addPart Method Not Displaying Splat Models #17894

@pengzhen85

Description

@pengzhen85

How to use the addPart method of GaussianSplattingMesh to display chunked Gaussian splat models? My code is as follows, and I found that the splat does not display after running. What could be the reason? Here is the code:
const splat = new BABYLON.GaussianSplattingMesh("GS", null, scene, true);
// Load sub-objects
let subs = ["17_107839_36240 (1).spz", "17_107839_36240 (2).spz", "17_107839_36240 (3).spz"];
for (let sub of subs) {
let partGs = new BABYLON.GaussianSplattingMesh("partGs" + i, null, scene, true);
await partGs.loadFileAsync("./output/" + sub);
splat.addPart(partGs, false);
}
splat.parent = root;
splat.position.set(0, 0, 0);
splat.scaling.set(1, -1, 1);
splat.rotation = new BABYLON.Vector3(0, 0, 0);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions