Skip to content

Commit

Permalink
Recommend trimesh for loading glTF files
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Jan 30, 2024
1 parent 9c36398 commit abf6484
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/viser/_message_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,11 @@ def add_glb(
) -> GlbHandle:
"""Add a general 3D asset via binary glTF (GLB).
To load glTF files from disk, you can convert to GLB via a library like
`pygltflib`.
For glTF files, it's often simpler to use `trimesh.load()` with
`.add_mesh_trimesh()`. This will call `.add_glb()` under the hood.
For glTF features not supported by trimesh, glTF to GLB conversion can
also be done programatically with libraries like `pygltflib`.
Args:
name: A scene tree name. Names in the format of /parent/child can be used to
Expand Down

0 comments on commit abf6484

Please sign in to comment.