Ejemplo n.º 1
0
        public static MotionData getMotion(Stream fs)
        {
            MotionData motion = new MotionData();

            motion.header         = Header.getHeader(fs);
            motion.boneFrameList  = BoneFrameList.getBoneFrameList(fs);
            motion.morphFrameList = MorphFrameList.getFraceFrameList(fs);
            motion.CameraFrames   = CameraFrameList.getCrameraFrameList(fs);
            motion.LightFrames    = LightFrameList.getLightFrameList(fs);
            return(motion);
        }
Ejemplo n.º 2
0
        internal static BoneFrameList getBoneFrameList(Stream fs)
        {
            BoneFrameList list = new BoneFrameList();

            try
            {
                list.BoneFrameCount = ParserHelper.getDWORD(fs);
            }
            catch (EndOfStreamException eof)
            {
                list.BoneFrameCount = 0;
                return(list);
            }
            for (int i = 0; i < list.BoneFrameCount; i++)
            {
                list.boneFrameDatas.Add(BoneFrameData.getBoneFrame(fs));
            }
            return(list);
        }