Animation support

Issue #1 new
Hambalkó Bence created an issue

It would be really nice if this would support witcher 3 animations properly. I know its being worked on but I just wanted to emphatise it would be really nice.

Comments (12)

  1. Jean-Louis Boudrand repo owner

    Yes, it would be nice. I had started to work on this a few months later, but I still have an issue that I haven't succeeded to solve yet. I still want to work on this to add the feature in the tool, but currently I haven't the time to work on this project.

  2. Jean-Louis Boudrand repo owner

    Currently I have identified the global structure of the animations, where are stored the keyframes with the position, rotation and scale of the bones and I think that the issue is with the quaternions of the keyframes to describe the rotations of the bones. They are stored in a compressed format, in most of the case into 48 bits for each quaternion, so the main issue is about how to correctly read them, because there are not only one way to compress a quaternion. I think that I'm not very far of the solution, with 4 components of 12 bits (you can check the current code in CW3ENTMeshFileLoader.cpp line 1016), it gives 4 float which look like to a normalized quaternion, so I have tried a few things based on this but when you test the animations are still broken with wrong orientation of the bones, and I don't know exactly what is wrong with that.

    If someone want to try to fix this or if you have an idea about this any help is very appreciated. I can help and to provide some instructions if someone want to build the project to work on it.

    For myself, I have made a little break on this project but I will retry to fix this one day, and if someone want to work on this I'm still motivated to try some solutions and to work on this.

  3. Hambalkó Bence reporter

    Me and my friend have started working on a separate tool in c# following your project and if we manage to figure out something I will let you know. It's pretty much the same as this but rather then exporting/converting its for editing models.

  4. Jean-Louis Boudrand repo owner

    Interesting project. If you discover new things about the file format or if your code is open source I'm curious to see that

  5. Jean-Louis Boudrand repo owner

    Interesting, I will look your code when I will have the time. Maybe it will help me to understand some things and maybe I will have some contributions to add. Nothing new here, I havn't worked on the tool since the last time.

  6. Log in to comment