Skip to content
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

Merged
merged 3 commits into from
Feb 8, 2018

Conversation

najadojo
Copy link
Contributor

@najadojo najadojo commented Feb 7, 2018

This assumes that each LOD document has the same number and order of animations that should be cumulative in the output document.

…that each LOD document has the same number and order of animations that should be cumulative in the output document.
AddIndexOffset(skin.skeletonId, nodeOffset);
AddIndexOffset(skin.inverseBindMatricesAccessorId, accessorOffset);

for (auto Itr = skin.jointIds.begin(); Itr != skin.jointIds.end(); Itr++)
Copy link
Contributor

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) ?

Copy link
Contributor Author

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

Copy link
Contributor

@robertos robertos Feb 8, 2018

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;
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct

Copy link
Contributor Author

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

Copy link
Contributor

@robertos robertos left a 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!

@robertos
Copy link
Contributor

robertos commented Feb 8, 2018

I'll merge this as soon as CI passes

@robertos robertos merged commit 2c1d159 into microsoft:master Feb 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants