Skip to content

Commit 901f0d6

Browse files
authored
Merge pull request #53 from cdyk/multi-gltf
Option to split the hierarchy into multiple GLTF/GLB files
2 parents 56896be + cc8f376 commit 901f0d6

File tree

7 files changed

+290
-192
lines changed

7 files changed

+290
-192
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ Options:
5151
rotation of 90 degrees about the X axis such that the +Z axis
5252
will map to the +Y axis, which is the up-direction of GLTF-
5353
files. Default value is true.
54+
--output-gltf-split-level=<uint> Specify a level in the hierarchy to split the output into
55+
multiple files, where 0 implies no split. Geometries and
56+
attributes below the split point are included in the first
57+
file, while subsequent files while have empty nodes just to
58+
represent the hierarchy. Default value is 0.
5459
--group-bounding-boxes Include wireframe of boundingboxes of groups in output.
5560
--color-attribute=key Specify which attributes that contain color, empty key
5661
implies that material id of group is used.

src/Common.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ void align(Store* store, Logger logger);
110110
bool exportJson(Store* store, Logger logger, const char* path);
111111
bool discardGroups(Store* store, Logger logger, const void* ptr, size_t size);
112112
bool exportRev(Store* store, Logger logger, const char* path);
113-
bool exportGLTF(Store* store, Logger logger, const char* path, bool rotateZToY, bool centerModel, bool includeAttributes);
113+
bool exportGLTF(Store* store, Logger logger, const char* path, size_t splitLevel, bool rotateZToY, bool centerModel, bool includeAttributes);

0 commit comments

Comments
 (0)