Skip to content

Allow selecting SPZ version when converting PLY → SPZ (engine rejects v3) #213

@popomore

Description

@popomore

I’m converting a .ply Gaussian Splat to .spz using compress-to-spz.js / spz-js, and my engine fails to load the result with the following error:

Error: Unsupported SPZ version: 3
    at new SpzReader (b29a3111-679d-4c2d-ba77-ee2896492e3c:5015:15)
    at unpackSpz (b29a3111-679d-4c2d-ba77-ee2896492e3c:5750:17)
    at onMessage (b29a3111-679d-4c2d-ba77-ee2896492e3c:5584:27)
    at initialize (b29a3111-679d-4c2d-ba77-ee2896492e3c:5864:7)

From Niantic’s SPZ spec, the header version currently supports 2 and 3, and v3 changes how rotations are encoded vs v2. Some readers (including ours) only support v2 right now. Could you please advise how to force the converter to emit SPZ v2? (e.g., an option like serializeSpz(gs, { version: 2 }) or a CLI flag)

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