Page 1 of 1
NatNet 2.5: latency vs. timecode
Posted: Tue Nov 26, 2013 10:26 am
by rocketman768
The direct depacketization example's unpack() function reads three variables at the end of the packet: `latency`, `timecode`, and `timecodeSub`. From what I can see, the `latency` variable represents the true timecode, incrementing by 1.0 for every tick on my eSync. The timecode variables are always 0. Is this correct, and under what conditions should I interpret this `latency` variable as the timecode?
Code: Select all
// latency
float latency = 0.0f; memcpy(&latency, ptr, 4); ptr += 4;
printf("latency : %3.3f\n", latency);
// timecode
unsigned int timecode = 0; memcpy(&timecode, ptr, 4); ptr += 4;
unsigned int timecodeSub = 0; memcpy(&timecodeSub, ptr, 4); ptr += 4;
Re: NatNet 2.5: latency vs. timecode
Posted: Thu Dec 12, 2013 2:05 pm
by morgan
The Timecode parameter in interpreted differently when streaming Live or from File Playback (Edit).
In Live mode, the Timecode parameter is only valid when SMPTE timecode is present in your Mocap hardware setup, typically when using the eSync and a timecode generator. When present, the Timecode parameter will be a correctly formatted SMPTE timecode value.
In Edit Mode, the Timecode parameter is the current frame number converted to SMPTE Timecode format.
The NatNet SDK provides helper routines to decode the Timecode parameter into a string friendly format as well as the subframe of mocap data that may exist between whole timecode frames.
Latency is the capture computer's hardware timestamp for the given frame, which is also displayed in Motive in the Camera Preview viewport when camera info is enabled. This is the same whether live or playback from file.
Hope this helps,
Morgan
Re: NatNet 2.5: latency vs. timecode
Posted: Tue Dec 17, 2013 4:16 am
by henn9438
Is your code implemented in such a way that the order in these three types is always the same for these three sets within a single frame?
Re: NatNet 2.5: latency vs. timecode
Posted: Tue Dec 17, 2013 4:35 am
by henn9438
I am not loading a project because I only work with the markers.