Search the Community
Showing results for tags 'leapmotion'.
-
Hello Unigine :D We have a hand lag issue in Unigine 2.11.0.2 We just rebuild with “AppVarjo_double_x64” plugin (with no source code changing) but our hand having a lag issue [ Video 1 ] before before.mp4 [ Video 2 ] after (with no source code changing) after.mp4 I wonder about : Is there any confilct Varjo plugin or Leap motion plugin with Unigine And our hand having a lag issue If there’s any issue in plugin we missed, please give us a advice Thank you! our environment : Varjo XR - 3 & VR - 3 Unigine 2.11.0.2 Leap motion 4.1.0
- 2 replies
-
- varjo
- leapmotion
-
(and 1 more)
Tagged with:
-
Hi, Now I am using leap motion plugin. The problem I met is that In the demo project, the function Vec3 leap_pos_to_world_pos(const Unigine::Math::vec3 &pos) { Vec3 wpos(pos); std::swap(wpos.y, wpos.z); wpos.y = -wpos.y; wpos.x -= lm->getBaseline() / 2; auto iwt = main_camera->getIWorldTransform(); iwt.setRotateZ(180); return iwt * Vec3(wpos); } is Ok for the demo, but when I rotate the main_camera, this position transformation function doesn't support, it only support the camera whose rotaion is (180,0,0). and I am confused by the following code: auto iwt = main_camera->getIWorldTransform(); iwt.setRotateZ(180); could you explain the above codes for me? Thanks. And if I want the main_camera to be the VR camera, which is not a static one and can rotate all the time, how should I make the transformation for the camera transform? Thanks.