Skip to content

Support PLY files without spherical harmonics (f_rest_*) data in ply_to_usd conversion #106

@SuperRoot-LC

Description

@SuperRoot-LC

Thank you for your amazing work at first! However, I still have some questions about the converting PLY files to USDZ.

When using threedgrut.export.scripts.ply_to_usd to convert a 3D Gaussian Splatting (3DGS) PLY file, I encountered the following error:“main - ERROR - Error processing PLY file:”
Upon debugging, I found that the error occurs because the PLY file does not include spherical harmonics (f_rest_*) attributes. This makes the conversion fail, as the script currently assumes that SH data is always present.

However, many vendors and tools—including XGRIDS and SuperSplat—have already adopted pipelines that omit spherical harmonics entirely, using only diffuse color (f_dc_*) for simpler or stylized rendering.

It would be very helpful if the ply_to_usd script could support this more minimal PLY format as well, by either:

Skipping SH processing if f_rest_* is absent

Or gracefully falling back to a diffuse-only material

Would support for this case be considered in future updates?

Thank you!

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