-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add animation channels and skins to merged object list. #12
Conversation
…that each LOD document has the same number and order of animations that should be cumulative in the output document.
glTF-Toolkit/src/GLTFLODUtils.cpp
Outdated
AddIndexOffset(skin.skeletonId, nodeOffset); | ||
AddIndexOffset(skin.inverseBindMatricesAccessorId, accessorOffset); | ||
|
||
for (auto Itr = skin.jointIds.begin(); Itr != skin.jointIds.end(); Itr++) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not for (auto joint : skin.jointIds) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following the node.children pattern above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe you can fix that too then, if possible :)
{ | ||
// post-fix with lod level indication; | ||
// no functional reason other than making it easier to natively read gltf files with lods | ||
skin.name += nodeLodLabel; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the skin names never used directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also this is copy/paste from node above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this!
I'll merge this as soon as CI passes |
This assumes that each LOD document has the same number and order of animations that should be cumulative in the output document.