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 +++++--- TestApp/TestApp.pidb | Bin 3039 -> 3039 bytes TestApp/bin/Debug/NW4RTools.dll | Bin 40448 -> 157184 bytes TestApp/bin/Debug/NW4RTools.dll.mdb | Bin 13672 -> 87288 bytes TestApp/bin/Debug/TestApp.exe | Bin 4096 -> 4096 bytes TestApp/bin/Debug/TestApp.exe.mdb | Bin 471 -> 464 bytes 6 files changed, 5 insertions(+), 3 deletions(-) (limited to 'TestApp') 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(); } } diff --git a/TestApp/TestApp.pidb b/TestApp/TestApp.pidb index 8cd730e..e277998 100644 Binary files a/TestApp/TestApp.pidb and b/TestApp/TestApp.pidb differ diff --git a/TestApp/bin/Debug/NW4RTools.dll b/TestApp/bin/Debug/NW4RTools.dll index b0fe3d4..5d89012 100755 Binary files a/TestApp/bin/Debug/NW4RTools.dll and b/TestApp/bin/Debug/NW4RTools.dll differ diff --git a/TestApp/bin/Debug/NW4RTools.dll.mdb b/TestApp/bin/Debug/NW4RTools.dll.mdb index 9b65235..662ff6c 100644 Binary files a/TestApp/bin/Debug/NW4RTools.dll.mdb and b/TestApp/bin/Debug/NW4RTools.dll.mdb differ diff --git a/TestApp/bin/Debug/TestApp.exe b/TestApp/bin/Debug/TestApp.exe index 08f7be6..5955864 100755 Binary files a/TestApp/bin/Debug/TestApp.exe and b/TestApp/bin/Debug/TestApp.exe differ diff --git a/TestApp/bin/Debug/TestApp.exe.mdb b/TestApp/bin/Debug/TestApp.exe.mdb index 98cfa9d..b921fad 100644 Binary files a/TestApp/bin/Debug/TestApp.exe.mdb and b/TestApp/bin/Debug/TestApp.exe.mdb differ -- cgit v1.2.3