Пример #1
0
 void WriteStreams(MouthTrackingStreamManager mouthStreams, BinaryWriterX writer)
 {
     writer.Write(mouthStreams.IsTracking.Target.Value);           //bool
     writer.Write(mouthStreams.Jaw.Target.Value.x);                //float
     writer.Write(mouthStreams.Jaw.Target.Value.y);                //float
     writer.Write(mouthStreams.Jaw.Target.Value.z);                //float
     writer.Write(mouthStreams.JawOpen.Target.Value);              //float
     writer.Write(mouthStreams.Tongue.Target.Value.x);             //float
     writer.Write(mouthStreams.Tongue.Target.Value.y);             //float
     writer.Write(mouthStreams.Tongue.Target.Value.z);             //float
     writer.Write(mouthStreams.TongueRoll.Target.Value);           //float
     writer.Write(mouthStreams.LipUpperLeftRaise.Target.Value);    //float
     writer.Write(mouthStreams.LipUpperRightRaise.Target.Value);   //float
     writer.Write(mouthStreams.LipLowerLeftaise.Target.Value);     //float
     writer.Write(mouthStreams.LipLowerRightRaise.Target.Value);   //float
     writer.Write(mouthStreams.LipUpperHorizontal.Target.Value);   //float
     writer.Write(mouthStreams.LipLowerHorizontal.Target.Value);   //float
     writer.Write(mouthStreams.MouthLeftSmileFrown.Target.Value);  //float
     writer.Write(mouthStreams.MouthRightSmileFrown.Target.Value); //float
     writer.Write(mouthStreams.MouthPout.Target.Value);            //float
     writer.Write(mouthStreams.LipTopOverturn.Target.Value);       //float
     writer.Write(mouthStreams.LipBottomOverturn.Target.Value);    //float
     writer.Write(mouthStreams.LipTopOverUnder.Target.Value);      //float
     writer.Write(mouthStreams.LipBottomOverUnder.Target.Value);   //float
     writer.Write(mouthStreams.CheekLeftPuffSuck.Target.Value);    //float
     writer.Write(mouthStreams.CheekRightPuffSuck.Target.Value);   //float
 }
Пример #2
0
        public void RecordStreams(float deltaT)
        {
            foreach (RefID user_id in current_mouth_tracking_users)
            {
                //Encode the streams
                BinaryWriterX writer = output_writers[user_id];

                //WRITE deltaT
                writer.Write(deltaT); //float

                MouthTrackingStreamManager mouthStreams = mouth_streams[user_id];
                //WRITE mouth streams
                WriteStreams(mouthStreams, writer);
            }
        }