Open bartteunis opened 2 years ago
See also the FBX exporter under Armatures. It seems to have the same export option.
The glTF exporter has an export option called Export Deformation Bones Only
under Animation. It doesn't seem to be documented (yet).
To look into for this issue:
use_deform
bones map to a valid SMF rig? (node numbering/indices, etc.)Some other things to look into (general Blender armatures, Rigify setups, etc.):
After some first testing it turns out that the hierarchy for a more complex setup could either be:
use_deform
set to True
). For e.g. the default Rigify setup this already reduces the number of bones from 222 to 56 (with 35 use_deform
bones)
This'd mean that parts of the bone hierarchy are still exported with it.
The FBX exporter does this ("Only write deforming bones (and non-deforming ones when they have deforming children).")use_deform
will be exported (35 for a default Rigify rig)
This will require inserting and extensive use of SMF's detached nodes.
Blender bones have a property
deform
that determines if the bone deforms any vertices/geometry.\ The SMF exporter currently doesn't do anything with that info though it should be straightforward and a fairly simple addition to set the weights to zero for those bones that havedeform
set toFalse
.Idea taken from the Collada exporter's
Deform Bones Only
as described under Armature Options.\ Exporting only deform bones may be another interesting thing to add.