public void Halo2TestCOLLADARenderModelExport() { using (var handler = new TagIndexHandler <Managers.TagIndex>(BlamVersion.Halo2_PC, kTestTagIndexTagsPath)) { var tagindex = handler.IndexInterface; foreach (var model_def in RenderModelTestDefinitions) { StartStopwatch(); { model_def.Open(tagindex); Console.WriteLine("{0} LOAD: Time taken: {1}", model_def.TypeString, m_testStopwatch.Elapsed); } Console.WriteLine("TAG INDEX: Time taken: {0}", StopStopwatch()); var halo2 = new BlamLib.Render.COLLADA.Halo2.ColladaHalo2(tagindex, model_def.TagIndex); halo2.Overwrite = true; halo2.RelativeFilePath = Path.Combine(kTestTagIndexTagsPath, @"data\"); foreach (Render.COLLADA.Halo2.ColladaHalo2RenderModelInfo info in halo2) { halo2.ClearRegister(); halo2.RegisterForExport(info); string name = string.Format("{0}-perm{1}-lod{2}", info.Name, info.Permutation, info.LevelOfDetail); StartStopwatch(); halo2.Export(name); Console.WriteLine("EXPORT {0} TIME: Time taken: {1}", name, StopStopwatch()); foreach (string report in halo2.Reports()) { Console.WriteLine(report); } } halo2.ClearRegister(); foreach (var info in halo2) { halo2.RegisterForExport(info); } var model_info = halo2[0] as Render.COLLADA.Halo2.ColladaHalo2RenderModelInfo; string name_all = model_info.Name + "_all"; StartStopwatch(); halo2.Export(name_all); Console.WriteLine("EXPORT {0} TIME: Time taken: {1}", name_all, StopStopwatch()); foreach (string report in halo2.Reports()) { Console.WriteLine(report); } model_def.Close(tagindex); } } }
public void Halo2TestCOLLADABSPExport() { using (var handler = new TagIndexHandler <Managers.TagIndex>(BlamVersion.Halo2_PC, kTestTagIndexTagsPath)) { var tagindex = handler.IndexInterface; foreach (var model_def in BSPTestDefinitions) { StartStopwatch(); { model_def.Open(tagindex); Console.WriteLine("{0} LOAD: Time taken: {1}", model_def.TypeString, m_testStopwatch.Elapsed); } Console.WriteLine("TAG INDEX: Time taken: {0}", StopStopwatch()); var halo2 = new BlamLib.Render.COLLADA.Halo2.ColladaHalo2(tagindex, model_def.TagIndex); halo2.Overwrite = true; halo2.RelativeFilePath = Path.Combine(kTestTagIndexTagsPath, @"data\"); halo2.ClearRegister(); foreach (var info in halo2) { halo2.RegisterForExport(info); } var bsp_info = halo2[0] as Render.COLLADA.Halo2.ColladaHalo2BSPInfo; StartStopwatch(); halo2.Export(bsp_info.Name); Console.WriteLine("EXPORT {0} TIME: Time taken: {1}", bsp_info.Name, StopStopwatch()); foreach (string report in halo2.Reports()) { Console.WriteLine(report); } model_def.Close(tagindex); } } }
public void Halo2TestCOLLADARenderModelExport() { using (var handler = new TagIndexHandler<Managers.TagIndex>(BlamVersion.Halo2_PC, kTestTagIndexTagsPath)) { var tagindex = handler.IndexInterface; foreach (var model_def in RenderModelTestDefinitions) { StartStopwatch(); { model_def.Open(tagindex); Console.WriteLine("{0} LOAD: Time taken: {1}", model_def.TypeString, m_testStopwatch.Elapsed); } Console.WriteLine("TAG INDEX: Time taken: {0}", StopStopwatch()); var halo2 = new BlamLib.Render.COLLADA.Halo2.ColladaHalo2(tagindex, model_def.TagIndex); halo2.Overwrite = true; halo2.RelativeFilePath = Path.Combine(kTestTagIndexTagsPath, @"data\"); foreach (Render.COLLADA.Halo2.ColladaHalo2RenderModelInfo info in halo2) { halo2.ClearRegister(); halo2.RegisterForExport(info); string name = string.Format("{0}-perm{1}-lod{2}", info.Name, info.Permutation, info.LevelOfDetail); StartStopwatch(); halo2.Export(name); Console.WriteLine("EXPORT {0} TIME: Time taken: {1}", name, StopStopwatch()); foreach (string report in halo2.Reports()) Console.WriteLine(report); } halo2.ClearRegister(); foreach (var info in halo2) halo2.RegisterForExport(info); var model_info = halo2[0] as Render.COLLADA.Halo2.ColladaHalo2RenderModelInfo; string name_all = model_info.Name + "_all"; StartStopwatch(); halo2.Export(name_all); Console.WriteLine("EXPORT {0} TIME: Time taken: {1}", name_all, StopStopwatch()); foreach (string report in halo2.Reports()) Console.WriteLine(report); model_def.Close(tagindex); } } }
public void Halo2TestCOLLADABSPExport() { using (var handler = new TagIndexHandler<Managers.TagIndex>(BlamVersion.Halo2_PC, kTestTagIndexTagsPath)) { var tagindex = handler.IndexInterface; foreach (var model_def in BSPTestDefinitions) { StartStopwatch(); { model_def.Open(tagindex); Console.WriteLine("{0} LOAD: Time taken: {1}", model_def.TypeString, m_testStopwatch.Elapsed); } Console.WriteLine("TAG INDEX: Time taken: {0}", StopStopwatch()); var halo2 = new BlamLib.Render.COLLADA.Halo2.ColladaHalo2(tagindex, model_def.TagIndex); halo2.Overwrite = true; halo2.RelativeFilePath = Path.Combine(kTestTagIndexTagsPath, @"data\"); halo2.ClearRegister(); foreach (var info in halo2) halo2.RegisterForExport(info); var bsp_info = halo2[0] as Render.COLLADA.Halo2.ColladaHalo2BSPInfo; StartStopwatch(); halo2.Export(bsp_info.Name); Console.WriteLine("EXPORT {0} TIME: Time taken: {1}", bsp_info.Name, StopStopwatch()); foreach (string report in halo2.Reports()) Console.WriteLine(report); model_def.Close(tagindex); } } }