Unity 3D and Optitrack V120 Slim

Post Reply
nandomx
Posts: 2
Joined: Wed Mar 26, 2014 1:16 pm

Unity 3D and Optitrack V120 Slim

Post by nandomx »

Hi

I was wondering if anyone tried and used the Optitrack sample for Unity 3D. I have tried changing the camera lib for all the ones in the SDK and i am still getting the Dll not found exception when calling the Star method of the camera. Also i already tried with old version of the sotware but anything seems to work.

Plz any help ll be apreciatted.

Working with unity 4.3 , Api compatibility level : .net 2.0 and Optitrack V120Slim
ozzyonfire
Posts: 4
Joined: Thu Mar 27, 2014 10:25 am

Re: Unity 3D and Optitrack V120 Slim

Post by ozzyonfire »

Hi there, I also just encountered and solved this issue.

I ended up using code from johny3212 to open up a UDP port within unity and let unity read in and parse the messages. Now there is no need to use any plugins or .dll. You can see the message board here http://forums.naturalpoint.com/viewtopi ... 4&start=30

Here is a GitHub link to a sample unity project. All you need to do is create an empty GameObject in your scene and attach OptiTrackManager to it. Next, just attach the OptiTrackObject script to any object in your scene that you want tracked.

https://github.com/MattOskamp/UnityOptitrack

In motive create a rigidbody and start broadcasting.

I'm going to be writing up a full tutorial soon, so if you need help feel free to contact me.
nandomx
Posts: 2
Joined: Wed Mar 26, 2014 1:16 pm

Re: Unity 3D and Optitrack V120 Slim

Post by nandomx »

Thks for the example but it seems to be created for the track ir cameras of natural point ,we exported the package and tried to make it work but in code a streaming server is required. We are using the V120 Slim as a normal camera, we ll start trying with open Cv , so any upgrade i ll write it here!!

Thks !!! and we ll keep working for a solution.
Post Reply