Esempio n. 1
0
        private void addSkeletonToBuffer()
        {
            if (currentSkeleton != null)
            {
                SkeletonBuffer.Add(currentSkeleton.Name, currentSkeleton);
            }

            currentSkeleton = new AcclaimSkeleton();
        }
Esempio n. 2
0
        public SkeletonJoint(AcclaimSkeleton skeleton)
        {
            acclaimSkeleton = skeleton;
            _B   = Matrix4x4.Translate(Vector3.zero);
            C    = (Axis * Mathf.Deg2Rad).Euler2Mat();
            CInv = Matrix4x4.Inverse(C);

            Debug.Log(Name + "\n" + C.ToString() + "\n" + CInv.ToString());
        }
Esempio n. 3
0
        private DictionaryEntry CreateRootJoint()
        {
            AcclaimSkeleton root = new AcclaimSkeleton
            {
                Id   = 0,
                Name = ROOTKEY
            };

            return(new DictionaryEntry(ROOTKEY, new SkeletonJoint(root)));
        }
Esempio n. 4
0
        public ASFReader(string asf_path)
        {
            asf_data = ReadLines(asf_path);

            currentSkeleton = new AcclaimSkeleton();
            SkeletonBuffer  = new Dictionary <string, AcclaimSkeleton>();
            ASFHierarchy    = new Dictionary <string, string[]>();

            DOFMap = new Dictionary <string, int>
            {
                ["rx"] = 0,
                ["ry"] = 1,
                ["rz"] = 2
            };
        }