From f6f657812c1973172d25d7895aabb37f900071a7 Mon Sep 17 00:00:00 2001 From: Treeki Date: Fri, 11 Feb 2011 04:33:24 +0100 Subject: lots of progress. semi-working Wavefront OBJ exporter --- TestApp/Main.cs | 13 ++++++++----- TestApp/bin/Debug/NW4RTools.dll | Bin 36352 -> 40448 bytes TestApp/bin/Debug/NW4RTools.dll.mdb | Bin 12427 -> 13672 bytes TestApp/bin/Debug/TestApp.exe | Bin 4096 -> 4096 bytes TestApp/bin/Debug/TestApp.exe.mdb | Bin 447 -> 471 bytes 5 files changed, 8 insertions(+), 5 deletions(-) (limited to 'TestApp') diff --git a/TestApp/Main.cs b/TestApp/Main.cs index f608262..b6713e2 100644 --- a/TestApp/Main.cs +++ b/TestApp/Main.cs @@ -5,14 +5,17 @@ using NW4RTools; namespace TestApp { class MainClass { public static void Main(string[] args) { - //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"); + string mdlPath = "/home/me/Games/Newer/ModelRev/"; + + string mdlName = "CS_W1"; + //string mdlName = "bgB_4502"; + + byte[] file = File.ReadAllBytes(mdlPath + mdlName + ".brres"); ResFile rf = BrresReader.LoadFile(file); - var objFile = File.Open("/home/me/Games/Newer/miscStuff/bgB_4502/g3d/bgB_4502.obj", FileMode.OpenOrCreate); + var objFile = File.Open(mdlPath + mdlName + ".obj", FileMode.OpenOrCreate); var sw = new StreamWriter(objFile); - ObjWriter.WriteModel(sw, rf, "bgB_4502"); + ObjWriter.WriteModel(sw, rf, mdlName); objFile.Close(); } } diff --git a/TestApp/bin/Debug/NW4RTools.dll b/TestApp/bin/Debug/NW4RTools.dll index 1db8d9a..b0fe3d4 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 847598a..9b65235 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 2fd506e..08f7be6 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 c12c7f1..98cfa9d 100644 Binary files a/TestApp/bin/Debug/TestApp.exe.mdb and b/TestApp/bin/Debug/TestApp.exe.mdb differ -- cgit v1.2.3