Skip to content

Commit ed6983e

Browse files
bottlerfacebook-github-bot
authored andcommitted
Experimental glTF reading
Summary: Experimental data loader for taking the default scene from a GLB file and converting it to a single mesh in PyTorch3D. Reviewed By: nikhilaravi Differential Revision: D25900167 fbshipit-source-id: bff22ac00298b83a0bd071ae5c8923561e1d81d7
1 parent 0e85652 commit ed6983e

File tree

9 files changed

+771
-3
lines changed

9 files changed

+771
-3
lines changed

docs/notes/io.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,13 @@ and to save a pointcloud you might do
2222
pcl = Pointclouds(...)
2323
IO().save_point_cloud(pcl, "output_pointcloud.obj")
2424
```
25+
26+
For meshes, this supports OBJ, PLY and OFF files.
27+
28+
For pointclouds, this supports PLY files.
29+
30+
In addition, there is experimental support for loading meshes from
31+
[glTF 2 assets](https://github.com/KhronosGroup/glTF/tree/master/specification/2.0)
32+
stored either in a GLB container file or a glTF JSON file with embedded binary data.
33+
This must be enabled explicitly, as described in
34+
`pytorch3d/io/experimental_gltf_io.ply`.

0 commit comments

Comments
 (0)