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

Import Obj and mtl file

7 REPLIES 7
Reply
Message 1 of 8
Anonymous
14613 Views, 7 Replies

Import Obj and mtl file

Hello I know this question has been asked but I'm reading different responses.  Some say Maya isn't good for this others answer didn't work for me.  Currently I have an 

obj file

mtl file

and several jpgs for my texture in the same directory.

I go to file import and then import the obj.  However the image I import appears but with no texture.  Is this even possible to do in Maya? The file has no name spacing here is a screen shot of the file structure.

 

Screen Shot 2018-08-20 at 5.26.34 PM.png

Tags (1)
7 REPLIES 7
Message 2 of 8
Anonymous
in reply to: Anonymous

You have to manually connect the textures in hypershade or you can do it in attribute editor

Message 3 of 8
Anonymous
in reply to: Anonymous

Hi impactcolor
When you import an OBJ essentially what you're doing is importing the mesh by itself, in order to add your textures to the mesh, you'll need to open the hypershade menu and apply all your textures to a new material.

 

The Hyper shade setting you'll want to use is Stingray PBS. Simply add all your textures into the required nodes based on their name (base color, Metallic, roughness, etc) and when you've set all your textures you'll be able to right click your imported model while it's selected and Mouse down to Assign materials, and then apply your new Stingray PBS material. 

Message 4 of 8
Anonymous
in reply to: Anonymous

Thanks for your response.  The problem is I'm not really sure which shades are to be applied.  I got this model from the internet and the textures are in a folder.  Is there any way to set them to automatically use the ones in a folder?

Message 5 of 8
Anonymous
in reply to: Anonymous

I remember having to write  a script to read mtl's and create materials and attach textures etc into Maya ~10 years or more ago. Does Maya still not offer that functionality? Hard to believe. So anybody that needs to do this has to either do it by hand or write such a script. It would save a lot of artist hours if Maya included such a basic functionality. It's like buying a car without a steering wheel or brakes or a gas tank. Post it in the Autdesk/Maya ideas section. And wait for your dreams to come true. One can hope.

Message 6 of 8
Anonymous
in reply to: Anonymous

 

      https://www.okino.com/conv/conv.htm

It can read the obj+mtl and save it out as .ma (maya ascii)

Here are the details for the OBJ format support.

      https://www.okino.com/conv/imp_wave.htm

 

 

Message 7 of 8
Anonymous
in reply to: Anonymous

Message 8 of 8
Anonymous
in reply to: Anonymous

well I did some additional research and found some information that might
be useful. Link: http://www.toxik.sk/maya2011-obj-import-with-textures/

the short version is, open up your MTL file in a text editor and check the
texture paths. they should be relative to the file (i.e. not contain direct
links to any drive or folder eg- x:/something/something/something.tga , it
should be along the lines of something/something.tga)

also check that the shaders are actually loading in Maya by opening up the
Hypershade. if there is no material (usually labeled with the name of the
OBJ in some way, again I can't check directly until tomorrow) since you say
the model is black/gray it sounds like the MTL is loading its just not
finding the files.

best case is that you could just navigate to the offending texture files by
finding them in the folder and reassigning them or do it the hard way and
use find/replace in a text editor and make the paths to the textures
relative.

hope that helps.

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

Post to forums  

Autodesk Design & Make Report