Jump to content
 
毛.sy

Hand Tracking Use in Unity

Recommended Posts

vivepro Hand Tracking use in Unity ,I enlarged the camera scale by 7 times, and then the hand position was wrong. Could you please tell me how to solve this problem? Thank you

Share this post


Link to post
Share on other sites

@毛.sy Which sample scene did you use?

Could you try to enlarge the scale from the parent of the camera?

Taking VIU's Teleport scene as an example,

image.png.3e58a582c7b830318114a21ba537f9d3.png

 

Don't just enlarge from the Camera itself.

Share this post


Link to post
Share on other sites

你好  @chengnay

由于某些原因,我必须放大场景,因此相机也被放大了7倍。但是,在放大相机和手的模型之后,我发现手的移动距离仍为比例=1。因此,我想问一下如何设置手的放大移动距离。谢谢

微信图片编辑_20201013111531.jpg

Share this post


Link to post
Share on other sites

For current sample scene provided by Hand Tracking SDK, if you enlarge the scale of the Skeleton, your hands will look strange.

image.png.b30d1f8939daef3e740e6f66d2b7da51.png

 

But to me, the position of the hands looks fine to me. it matches with my real world hands.

 

What's your expected result?

Share this post


Link to post
Share on other sites

I are using now is another hand, two hands do not match the hierarchy model, I'm using the hand shape is no problem, I will be his camera and scale are set 787436109__20201013155250.thumb.png.721b2e133489b4f9fdeef7312fe470a8.pngto hand,7,7 (7), but the movement of the hand distance or scale (1,1,1) based, so I want to see change the location of the code which can reset hand moving distance.

微信图片_20201013154156.png

Share this post


Link to post
Share on other sites

How about multiply the position by 7?

In Assets\ViveHandTracking\Scripts\Utility\ModelRenderer.cs,

Line 69,

transform.position = result.points[0] * 7;

Share this post


Link to post
Share on other sites

No, I tried Transform. Position = result.Points [0] * 7;Transform.position = result.position * 7;

The only way to reset the transform.position movement distance is to multiply the scale in the code, but I don't know where to set it

@zzy

Share this post


Link to post
Share on other sites

Please sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...