From 6d779d24736ad2ddb2a95e36a4122886308ecf13 Mon Sep 17 00:00:00 2001 From: Treeki Date: Fri, 11 Feb 2011 22:35:05 +0100 Subject: part of a basic collada exporter --- TestApp/Main.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'TestApp/Main.cs') diff --git a/TestApp/Main.cs b/TestApp/Main.cs index b6713e2..a4d9545 100644 --- a/TestApp/Main.cs +++ b/TestApp/Main.cs @@ -13,9 +13,11 @@ namespace TestApp { byte[] file = File.ReadAllBytes(mdlPath + mdlName + ".brres"); ResFile rf = BrresReader.LoadFile(file); - var objFile = File.Open(mdlPath + mdlName + ".obj", FileMode.OpenOrCreate); - var sw = new StreamWriter(objFile); - ObjWriter.WriteModel(sw, rf, mdlName); + //var objFile = File.Open(mdlPath + mdlName + ".obj", FileMode.OpenOrCreate); + var objFile = File.Open(mdlPath + mdlName + ".dae", FileMode.OpenOrCreate); + //var sw = new StreamWriter(objFile); + //ObjWriter.WriteModel(sw, rf, mdlName); + ColladaWriter.WriteModel(objFile, rf, mdlName); objFile.Close(); } } -- cgit v1.2.3