Model importing? Collada, max or ...?


First I tried to import max model with TestMaxJmeExample. It works but without textures although I put jpg textures in the same folder. Then I try to import the same model into Monkey editor. I still can't see the  model, although import pass without errrors. Simple max models works ok. Then I tried exporting from 3Dmax 8 to collada and collada loading example. Example loads model, then animation, I tried to put my collada model on both place but got errors. So my question is what is the easiest way to see my model of the house with its textures? Importing in a monkey editor, exporting to what...?

Hi



for loading correct textures, u can use the line

"TextureKey.setOverridingLocation(MyClass.class.getResource(texFile));"



Example:


MaxToJme converter = new MaxToJme();
      ByteArrayOutputStream BO = new ByteArrayOutputStream();
      BinaryImporter importer = BinaryImporter.getInstance();
      try {
         TextureKey.setOverridingLocation(MyClass.class.getResource(texFile));
         converter.convert(MyClass.class.getResource(modelFile)
               .openStream(), BO);
         Node node = (Node) importer.load(new ByteArrayInputStream(BO
               .toByteArray()));
         return node;
      } catch (IOException e) {
         e.printStackTrace();
      }



Greetz