Ejemplo n.º 1
0
 public ANSKModelContent(List<Vector3> verts, List<int> vertInd, List<Vector2> uv, List<int> uvInd, List<int> edges, List<Vector3> normals, Skeleton joints, ANSKTagData tagData)
 {
     Verticies = verts;
     VertexIndicies = vertInd;
     Uvs = uv;
     UvIndicies = uvInd;
     Edges = edges;
     Normals = normals;
     Joints = joints;
     TagData = tagData;
 }
Ejemplo n.º 2
0
        //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];
        }