我想要把做好的一个动画导入到另一个spine文件里,导入的过程没有问题,但是导入好它与原本的样子不一样了,我并没有修改任何骨骼,也没有更改任何网格顶点的位置
以下是它原本的样子:
![
]
这是我导入到另一个spine后的样子:
![
把动画导入到另一个spine文件里后出现错误
diamondmonster I'm sorry to hear you're having trouble. Could you tell us which version of Spine you are using?
Misaki 我正在使用的版本是4.1.23,请问这是bug吗?有什么办法可以解决吗?
diamondmonster If it was 4.2-beta, I thought the bug might have occurred when we added something, but with 4.1.24, I can't think of the cause just from the animated GIFs. Could you please email us a spine project so we can confirm the problem? contact@esotericsoftware.com
Please include the URL of this forum thread in the email so we know the context. Then we can take a look at what's wrong.
Misaki 好的,我已经发送邮件了,感谢!
diamondmonster Thanks for sending the Spine project files! This should probably work as expected, not a bug. The setup is a bit different for the two Spine projects you sent us:
One is not bound to any bones and one is bound to the bone
and bone2
bones. The position of the vertex is determined by a combination of both the bone transform which affect the vertex and the vertex deformation, but since the bound bones are different, I suspect that this will result in different reference positions and the shapes will not align as you have posted.
Therefore, aligning the bound bones of these two mesh attachments should solve the problem.
This could be done by deleting bone
and bone2
as you wrote in your email, but to begin with it is better to avoid using the mesh deformation key as much as possible. This is explained in detail in the user guide, which we encourage you to read: https://zh.esotericsoftware.com/spine-keys#%E5%8F%98%E5%BD%A2%E5%85%B3%E9%94%AE%E5%B8%A7
In conclusion, in both Spine projects, it would be better to bind the mesh attachment to one or more bones and deform and animate those bones.
If you have any questions, please do not hesitate to ask us!
Misaki 我应该明白了,谢谢!我还有最后一个问题:所以如果我以后要再做类似的导入动画项目的工作,需要确保网格绑定的骨骼一致对吗?
diamondmonster Yes, your understanding is correct. Basically, the animation import is intended to be done between skeletons with the same setup, so if the setup is different for each skeleton, the animations may not import properly.
Misaki 好的!我懂了,非常感谢!