kevinzakka / obj2mjcf

A CLI for processing composite Wavefront OBJ files for use in MuJoCo.
MIT License
164 stars 18 forks source link

Wrong colors for splitted meshes #16

Open mbusy opened 1 year ago

mbusy commented 1 year ago

Thank you for this great tool! I'm opening this issue because I obtained a weird result while decomposing some obj meshes: When specifying the --save-mtl flag, the materials associated to each mesh are switched (eg if I split base.obj into base_0.obj and base_1.obj, the material for base_0.obj will be associated to base_1.obj and vice versa). Have you ever reproduced that behavior?

My guess is that the declaration order of the textures in the original mtl file will influence that?