.mtl file support #255
Replies: 5 comments 6 replies
-
What do imagine MTL support will look like? Right now textures are specified directly in the MJCF as in this example. Other than the filename of the texture the MTL doesn't contain much, mostly material properties which are mostly not supported by the MuJoCo renderer. Do you have a particular example of a textured OBJ that you cannot load using this pattern? We do have a long term plan to add more material properties to MuJoCo, not necessarily supported by the native renderer, but mostly so that they could be forwarded to more powerful renderers like Unity's. When we do that it would make sense to read and save the material properties specified in MTL. |
Beta Was this translation helpful? Give feedback.
-
Edit: Actually, just what @ikostrikov said. However I think you can avoid unnecessary inertia/convex hull computations using the compiler options. What works for us so far is to bake the material (diffuse channel) of more complex models into textures. Both the MTL and MuJoCo native renderer shader models are quite simple, so I don't see a huge benefit to supporting MTL as such. However, if the OBJ and MTL formats were fully supported it would greatly ease the workflow of bringing complex visual meshes into MuJoCo. This is especially true if your mesh consists of multiple objects or polygon groups that refer to different materials. Take this robot model for example: Bottom line is you can get decent results with a little effort but if you could just import the OBJ/MTL files directly that would be really nice to have. |
Beta Was this translation helpful? Give feedback.
-
I mean models that are under permissive licenses. E.g. APACHE 2 |
Beta Was this translation helpful? Give feedback.
-
No cigar. As far as I can tell, neither of these databases qualify as permissive. They just allow you to use their objects for research, and that's it. Terms of use are not a proper license. (Note the MIT license at the bottom of the Sapien terms of use refers to the code which drives the database, not to the objects contained within it.) @JeanElsner, what about your Franka model above, does it use OBJ groups? |
Beta Was this translation helpful? Give feedback.
-
This has now been resolved by @kevinzakka's |
Beta Was this translation helpful? Give feedback.
-
Thanks for adding support for the
.obj
file format! Do you have any plans on adding.mtl
support as well?Beta Was this translation helpful? Give feedback.
All reactions