diff options
author | Treeki <treeki@gmail.com> | 2011-02-11 22:35:05 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2011-02-11 22:35:05 +0100 |
commit | 6d779d24736ad2ddb2a95e36a4122886308ecf13 (patch) | |
tree | 395e6bf4e53d16d416b880d03d6398bbfa6f0ecd /TestApp/Main.cs | |
parent | f6f657812c1973172d25d7895aabb37f900071a7 (diff) | |
download | nw4rtools-6d779d24736ad2ddb2a95e36a4122886308ecf13.tar.gz nw4rtools-6d779d24736ad2ddb2a95e36a4122886308ecf13.zip |
part of a basic collada exporter
Diffstat (limited to 'TestApp/Main.cs')
-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(); } } |