My current project: Nothing
I don't have much knowledge about 3d modelling and programming, even though I know how to create models, so I'll give it a shot and see how it works.Edit: Small update, I exported a WMO and converted it to .obj (Which worked perfectly), however when I opened it in 3ds max the model was rotated a 90 degrees on the X-axis (in 3ds max atleast).Giving another model a try tomorrow, bit sleepy at the moment.
C:UsersmyusernameDesktoptintai_alpha>WMOtoOBJ-032.exe castle01.wmoTintai WMO 0.32 - (c)2011-2012 Tharo HerbergException in thread "main" java.lang.NullPointerException at java.io.File.<init>(Unknown Source) at me.tharo.tools.WMOtoOBJ.main(Unknown Source)
#!/bin/bashfor i in `find . -not -path '*_[0-9][0-9][0-9].wmo' -and -path '*.wmo'`do./WMOtoOBJ-032.exe -o /mypath/tintai_tests -text png $idone
diff --git a/src/me/tharo/tintai/util/WMO2OBJ.java b/src/me/tharo/tintai/util/WMO2OBJ.javaindex 93ee5bc..dac4aa4 100644--- a/src/me/tharo/tintai/util/WMO2OBJ.java+++ b/src/me/tharo/tintai/util/WMO2OBJ.java@@ -123,6 +123,7 @@ public class WMO2OBJ { private void writeMainOBJ(String fname, String dest) { File obj = new File(dest + "/" + fname + ".obj");+ obj.getParentFile().mkdirs(); System.out.println(" Writett" + obj.getAbsolutePath()); try { BufferedWriter out = new BufferedWriter(new FileWriter(obj));@@ -144,6 +145,7 @@ public class WMO2OBJ { private void writeMTL(String fname, String dest) { File mtl = new File(dest + "/" + fname + ".mtl");+ mtl.getParentFile().mkdirs(); System.out.println(" Writett" + mtl.getAbsolutePath()); try { BufferedWriter out = new BufferedWriter(new FileWriter(mtl));@@ -161,6 +163,7 @@ public class WMO2OBJ { private void writeColliOBJ(String fname, String dest) { File colf = new File(dest + "/" + fname + "_col.obj");+ colf.getParentFile().mkdirs(); System.out.println(" Writett" + colf.getAbsolutePath()); try { BufferedWriter out = new BufferedWriter(new FileWriter(colf));diff --git a/src/me/tharo/tools/WMOtoOBJ.java b/src/me/tharo/tools/WMOtoOBJ.javaindex f1014b6..04254d8 100644--- a/src/me/tharo/tools/WMOtoOBJ.java+++ b/src/me/tharo/tools/WMOtoOBJ.java@@ -57,7 +57,11 @@ public class WMOtoOBJ { for(String filename : com.getList()) { File f = new File(filename);- if(!f.canRead()) continue;+ if(!f.isFile() || !f.canRead())+ {+ System.out.println ("Skipped " + filename + ": could not be read or is not a file.");+ continue;+ } if(outdir==null) outdir = f.getParentFile(); Vector<WoWFile> objs = WMO.LoadSet(filename, new StdFileHandler());