DanAmador / PuppetMotion

Blender plugin used to animate a rig as if it were a puppet with the aid of an external Unity Client which analyzes and sends Leap Motion data
MIT License
45 stars 7 forks source link

Fix Rotation #8

Open DanAmador opened 5 years ago

DanAmador commented 5 years ago

As Unity and Blender use different coordinate systems the axis are always misaligned and the rotations never work correctly.

Ranner198 commented 5 years ago

Will do some work on this this weekend, what is it exactly you're looking for? a remapper? wrapper? converter? etc?

DanAmador commented 5 years ago

Whichever solution you find the best, honestly. 😄

I worked a bit on the rotation branch and it works but only for bones that are pointing forward.

If you can find any solution which is able to change the basis from the Unity Coordinate system to the Blender one and keep the relative rotation considering each pose bones direction that'd be great. This is the code snippet that deals with rotations inside of blender Do you have any ideas?

Ranner198 commented 5 years ago

I was messing around with some code that kind of did some of the things you were looking for but then I ran into this: https://github.com/EdyJ/blender-to-unity3d-importer/blob/master/Editor/EdysBlenderImporter.cs really cool importer