Exemple #1
0
 protected string RenderPoseInfo(FbxPoseInfo pi)
 {
     return(string.Format("Node={0} IsLocal={1} Matrix={2}",
                          PrintObjectID(pi.Node),
                          pi.MatrixIsLocal,
                          pi.Matrix.ToString()));
 }
Exemple #2
0
        protected void _PrintFbxPose(FbxPose obj, TextWriter writer)
        {
            writer.WriteLine("    IsBindPose = {0}", obj.IsBindPose());
            writer.WriteLine("    GetCount = {0}", obj.GetCount());
            int i;

            for (i = 0; i < obj.GetCount(); i++)
            {
                FbxPoseInfo pi = obj.PoseInfos[i];
                writer.WriteLine("        #{0} {1}", i, RenderPoseInfo(pi));
            }
        }
Exemple #3
0
        public int Add(FbxNode pNode, FbxMatrix pMatrix, bool pLocalMatrix = false /*, bool pMultipleBindPose=true*/)
        {
            var match = poseInfos.FindIndex(pi => pi.Node == pNode);

            if (match >= 0)
            {
                if (poseInfos[match].Matrix != pMatrix)
                {
                    return(-1);
                }
                return(match);
            }

            var p = new FbxPoseInfo(pNode, pMatrix, pLocalMatrix);

            poseInfos.Add(p);

            return(poseInfos.IndexOf(p));
        }