Page 1 of 1

Problem with exact movement of objects

Posted: Tue Dec 10, 2013 8:45 am
by johny3212
Hello.

I started work with NatNet, OptiTrack and Vuforia - Augmented reality solutions in the Unity3D. Augmentation is good. But I need combine augmented reality with the Optitrack tracking system. From the vuforia I have one zero point which determines the marker. Next I have a zero point from Optitrack. Both starting points have a same position in the real world. When Virtual object "Cube" is tracking only with Vuforia, marker is placed correctly. Next I receive data from Optitrack (NatNet). I have a RgidBody positions in the world. If I get position from RB1(0.25, 0.0, 0.25) in meters and I set same position for virtual cube result is that the positions are visually not overlap in the image. Where can by problem? Have somebody some ideas? You can see my problem on the video below. I think problem also can be Frustum of Virtual camera, but I tried to change "Field Of View" but it is impossible because Vuforia algoritmus set this params inside script. I think so :).

http://youtu.be/W_1lrqrgXeg

Thank you :).

Re: Problem with exact movement of objects

Posted: Tue Dec 10, 2013 11:52 am
by beckdo
Looks like a scaling issue. NatNet outputs position in meters. Make sure Vuforia also takes that value in meters. If not perform the conversion. I'm assuming you've already double-checked this however it still looks like a scaling issue persists.

Re: Problem with exact movement of objects

Posted: Wed Dec 11, 2013 5:33 am
by johny3212
Ok, I solved my problem. The problem was bad marker scale in the virtual reality. Now everything is OK. Real camera and virtual camera have a same Frustum what mean that position of virtual objects is acurate and if I set object size to 0.2f also in the real world it will be a 0.2 meter after overlap.



There is my first good result.
http://www.youtube.com/watch?v=OzT1DJzd ... e=youtu.be

Thank you.