5
\$\begingroup\$

I am using the collada file format to contain my model and animation but when I use AssImp to load the file the name will be empty for the animation. Where is the name for animation set on the collada file format? The documentation seems to have pointed me to library_animations but I tried setting "name" and "id", but both did not end up setting the animation name.

To get the animation name I am simply doing

        aiAnimation* animation = mAIScene->mAnimations[i];
        auto test = animation->mName;
\$\endgroup\$
  • \$\begingroup\$ What are you using to export the file? The problem might be the exporter. \$\endgroup\$ – sjaustirni Jul 27 '15 at 11:14
0
\$\begingroup\$

The problem is probably the exporter. According to official docs:

aiString aiAnimation::mName

The name of the animation.

If the modeling package this data was exported from does support only a single animation channel, this name is usually empty (length is zero).

Try to find one which does support multiple animations channel.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.