I'm having a bit of trouble importing my 3dstudio max 7.0 models into jME. I import them via MaxToJme and create clones of the original models as needed using a CloneCreator. However, all non-textured models turn out bright white and the textured ones are also full bright (but texture shows up correctly). Am I missing to set some property or such?
FormatConverter converter = new MaxToJme();
ByteArrayOutputStream bo = new ByteArrayOutputStream();
JmeBinaryReader jbr = new JmeBinaryReader();
URL texpath = new File(System.getProperty("user.dir") + "/data/" + path + "/").toURL();
jbr.setProperty("texurl", texpath);
URL modelpath = new File(System.getProperty("user.dir") + "/data/" + p).toURL();
converter.convert(modelpath.openStream(), bo);
jbr.setProperty("bound", "box");
Node node = jbr.loadBinaryFormat(new ByteArrayInputStream(bo.toByteArray()));
result = new CloneCreator(node);
result.addProperty("colors");
result.addProperty("materials");
result.addProperty("texcoords");
result.addProperty("vertices");
result.addProperty("normals");
result.addProperty("indices");
result.addProperty("keyframecontroller");