Skip to content

Commit

Permalink
Merge pull request #53 from cdyk/multi-gltf
Browse files Browse the repository at this point in the history
Option to split the hierarchy into multiple GLTF/GLB files
  • Loading branch information
cdyk authored Dec 18, 2022
2 parents 56896be + cc8f376 commit 901f0d6
Show file tree
Hide file tree
Showing 7 changed files with 290 additions and 192 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ Options:
rotation of 90 degrees about the X axis such that the +Z axis
will map to the +Y axis, which is the up-direction of GLTF-
files. Default value is true.
--output-gltf-split-level=<uint> Specify a level in the hierarchy to split the output into
multiple files, where 0 implies no split. Geometries and
attributes below the split point are included in the first
file, while subsequent files while have empty nodes just to
represent the hierarchy. Default value is 0.
--group-bounding-boxes Include wireframe of boundingboxes of groups in output.
--color-attribute=key Specify which attributes that contain color, empty key
implies that material id of group is used.
Expand Down
2 changes: 1 addition & 1 deletion src/Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ void align(Store* store, Logger logger);
bool exportJson(Store* store, Logger logger, const char* path);
bool discardGroups(Store* store, Logger logger, const void* ptr, size_t size);
bool exportRev(Store* store, Logger logger, const char* path);
bool exportGLTF(Store* store, Logger logger, const char* path, bool rotateZToY, bool centerModel, bool includeAttributes);
bool exportGLTF(Store* store, Logger logger, const char* path, size_t splitLevel, bool rotateZToY, bool centerModel, bool includeAttributes);
Loading

0 comments on commit 901f0d6

Please sign in to comment.