From 0d017deb24e7f6f8e049616a71691f1401c50b6a Mon Sep 17 00:00:00 2001 From: Treeki Date: Fri, 11 Feb 2011 01:10:44 +0100 Subject: tons of stuff: more work on shapes, unfinished OBJ exporter, ... --- TestApp/Main.cs | 12 +++++++++--- TestApp/bin/Debug/NW4RTools.dll | Bin 31744 -> 36352 bytes TestApp/bin/Debug/NW4RTools.dll.mdb | Bin 11043 -> 12427 bytes TestApp/bin/Debug/TestApp.exe | Bin 3584 -> 4096 bytes TestApp/bin/Debug/TestApp.exe.mdb | Bin 416 -> 447 bytes 5 files changed, 9 insertions(+), 3 deletions(-) (limited to 'TestApp') diff --git a/TestApp/Main.cs b/TestApp/Main.cs index e6fa82f..f608262 100644 --- a/TestApp/Main.cs +++ b/TestApp/Main.cs @@ -1,13 +1,19 @@ using System; +using System.IO; using NW4RTools; namespace TestApp { class MainClass { public static void Main(string[] args) { - //byte[] file = System.IO.File.ReadAllBytes("/home/me/Games/Newer/miscStuff/CS_W1/g3d/model.brres"); - //byte[] file = System.IO.File.ReadAllBytes("/mnt/h/ISOs/NSMBWii/ais0.1.3/model.brres"); - byte[] file = System.IO.File.ReadAllBytes("/home/me/Games/Newer/miscStuff/bgB_4502/g3d/bgB_4502.brres"); + //byte[] file = File.ReadAllBytes("/home/me/Games/Newer/miscStuff/CS_W1/g3d/model.brres"); + //byte[] file = File.ReadAllBytes("/mnt/h/ISOs/NSMBWii/ais0.1.3/model.brres"); + byte[] file = File.ReadAllBytes("/home/me/Games/Newer/miscStuff/bgB_4502/g3d/bgB_4502.brres"); ResFile rf = BrresReader.LoadFile(file); + + var objFile = File.Open("/home/me/Games/Newer/miscStuff/bgB_4502/g3d/bgB_4502.obj", FileMode.OpenOrCreate); + var sw = new StreamWriter(objFile); + ObjWriter.WriteModel(sw, rf, "bgB_4502"); + objFile.Close(); } } } diff --git a/TestApp/bin/Debug/NW4RTools.dll b/TestApp/bin/Debug/NW4RTools.dll index cb655f9..1db8d9a 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 06fe2a2..847598a 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 37f5a57..2fd506e 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 ed77ca1..c12c7f1 100644 Binary files a/TestApp/bin/Debug/TestApp.exe.mdb and b/TestApp/bin/Debug/TestApp.exe.mdb differ -- cgit v1.2.3