Exemplo n.º 1
0
        static void fetchFrameData(NatNetML.FrameOfMocapData data, NatNetML.NatNetClientML client)
        {
            if ((data.bTrackingModelsChanged == true || data.nRigidBodies != mRigidBodies.Count))
            {
                mAssetChanged = true;
            }


            /*  Processing */



            if (data.iFrame % 10 == 0)
            {
                if (data.bRecording == false)
                {
                    Console.WriteLine("Frame #{0} Received:", data.iFrame);
                }
                else if (data.bRecording == true)
                {
                    Console.WriteLine("[Recording] Frame #{0} Received:", data.iFrame);
                }

                //Console.WriteLine(index);
                index = NatNetClient.processFrameData(data, index);
                //Console.WriteLine(index);
                if (index > 10)
                {
                    Console.Write("helloworld");
                    mNatNet.OnFrameReady -= fetchFrameData;
                }
            }
        }
Exemplo n.º 2
0
        static void fetchFrameData(NatNetML.FrameOfMocapData data, NatNetML.NatNetClientML client)
        {
            if ((data.bTrackingModelsChanged == true || data.nRigidBodies != mRigidBodies.Count))
            {
                mAssetChanged = true;
            }

            /*  Processing */

            int index = 1;

            if (data.iFrame % 1 == 0)
            {
                if (data.bRecording == false)
                {
                    Console.WriteLine("Frame #{0} Received:", data.iFrame);
                }
                else if (data.bRecording == true)
                {
                    Console.WriteLine("[Recording] Frame #{0} Received:", data.iFrame);
                }

                index = NatNetClient.processFrameData(data, index);
            }
        }