How to always stream data to unity from motive in real time?

NatNet, VRPN, TrackD, and Plugins
Post Reply
darkmax
Posts: 5
Joined: Tue Feb 09, 2016 4:33 pm

How to always stream data to unity from motive in real time?

Post by darkmax » Tue Feb 09, 2016 7:03 pm

Hi I have made some tests on with the example on unity in natnet sdk, and I get the information from motive rigidbodies to the sample natnet application and from there to my unity scene, but the problem is the latency, is so slow in some cases that my gameobject updates like 10 seconds later and in other cases is in realtime.
So my question is how I can improve this with the natnet sdk or if it there is a better option like a plugin that I can use in unity directly and receive my rigidbodies info.

beckdo
NaturalPoint Employee
NaturalPoint Employee
Posts: 519
Joined: Tue Jan 02, 2007 2:02 pm

Re: How to always stream data to unity from motive in real t

Post by beckdo » Wed Apr 27, 2016 10:43 am

Hi darkmax,

The latency and poor performance you're seeing seems unusual. That's certainly not been my experience. There are a number of things you need to be careful with in Unity when you're trying to get maximize performance. I've run with this Unity streaming approach for hours many times without issue. I think what you're actually doing in Unity is key. We put together the unity sample in a way where you can just replace the XML with binary encoded data. The source for both the serialize (unity sample app) and the deserialize (unity side) are both there. You can just replace those two functions to remove the XML if you thing that's the problem. My impression is that it's not.

Thx,
Doug

Post Reply