Community
Meshmixer
Welcome to Autodesk’s Meshmixer Forums. Share your knowledge, ask questions, and explore popular Meshmixer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Red object when importing

18 REPLIES 18
SOLVED
Reply
Message 1 of 19
Anonymous
4982 Views, 18 Replies

Red object when importing

Hello all,

 

I have a problem when importing some obj files on mesh mixer. I`m using a cammera for creating 3d facial scan. It creates a Obj file. The file can easily be opened in meshlab but when I import it to meshmixer it apears Red. I can open it in othe PCs and I can open other files stl in my meshmixer. If it is inserted in a previously saved project on meshmixer it will open ok but the import does not work. can you help me? I already tried to replace the Nvidea Geforce GTX controler and nothing. thank you all

 
18 REPLIES 18
Message 2 of 19
MagWeb
in reply to: Anonymous

Seems your OBJ comes with a texture.

Importing such a textured OBJ MM uses the texture shader automatically.

There's something wrong with the file bundle a textured OBJ uses.

There need to be a .OBJ (geometry) which links to a .MTL (material) which links to an image file (maybe .JPG or .PNG or another image format).

In your case the link from the .MTL to the image is broken (in this case MM replaces the missing texture image by a  red image)

In most cases OBJ,MTL and image need to be in the very same directory.

You may check that link opening the MTL in any text editor. There should be a line like

map_Kd SomeImage.png.

It points to an image in .png format, named "SomeImage" and (as there's no further path) expects that file in the same directory as the MTL itself.

-----

If you are not interested in the texture and want to work with the geometry only: You might simply use a different shader dragging one of the non-world spheres from SHADERS onto the object

 



Gunter Weber
Triangle Artisan

Message 3 of 19
Anonymous
in reply to: Anonymous

Hello Gunter Weber,

 

Thank you for your reply. In fact that line exists and the Jpg also in the directory and it works. As I refered, if I copy the all directory to another PC it opens with no problem so I think it is some kind of setting on my PC… About textures, your right that it works with no texture (plain color). That`s the problem. I already tried also to unistal, restart, shutdown and….

Do you have any more ideas?

Message 4 of 19
MagWeb
in reply to: Anonymous

MM has problems loading image files for MESHMIX parts if there are special non-latin chars (characters not used in English language) in the full path to the image file. In most cases such chars appear in the user's account name.

You might check this running MESHMIX: Are there red squares instead of preview images?

If yes:

That might cause your issue too.

Either set a different name for your account or move the directory containing obj+mtl+jpg to a level above the account.



Gunter Weber
Triangle Artisan

Message 5 of 19
Anonymous
in reply to: Anonymous

 couldn`t belive it but in fact my name is João and the ~is the reason wy this happened. Thank you very very much. You`ve been very important! João

 

Message 6 of 19
MagWeb
in reply to: Anonymous

Ha, good to know that this issue happens on texture images too.

Could you hit the AcceptSolution button? 



Gunter Weber
Triangle Artisan

Message 7 of 19
Anonymous
in reply to: MagWeb

Hi,

Same problem like João, but this time the object is in the USB Disk root...

What can I do to solve it?

Thanks in advance

Abílio

Message 8 of 19
MagWeb
in reply to: Anonymous

The easiest way is to copy your bundle of files from the USB drive to a location on your HDD where no such special char is involved.

 

If you want to run from the USB drive directly, check the whole path to the files on the drive if there are any of those chars. Note: There might be pretty small differences: e.g.: You signed your post with "Abílio". Its third char is a special one.



Gunter Weber
Triangle Artisan

Message 9 of 19
Anonymous
in reply to: MagWeb

Hello all,



I`m Portuguese and we have letters that don’t exist in English alphabet. The
problem was that a folder had a letter with a ~ on it. Just that.

Thank you all.


Message 10 of 19
Anonymous
in reply to: MagWeb

Hi, thanks for the reply.

I tried to open from the USB pen, from desktop and with a new user, but i can't open it.

Can be a problem with the Geforce RTX 2080?

Message 11 of 19
MagWeb
in reply to: Anonymous

Think it's not a GPU issue if your object comes out red. This means that MM isn't able to find the image file and uses a default red image instead.

 

If you made sure that there's no special character in the whole path (also the name of the image file) check the .mtl file.

You can open it using a simple text Editor.

There should be a line

map_Kd SomeImage.png (might be a different image format e.g.  .jpg)

Does that line match to the image file located in the very same directory?

 



Gunter Weber
Triangle Artisan

Message 12 of 19
Anonymous
in reply to: MagWeb

Hi, 

Format c: solved the problem 🙂

 

Thanks!

Regards

Abilio

Message 13 of 19
Anonymous
in reply to: Anonymous

The problem was Irys from myray, this software controls xray and with it the image appear red. I unistal it and problem solved.

Message 14 of 19
Anonymous
in reply to: Anonymous

Hi everyone, I am having the same problem, but I don't see any problem with special characters.  I will attach a couple screenshots that show a successful preview, the filenames in directory, and big red outcome.

 

I bought some nice scans of a human arm and am trying to work with them.  They are OBJ files that came with MTL files, but when I try to import the arm into Meshmixer I just get it in bright red without any apparent utilisation of the texture file.

 

I don't actually really need the texture file, so if there is a way to get things to work without it then great, but it would be nice to just have everything work without problems.  Thank you ahead for whatever advice you could provide.

Message 15 of 19
Anonymous
in reply to: Anonymous

I wish I could edit my last post rather than creating a new one, but I wanted to add a little more detail and additional findings:  When I look at the MTL file in a text editor, I see that it points to a file called 1.bmp, but I have no such file.  When I look at what files I do have, I have a large number of all different kinds grouped as Color, Displacement, Normal, Spec with types jpeg, tif, and tga

 

Could anyone advice on why there are so many kinds and what I would want to use?  I guess maybe I would want to edit the MTL file to point some one or several different texture files?

 

Sorry for my cluelessness on this texture stuff.  Hopefully, I'll learn very quickly.  The cool thing is that all the possibilities are exciting.

Message 16 of 19
MagWeb
in reply to: Anonymous

If there's no texture image file MM can't find it and replaces it with a overall red image.

Options:

- Open the .obj file in a text editor and delete the line pointing to the .mtl (e.g. the line:) : mtllib 1.mtl

- Or drag the  grey sphere (which is the default shader) left of the two world spheres(which are texture shaders) from SHADERS onto the object.

 



Gunter Weber
Triangle Artisan

Message 17 of 19
Anonymous
in reply to: MagWeb

Thank you for the advice.  Are you able to speculate on why this scan OBJ file I have came with Color, Displacement, "Normal", and "Spec" texture files?  Do models sometimes use multiple texture files simultaneously for different information?  I have so many different texture files but no clear single general one.

Message 18 of 19
Anonymous
in reply to: Anonymous

Hello, when I had that problem I solved it changing the folder where the documents where. I`m portuguese and my name has a ~. Because of this, the my documents folder was under a username that was incimpatible with the program. Try making a root c:/folder and copy the obj and all files (including texture image)there. Then open it from that location. It worked fine with me.

Message 19 of 19
MagWeb
in reply to: Anonymous

Yes, one OBJ may ship with multiple maps used in a decent rendering software. E.g. one can inscribe fine surface details of a high detailed mesh into a displacement map to be used on a low poly version of the same model for animation purposes...

The one used to show the surface's color should be the Color map. Depending on the software it came from you might need to flip the image if it doesn't "fit" to the surface.

 



Gunter Weber
Triangle Artisan

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report