Problem with exact movement of objects

NatNet, VRPN, TrackD, and Plugins
Post Reply
johny3212
Posts: 10
Joined: Wed Oct 02, 2013 3:39 am

Problem with exact movement of objects

Post 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 :).
beckdo
Posts: 520
Joined: Tue Jan 02, 2007 2:02 pm

Re: Problem with exact movement of objects

Post 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.
johny3212
Posts: 10
Joined: Wed Oct 02, 2013 3:39 am

Re: Problem with exact movement of objects

Post 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.
Post Reply