A utility for converting composite OBJ files to a MuJoCo model #340
kevinzakka
started this conversation in
Show and tell
Replies: 1 comment
-
Thanks @kevinzakka, this is excellent! In case someone asks the very legitimate question: "Will MuJoCo ever natively support loading composite OBJ files?" (as in discussion #255), the answer is no. The reason for this is the following. MuJoCo loads meshes and textures separately, they have their own So given the current relationship of geoms and assets, Kevin's excellent solution is also the optimal one. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Introducing obj2mjcf, a CLI for processing composite Wavefront OBJ files into a MuJoCo-conducive format. It automatically:
The generated meshes can then be used as a drop-in replacement for the original OBJ file. The result is vastly enhanced visuals for your model:
Why use this tool? As of June 2022, MuJoCo does not support composite OBJ files consisting of groups or objects (
o
org
OBJ tags) and only 1 material can be assigned per mesh. This means that you have to manually split your OBJ file into sub-meshes, a process that is tedious and error-prone. This tool is meant to automate this process.Happy simulating,
Kevin
Beta Was this translation helpful? Give feedback.
All reactions