Example #1
0
        public static void Load(FileSystem fs, string path, out MeshDef def, out Animation animation, float scale)
        {
            Runner runner = new Runner();

            runner.run(fs.readLines(path), scale);
            def       = MilkshapeCommon.ExtractMeshDefinition(runner.model);
            animation = MilkshapeCommon.ExtractAnimation(runner.model);
        }
Example #2
0
        public static void Load(FileSystem fs, string meshpath, out MeshDef def, out Animation animation)
        {
            Model model;

            using (Stream s = fs.open(meshpath))
            {
                Runner run = new Runner(s);
                run.run();
                model = ExtractModel(run);
            }

            def       = MilkshapeCommon.ExtractMeshDefinition(model);
            animation = MilkshapeCommon.ExtractAnimation(model);
        }
Example #3
0
 public override string ToString()
 {
     return(string.Format("{0} {1}", time, MilkshapeCommon.makeQuat(new vec3(x, y, z)).AxisAngle));
 }