diff options
Diffstat (limited to '')
-rw-r--r-- | TestApp/Main.cs | 20 | ||||
-rw-r--r-- | TestApp/TestApp.pidb | bin | 4427 -> 4427 bytes | |||
-rwxr-xr-x | TestApp/bin/Debug/NW4RTools.dll | bin | 235008 -> 236544 bytes | |||
-rw-r--r-- | TestApp/bin/Debug/NW4RTools.dll.mdb | bin | 113949 -> 114260 bytes | |||
-rwxr-xr-x | TestApp/bin/Debug/TestApp.exe | bin | 7680 -> 7680 bytes | |||
-rw-r--r-- | TestApp/bin/Debug/TestApp.exe.mdb | bin | 1226 -> 1257 bytes |
6 files changed, 10 insertions, 10 deletions
diff --git a/TestApp/Main.cs b/TestApp/Main.cs index 3d7f063..eb3bcc8 100644 --- a/TestApp/Main.cs +++ b/TestApp/Main.cs @@ -11,9 +11,8 @@ namespace TestApp { public static void Main(string[] args) { string mdlPath = "/home/me/Games/Newer/ModelRev/"; - //skawo(); - //oldBehaviour(); - //return; + //skawo(); return; + //oldBehaviour(); return; // Going to create a model! @@ -23,7 +22,7 @@ namespace TestApp { ResFile rf = new ResFile(); - ObjImporter.ImportModel(mdlPath, File.OpenText(mdlPath + filename + ".obj"), rf, resmdlname); + ObjImporter.ImportModel(mdlPath, File.OpenText(mdlPath + filename + ".obj"), rf, resmdlname, ObjImporter.LightmapType.MapObj); File.WriteAllBytes(mdlPath + filename + ".brres", BrresWriter.WriteFile(rf)); @@ -73,7 +72,8 @@ namespace TestApp { private static void oldBehaviour() { string mdlPath = "/home/me/Games/Newer/ModelRev/"; - string mdlName = "lift_han_wood"; + string mdlName = "cobKinokoRed"; + //string mdlName = "lift_han_wood"; //string mdlName = "bgB_4502"; //string mdlName = "cobKoopaCastle"; //string mdlName = "waterPlate_W4boss"; @@ -84,11 +84,11 @@ namespace TestApp { byte[] file = File.ReadAllBytes(mdlPath + mdlName + ".brres"); ResFile rf = BrresReader.LoadFile(file); - /*using (var gw = new RenderWindow()) { + using (var gw = new RenderWindow()) { gw.Title = mdlName; gw.SetModel(rf, mdlName); gw.Run(1, 1); - }*/ + } //File.WriteAllBytes(mdlPath + mdlName + "_rewritten.brres", BrresWriter.WriteFile(rf)); @@ -98,9 +98,9 @@ namespace TestApp { kv.Value.Images[0].Save(mdlPath + "images/" + kv.Key + ".png"); } - var objFile = File.Open(mdlPath + "lift_han_wood_M.dae", FileMode.OpenOrCreate); - ColladaExporter.WriteModel(objFile, rf, "lift_han_wood_M"); - objFile.Close(); + //var objFile = File.Open(mdlPath + "lift_han_wood_M.dae", FileMode.OpenOrCreate); + //ColladaExporter.WriteModel(objFile, rf, "lift_han_wood_M"); + //objFile.Close(); } } } diff --git a/TestApp/TestApp.pidb b/TestApp/TestApp.pidb Binary files differindex 9242abe..ceb7cc4 100644 --- a/TestApp/TestApp.pidb +++ b/TestApp/TestApp.pidb diff --git a/TestApp/bin/Debug/NW4RTools.dll b/TestApp/bin/Debug/NW4RTools.dll Binary files differindex d8f19a2..b6af23d 100755 --- a/TestApp/bin/Debug/NW4RTools.dll +++ b/TestApp/bin/Debug/NW4RTools.dll diff --git a/TestApp/bin/Debug/NW4RTools.dll.mdb b/TestApp/bin/Debug/NW4RTools.dll.mdb Binary files differindex 330c38e..dea185a 100644 --- a/TestApp/bin/Debug/NW4RTools.dll.mdb +++ b/TestApp/bin/Debug/NW4RTools.dll.mdb diff --git a/TestApp/bin/Debug/TestApp.exe b/TestApp/bin/Debug/TestApp.exe Binary files differindex 75cf443..07e8e26 100755 --- a/TestApp/bin/Debug/TestApp.exe +++ b/TestApp/bin/Debug/TestApp.exe diff --git a/TestApp/bin/Debug/TestApp.exe.mdb b/TestApp/bin/Debug/TestApp.exe.mdb Binary files differindex f6489a1..08b9311 100644 --- a/TestApp/bin/Debug/TestApp.exe.mdb +++ b/TestApp/bin/Debug/TestApp.exe.mdb |