summaryrefslogtreecommitdiff
path: root/TestApp/Main.cs
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-03-13 23:28:22 +0100
committerTreeki <treeki@gmail.com>2011-03-13 23:28:22 +0100
commit51b0e39ceb5962ffd9b22f1b4722d2b243dba60f (patch)
tree7443441619577bbfee76322ffe622adcdbd09121 /TestApp/Main.cs
parenta9ef5367e5696602837900934df9b27ca15d944c (diff)
downloadnw4rtools-51b0e39ceb5962ffd9b22f1b4722d2b243dba60f.tar.gz
nw4rtools-51b0e39ceb5962ffd9b22f1b4722d2b243dba60f.zip
added model bounding box calculation
Diffstat (limited to 'TestApp/Main.cs')
-rw-r--r--TestApp/Main.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/TestApp/Main.cs b/TestApp/Main.cs
index eb3bcc8..56991bd 100644
--- a/TestApp/Main.cs
+++ b/TestApp/Main.cs
@@ -17,14 +17,15 @@ namespace TestApp {
// Going to create a model!
//string filename = "crapmap", resmdlname = "CrapMap";
- string filename = "GoldwoodBase", resmdlname = "GoldwoodBase";
-
+ string filename = "SMGoldwood";
ResFile rf = new ResFile();
- ObjImporter.ImportModel(mdlPath, File.OpenText(mdlPath + filename + ".obj"), rf, resmdlname, ObjImporter.LightmapType.MapObj);
+ ObjImporter.ImportModel(mdlPath, File.OpenText(mdlPath + "GoldwoodBase.obj"), rf, "GoldwoodBase", ObjImporter.LightmapType.Map);
+ ObjImporter.ImportModel(mdlPath, File.OpenText(mdlPath + "BrownTree.obj"), rf, "BrownTree", ObjImporter.LightmapType.MapObj);
+ ObjImporter.ImportModel(mdlPath, File.OpenText(mdlPath + "RedTree.obj"), rf, "RedTree", ObjImporter.LightmapType.MapObj);
- File.WriteAllBytes(mdlPath + filename + ".brres", BrresWriter.WriteFile(rf));
+ File.WriteAllBytes(mdlPath + "SMGoldwood.brres", BrresWriter.WriteFile(rf));
/*ResFile rf2 = BrresReader.LoadFile(File.ReadAllBytes(mdlPath + filename + ".brres"));