I don’t want to get too much into detail but with the new DOTS animation stuff a couple of utilities would really be helpful.
Utility method that takes an array of bones and returns a HumanDescription or error.
A Utility that extracts a generic animation from a humanoid model.
Alternatively, some way to automate converting a humanoid model to generic would suffice for both of the above.
The flow I want is to start with an animation on a humanoid model and be able to automate the processing and data creation that DOTS needs with a single click. But I can’t figure out a way. Like I need a bone mapping of source to destination bones, but the only reliable way I know of is map between their HumanDescription. But then DOTS wants generic animations. So it all gets way more complex then it really needs to be without these additional tools. Or it could be I’m just missing some existing tools or api’s.
@snacktime
Hi, we didn’t put any effort into converting a humanoid rig to DOTS, and this is not planned for short term.
The easiest way would be to convert your imported animation from humanoid rig to generic rig.
If you are looking for a way to retarget your animation in dots animation we do have the RigRemapper which allow you to retarget your animation from one rig to another one. In the image below the yellow skeleton is retargeted on Ellen.
This samples is part of the Dots animation sample project and is called Retarget
Right I started with those samples. I’m using humanoid avatars and HumanDescription to auto generate the bone mappings that RigRemapQuery needs.
I think starting with humanoid makes more sense even in the context of a specific game. Leveraging HumanDescription is just one example. Like if you want to be able to use third party animations which is the whole point of retargeting, you also have to solve for things like converting relaxed to strict tpose. And again being in humanoid form the existing utilities can help you out there.
That “Retarget Sample” Mecanim-Dev mentioned is now called “Animation Rig Remap Sample”.
It shows 3 possible ways to remap an animation from a source rig to another destination rig.
Hi! I managed to do retargeting animations in DOTS.
I’m just finishing a few more tests on that system, then I’ll share instructions on how to achieve that retargeting.