diff options
Diffstat (limited to '')
-rw-r--r-- | TestApp/Main.cs | 8 |
1 files changed, 5 insertions, 3 deletions
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(); } } |