Skip to content

Cannot know when a paged/lod file is "ready" #364

@ayamflow

Description

@ayamflow

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions