I have a dog(Animated3D), i want to dress it with different decors. For example: hat、shoes、clothes and so on. And the decors should animate with the dog.
How to implement this?
There is my first ideal:
1, Build dog model and hat model.
2, Make dog-bones-animation and hat-bones-animation.
3, export dog.bones and hat.bones.
4, animate dog.bones and hat.bones.
That's workable. But i think that the hat's animation is just relying to the dog, so i want to build just an animated-dog, and a hat without animation-info(skinclips), let the hat share the skinclips with the dog. If can do this, how? I tried, but didn't succeed:
1, In maya, build dog model and hat model, let them share the same skeleton.
2, Export dog.bones with full animations, export hat.bones with just 1 frame animations.
3, In code:
hat.replaceSkeleton(dog.getSkeleton());
hat.setSkinClipSequence(dog.getSkinClipSequence());
//render loop
playDogAnimation();
playHatAnimation();