Groups > Design > Autodesk MotionBuilder Open Reality SDK > Re: hardware timestamp issues




Re: hardware timestamp issues

Re: hardware timestamp issues
Fri, 31 Aug 2007 09:38:14 +000
Hi Eric

I'm also working on an optical device and I'm experiencing the same problems as
you. I can't get recording to work. I also found that the sampel optical device
with the faked timestamps works ok. Like you I get my timestamps in my TCP
packets, convert them to miliseconds starting from 0. I reset the timestamps
when I hit the play button. Still I can't se any recorded key frames, even if I
expand the time window.

This is what my DeviceOpticalEvalAllMarkers function looks like:

void QTMDevice::DeviceOpticalEvalAllMarkers(FBDeviceNotifyInfo
&pDeviceNotifyInfo)
{
    kLongLong nTimeStamp;
    FBTime       lEvalTime;
    int               i;

    if (mHardware.FetchDataPacket())
    {
        nTimeStamp = mHardware.GetTimeStamp();
        lEvalTime.SetMilliSeconds(nTimeStamp);
        for (i=0; i < Markers.GetCount(); i++)
        {
            Markers[i ]->SetData(mHardware.GetDataX(i),
mHardware.GetDataY(i),
                mHardware.GetDataZ(i), mHardware.GetDataO(i));
        }
        DeviceOpticalRecordFrame(lEvalTime, pDeviceNotifyInfo);
    }
}


I also tried changing sampling mode see below, but it does not make any
difference.
    SamplingMode = kFBHardwareTimestamp;

The 0,11,22,0,11,22 timestamps are also a mystery to me.

Do you see any obvious mistakes in my code? Or do you have any suggestions what
I'm doing wrong. Since I can't even se any recording although I zoom out the
time window.


Post Reply
about | contact