-
Notifications
You must be signed in to change notification settings - Fork 155
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
Animation of the skeleton fitted to mesh animation with only rotation change in each keyframe #20
Comments
The solution of Dem Bones (SIGGRAPH Asia 2012 paper) is solving the global transformations and then converting them to joint transformations (with the input hierarchy). As the result, Dem Bones does not preserve the length of the bones (or local joint translations are changed on each keyframe). At this point, I can suggest a cheat (ugly solution?) to achieve translation lock is undoing the translation update of Dem Bones. It can be done by overwriting the old translation values, either by post scripts or a hack into dem-bones/src/command/FbxWriter.cpp Line 198 in bb4ea9f (just add something like: lt = lbt.replicate(model.nF, 1); // Assigning translations by copies of the bind pose and also, need to run with bindUpdate=0) The cheat above will obviously not minimize the reconstruction error. Logically, implementing optimal translation lock would require the solution in the SIGGRAPH 2014 paper. Dem Bones (current version) does not implement this feature (due to low demand - as my personal observation). |
Thanks for the response! I'll try the ugly hack. |
Technically, the data structures is ready for adding translation lock so implementation will not be difficult. |
I meet the same problem. I think the cheat maybe just lock transform when writing fbx file, it would not lock the length of bones when optimization. So the translation and rotation is not we want. |
@binhhuyle I have send a case for you by email. please check your gmail box. And I can help testing your implementation. |
This cheat locks the translate parts of the joints. But as the joints are organized in a hierarchy (skeleton), that is the same as locking bone lengths. And I have received your email. |
That would be great. I can provide You a synthetic animation with noised rotation angles to test transformation estimation without translation change. This would be helpful? |
Hi. |
Hi,
First, I want to say that I'm very impressed with DemBones solution and its possibilities. I'm wondering if it is possible to obtain the output animation of the RIG with changed only the rotation in the joints (translation would be only applied to the root). From the documentation of the parameters, it is not obvious to me how to achieve this. There is a
demLock
parameter, but it seems to lock the whole transformation of the joint in the animation.The text was updated successfully, but these errors were encountered: