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:"); }
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); }