Hello !
the SplatMesh.initialized promise is quite useful to know when a mesh is ready - to query the boundingBox, or to render offline for instance (i.e. take a snapshot).
However for progressive files it's useless as it fires when the splats haven't been populated yet.
It would be nice to be able to track when the LOD/paging is ready in regards to the current camera.
Currently I think the only way to roughly get this information is to keep rendering for a few frames and poll the SplatMesh.numSplats until it seems stable, using some internals like sparkRenderer.lodDirty, sparkRenderer.sortDirty, sparkRenderer.sorting which is not ideal.
Is there a better solution?
Hello !
the
SplatMesh.initializedpromise is quite useful to know when a mesh is ready - to query the boundingBox, or to render offline for instance (i.e. take a snapshot).However for progressive files it's useless as it fires when the splats haven't been populated yet.
It would be nice to be able to track when the LOD/paging is ready in regards to the current camera.
Currently I think the only way to roughly get this information is to keep rendering for a few frames and poll the
SplatMesh.numSplatsuntil it seems stable, using some internals likesparkRenderer.lodDirty,sparkRenderer.sortDirty,sparkRenderer.sortingwhich is not ideal.Is there a better solution?