Example #1
0
        public static void XmlSerialiser(ANSKModelContent content, string name)
        {
            name = name.TrimEnd('t', 'x', 't', '.', 's', 'm', 'i', 'n', 'A');

            XmlWriterSettings settings = new XmlWriterSettings();
            settings.Indent = true;

            using (XmlWriter file = XmlWriter.Create(name + ".ansk", settings))
            {
                file.WriteStartDocument();
                file.WriteStartElement("ModelContent");

                file.WriteEndElement();
                file.WriteEndDocument();
            }
        }
Example #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];
        }