.mtl files?

How can I use .mtl files?

You do this by setting the mtllib property in the OBJ converter where "modelURL" points to your mtl file (if it's in the same directory as the .obj, then you can use the URL pointing to the .obj)



ObjToJme converter = new ObjToJme();
converter.setProperty("mtllib", modelURL);

sbook said:

You do this by setting the mtllib property in the OBJ converter where "modelURL" points to your mtl file (if it's in the same directory as the .obj, then you can use the URL pointing to the .obj)


ObjToJme converter = new ObjToJme();
converter.setProperty("mtllib", modelURL);




Umm.. I don't think that works on JMe3.

Oh, you're using jME3… There's no OBJ converter for that version (it isn't planned officially)  There is, however, a converter from jME2 to jME3 so you could convert in jME2 and bring it over to jME3  :slight_smile:

sbook said:

There is, however, a converter from jME2 to jME3 so you could convert in jME2 and bring it over to jME3  :)

There is?
sbook said:

Oh, you're using jME3.. There's no OBJ converter for that version (it isn't planned officially)  There is, however, a converter from jME2 to jME3 so you could convert in jME2 and bring it over to jME3  :)


Meh, I'm confused. Do you think that the converter is going to be out soon?
Phq said:
Meh, I'm confused. Do you think that the converter is going to be out soon?


The jME2->jME3 converter was already written, but looking through the current sources I don't see it.  You might ping Momoko_Fan and ask him where it's at (I'll email him a link to this thread as well).

I didn't see that momoko replied.

Weren't you working on this converter when we talked about using COLLADA some months back?
sbook said:

Phq said:
Meh, I'm confused. Do you think that the converter is going to be out soon?


The jME2->jME3 converter was already written, but looking through the current sources I don't see it.  You might ping Momoko_Fan and ask him where it's at (I'll email him a link to this thread as well).

I didn't see that momoko replied.

Weren't you working on this converter when we talked about using COLLADA some months back?


What's a COLLADA ?

It’s an open model format :slight_smile:



I sing its praises, many others don’t like it.  OGRE, which is supported by jME3, is very nice though!