Closed lewibs closed 2 months ago
so I admit I don't have a nice, clean way of doing this -- maybe I need to add one. What you can do in the meantime is add a callback to be executed whenever the splat tree is constructed, something like:
const viewer = new GaussianSplats3D.Viewer();
viewer.splatMesh.onSplatTreeReady(() => {
console.log("splat tree ready")
});
viewer.addSplatScene(<path>)
.then(() => {
viewer.start();
});
I'm going to close this for now, hopefully in a not-too-far-in-the-future update I will add a nicer way of doing this :)
I have an action which I want to run after the splat is loaded and also the tree has been initialized is there a method for doing this?