arfoundation-samples icon indicating copy to clipboard operation
arfoundation-samples copied to clipboard

ARFoundation Body tracking feature - Character/Outfit rigging issue

Open Hypnotistas opened this issue 6 years ago • 11 comments

How do I rig properly a character/an outfits to use body tracking feature?

From what I have tested - the body tracking feature of ARKit is pretty much unusable when it comes to using your own character/outfit. The initial rig of a model provided within ARFoundation is a rig where you can't find or buy anywhere else. I mean, ARFoundation uses a rig like nobody else is rigging the characters/outfits... I would appreciate any tutorial/guidance/tips on how the characters/outfits should be rigged to use this feature.

Hypnotistas avatar Jun 06 '20 07:06 Hypnotistas

a chip in here. i notice their rig have a lot of bones if you want to have a quick dirty solution, use ik on your own rig following their rig i think most bones your rig having will have a close enough bone on theirs

fight4dream avatar Jun 06 '20 07:06 fight4dream

a chip in here. i notice their rig have a lot of bones if you want to have a quick dirty solution, use ik on your own rig following their rig i think most bones your rig having will have a close enough bone on theirs

Could you be more specific on "use ik on your own rig"?

Hypnotistas avatar Jun 06 '20 12:06 Hypnotistas

use IK solutions such as FinalIK. you may also try using ParentConstraint. if your bone lies between/not exactly on the target bone, place two nearest bone in the souce, and specify equal weights to them for a lerp

fight4dream avatar Jun 06 '20 13:06 fight4dream

Have you tried it or that's a suggestion(s) that you haven't tested on your own? Important to note:

  1. Switching to a different hierarchy of the bones alone won't help here, orientation of the bones are different.

  2. As for FinalIK. I have asked FinalIK creators about this situation 5 months ago. What we talked:

Me: I was wondering whether Final IK plugin is the right one to solve the issues that I am stumbled upon.

Recently ARKit 3 propose a body tracking feature and they provided one ControlledRobot model which seems to work really good. However, the rig of their models is really different from the rigs available on most of the models available in Unity Asset Store, for instance, the well known unity chan model. it seems that x rotation is mixed up with y rotation. I was wondering whether the avatar/rig can be somehow easily changed with your plugin, so it would be the right one?

The "ControlledRobot" that can be found is located in this arfoundation sdk: https://github.com/Unity-Technologies/arfoundation-samples I assume you know the unity chan model as an example

They: No, Final IK can not change the bone orientations of avatars. I haven't tried ARKit myself yet, so can't really give you any good advice on the matter, sorry.

It seems that you know better that with FinalIK will solve this issue, but the plugin creators themselves don't? :)

Hypnotistas avatar Jun 06 '20 14:06 Hypnotistas

Funny to note. Probably 99% of all rigs are made not in the way ARKit uses it. Though I haven't found a single other one working with it, so I left 1% just in case. I mean, cmon...

Hypnotistas avatar Jun 06 '20 14:06 Hypnotistas

just make child transforms as the 'orientation correct target' under the arkit rig. plugin creators don't necessarily know all use cases so they're fine to just say don't know we've mainly worked with vr and final ik and deal with different rigs/target model orientations, i see no problem to have different orientations.

fight4dream avatar Jun 06 '20 16:06 fight4dream

i also find the robo rig very hard to use it is strangely it is not an fbx/obj, it is just a prefab asset and even without the unity humanoid avatar (not mecanim)

fight4dream avatar Jun 06 '20 16:06 fight4dream

just make child transforms as the 'orientation correct target' under the arkit rig. plugin creators don't necessarily know all use cases so they're fine to just say don't know we've mainly worked with vr and final ik and deal with different rigs/target model orientations, i see no problem to have different orientations.

I will try again, though, if FinalIK does that automatically, I will get this asset at once.

Hypnotistas avatar Jun 07 '20 07:06 Hypnotistas

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 15 '20 03:09 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 24 '20 20:09 stale[bot]

i also find the robo rig very hard to use it is strangely it is not an fbx/obj, it is just a prefab asset and even without the unity humanoid avatar (not mecanim)

I am also running into this issue. I usually solve tracking issues like this by bringing the demo skeleton into a 3d program like blender and matching up the skeletons to a new model. I'm unable to do this because it's a strange un-referenced prefab. I tried a unity fbx exporter and it's still behaving strangely.

rotation

Has anyone found a solution for this?

thornebrandt avatar Nov 27 '21 07:11 thornebrandt