bibigone / k4a.net

K4A.Net - Three-in-one .NET library to work with Azure Kinect devices (also known as Kinect for Azure, K4A, Kinect v4). It includes sensor API, recording and playback API, body tracking API. Samples for WPF, .NET Core and Unity are included.
MIT License
164 stars 39 forks source link

Unity Sample with avatar #11

Closed yocop closed 4 years ago

yocop commented 4 years ago

Thanks for your Great Job. I want to animate an avatar in Unity by mapping the user's skeleton and model skeleton, Can you kindly give me some ideas or provide a sample. @baSSiLL Thanks very much.

baSSiLL commented 4 years ago

Hi @Itpyc I've added an implementation of motion transfer to a character based on joint rotations. See it in action by switching to "Character" mode when running the sample app. Main code is contained in CharacterAnimator component. Note that this implementation is pretty naive in the sense it does not employ any techniques to improve the look of resulting motion - like tweaking rotations based on differences in proportions between actor and character or preventing foot slide.

I have plans to add another implementation based on Unity IK solver and positions of limb endings. But I'm not sure how soon I'll be able to work on this.

yocop commented 4 years ago

Hi @Itpyc I've added an implementation of motion transfer to a character based on joint rotations. See it in action by switching to "Character" mode when running the sample app. Main code is contained in CharacterAnimator component. Note that this implementation is pretty naive in the sense it does not employ any techniques to improve the look of resulting motion - like tweaking rotations based on differences in proportions between actor and character or preventing foot slide.

I have plans to add another implementation based on Unity IK solver and positions of limb endings. But I'm not sure how soon I'll be able to work on this.

That's all I need. Thank you very much. @baSSiLL