예제 #1
0
파일: TestSuite.cs 프로젝트: s1mar/MoCap
    void parseTest1()
    {
        TextAsset rawBvhFile = Resources.Load("ex2") as TextAsset;

        BParser.RawParseResult rawParseResult = BParser.parse(rawBvhFile.text);
        RawJoint rawJoint = rawParseResult.RawJoint;


        List <ChannelDescriptor> channelsExtracted = new List <ChannelDescriptor>(0);

        JointModel refinedJoint = BParser.refineRawJointDataIntoJoints(rawJoint, ref channelsExtracted);

        //This statement below should technically update all the channel descriptors
        BParser.assigningFrameDataToChannelDescriptors(new Queue <float>(rawParseResult.FrameData), channelsExtracted);
        Debug.Log("The name of the joint:");
    }
예제 #2
0
    void parseDataAndInitialize()
    {

        TextAsset rawBvhFile = Resources.Load("jog") as TextAsset;

        BParser.RawParseResult rawParseResult = BParser.parse(rawBvhFile.text);
        RawJoint rawJoint = rawParseResult.RawJoint;

        fps = (int)(1 / rawParseResult.FrameTime);
        numOfFrames = rawParseResult.NumFrames;

        List<ChannelDescriptor> channelsExtracted = new List<ChannelDescriptor>(0);

        joint = BParser.refineRawJointDataIntoJoints(rawJoint, ref channelsExtracted);
        
        //This statement below should technically update all the channel descriptors 
        
        BParser.assigningFrameDataToChannelDescriptors(new Queue<float>(rawParseResult.FrameData), channelsExtracted);
        
        
    }
예제 #3
0
파일: RawJoint.cs 프로젝트: s1mar/MoCap
 public void Add(RawJoint child)
 {
     children.Add(child);
 }