毛.sy Posted October 12, 2020 Share Posted October 12, 2020 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 Link to comment Share on other sites More sharing options...
chengnay Posted October 12, 2020 Share Posted October 12, 2020 @毛.sy Could you provide sample project? Thanks! Link to comment Share on other sites More sharing options...
毛.sy Posted October 12, 2020 Author Share Posted October 12, 2020 Hand_Tracking_Unity_CameraTest.unitypackage因为设置的原因,我需要将相机放大7倍,之后手的位置就,emmm,不知道该如何更改城奈 Link to comment Share on other sites More sharing options...
chengnay Posted October 12, 2020 Share Posted October 12, 2020 @毛.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, Don't just enlarge from the Camera itself. Link to comment Share on other sites More sharing options...
毛.sy Posted October 13, 2020 Author Share Posted October 13, 2020 你好 @chengnay 由于某些原因,我必须放大场景,因此相机也被放大了7倍。但是,在放大相机和手的模型之后,我发现手的移动距离仍为比例=1。因此,我想问一下如何设置手的放大移动距离。谢谢 Link to comment Share on other sites More sharing options...
chengnay Posted October 13, 2020 Share Posted October 13, 2020 For current sample scene provided by Hand Tracking SDK, if you enlarge the scale of the Skeleton, your hands will look strange. But to me, the position of the hands looks fine to me. it matches with my real world hands. What's your expected result? Link to comment Share on other sites More sharing options...
毛.sy Posted October 13, 2020 Author Share Posted October 13, 2020 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 to 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. Link to comment Share on other sites More sharing options...
chengnay Posted October 13, 2020 Share Posted October 13, 2020 How about multiply the position by 7? In Assets\ViveHandTracking\Scripts\Utility\ModelRenderer.cs, Line 69, transform.position = result.points[0] * 7; Link to comment Share on other sites More sharing options...
毛.sy Posted October 14, 2020 Author Share Posted October 14, 2020 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 Link to comment Share on other sites More sharing options...
zzy Posted October 15, 2020 Share Posted October 15, 2020 Hi @毛.sy Have you tried the solution I posted in another thread? https://forum.vive.com/topic/8921-hand-tracking-use-in-unity/?do=findComment&comment=37867 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now