1
votes

I can't seem to find a simple solution to this problem I'm having! I am new to Meshlab but working with .obj. I've loaded an asset from Adobe stock and I need to separate two items (a whole lime and a half lime) into two separate .obj files for use in other programs.

I can easily load the .obj and delete one of the limes, but when I export the resulting .obj won't load elsewhere with the included textures, or preview on my Mac. (before putting it through meshlab there is a low res preview of the object in finder's information window, which is pretty cool).

I read that it might have to do with filenames but mine had no spaces from the beginning and even after editing .mtl and .obj files to point at the original textures, or copying bits of those old files to the new (obj and mtl) exports from Meshlab were unsuccessful.

It seems like it should be easy to open this .obj in something (got an error when opening in Blender), delete one of the two independent / separate meshed objects, and save it without f*cking up the original file structure. My only guess after playing with the texture targeting is that the starting coordinates of the mesh no longer match with how the textures were laid out since the object is relatively half the size it was before? Help?

enter image description here

Here is a .zip of the Adobe Stock asset I am referencing: Link

1

1 Answers

1
votes

The problem is the way in which meshlab combines the diffuse color of the face (given by the material), with the color of the diffuse texture given by the file texturelime_124/lime_124_baseColor.png. In short, this combination is done by a multiplication that try to combine the luminances, but the diffuse color per face is 0 0 0 so the texture colors are not seen.

enter image description here

Try this. Edit the file lime_124.mtl and change the line

Kd 0 0 0

with

Kd 1 1 1

Now, load the file in meshlab, delete any of the limes and save as one_lime.obj

one_lime

Also it is convenient to execute filter Turn into a Pure Triangular Mesh just after loading, because not every filter/programs will support quad faces as this model has.