/// <summary> /// Constructs a new animation player. /// </summary> public AnimationPlayer(SkinningData skinningData) { if (skinningData == null) throw new ArgumentNullException("skinningData"); skinningDataValue = skinningData; boneTransforms = new Matrix[skinningData.BindPose.Count]; worldTransforms = new Matrix[skinningData.BindPose.Count]; skinTransforms = new Matrix[skinningData.BindPose.Count]; headTransforms = new Matrix[skinningData.HeadSkeletonHierarchy.Count]; _isPaused = false; _speed = 0; _looped = true; _static = false; _endOfClip = false; }
//public ANSKTagData TagData { get { return _tagData; } } public ANSKModel(ANSKModelContent content) { _tagData = content.TagData; _verts = content.Verticies; RemakeIndices(content.VertexIndicies); _uvs = content.Uvs; _uvIndicies = content.UvIndicies; _edges = content.Edges; _normals = content.Normals; _skeleton = content.Joints; _joints = _skeleton.ToJointList(); _skin = content.TagData.SkinData; _skeleton.Init(); // Find a way to load in the effect; _verticies = new ANSKVertexDeclaration[_verts.Count]; _poop = new VertexPositionColor[_verts.Count]; }
public ANSKTagData(SkinningData skin) { _skin = skin; _bShapes = new List<BlendShapeContent>(); }