Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Loading Texture files from OBJ

Anonymous

Loading Texture files from OBJ

Anonymous
Not applicable

Hello,

I am trying to get a photogrammetry model into inventor. i have created a OBJ using meshroom wich i put into Autodesk Recap for Editing. once it was just the model i wanted i exported it to a new OBJ.

If i load this into Fusion360 the model will load but textureless. Is there a way to load in the textures since they did export along with the model as 3 PNG's.

Screenshots: https://gyazo.com/1d128079923f4a6d32ede4deb1b5a420 & https://gyazo.com/7acaa098be71fdfd62f5f95f28a034b3

Greetings,

Luuk de Wit

0 Likes
Reply
Accepted solutions (1)
2,353 Views
14 Replies
Replies (14)

jeff_strater
Community Manager
Community Manager

no, unfortunately, today there is no way to import textures from OBJ files.


Jeff Strater
Engineering Director
0 Likes

Anonymous
Not applicable

So if i understand correctly.

There is no way to get a textured model into Inventor?

0 Likes

jeff_strater
Community Manager
Community Manager

@Anonymous - This is a Fusion 360 forum.  I don't know if Inventor supports OBJ textures.  All I know is that Fusion 360 today does not.  Here is the Inventor forum page: Inventor forum 


Jeff Strater
Engineering Director
0 Likes

ipendle01
Participant
Participant
Accepted solution

For anyone who still has this question, since 2021 it IS now possible to load .obj files plus their textures and display them in Fusion. If you are not seeing textures displayed, the first 3 things to check are:

 

1. When you first import the .obj file, it should have a corresponding .mtl and .png/.jpg in the same folder

2. Make sure you turn OFF display face groups

3. Make sure you are NOT displaying triangle edges (they swamp the display, especially with very fine meshes)

 

ipendle01_0-1668184927707.png

ipendle01_1-1668184951578.pngipendle01_2-1668184973104.png

 

0 Likes

mdvorsak9
Explorer
Explorer

are you able to render this? I can get the OBJ and textures uploaded but then the render just shows steel.

0 Likes

ipendle01
Participant
Participant

I dont see any model to try. Did you attach it?

0 Likes

mdvorsak9
Explorer
Explorer

Sorry for my lack of info, I was just referencing yours. But here are two images, one with a .OBJ imported with a .mtl/.png and the other is rendered. Basically, the rendering is ignoring the texture and applies the default material (steel). I have tried to unassign the material but it still happens. Maybe this is out of Fusion's scope but I just want the .OBJ mesh to be renderable. Thanks for your help!

 

mdvorsak9_0-1688615388906.pngmdvorsak9_1-1688615437595.png

 

0 Likes

ipendle01
Participant
Participant

ok, yes I am able to get an OBJ with texture to render with the texture.

You need  to make sure you can see the texture in the Design environment first, if you see it there then it should work in Render too (using the settings described in the solution).

I tried assigning an appearance material (stainless steel) but it seems it is ignored when there is a texture.

ipendle01_0-1688653848909.png

 

0 Likes

mdvorsak9
Explorer
Explorer

So both of the images that I posted which have textures are in the design and render workspaces. The issue is that when I render it the textures go away and are replaced with steel shown in the rendering gallery (photo 2). So if you render the kangaroo do the textures stay? Thanks again for your help. 

0 Likes

ipendle01
Participant
Participant

Got it. Yes, you are right, when I actually hit "In canvas render" the texture dissappears for me too.

0 Likes

mdvorsak9
Explorer
Explorer

Kind of annoying right?! Any idea of how to fix it?

0 Likes

guselfvpa
Participant
Participant

Hello,

 

This way to texture obj seems to now be broken. Is there a new workflow to follow?

 

Kind regards

Patrik

0 Likes

ReavoEnd
Community Visitor
Community Visitor

Make sure you're using Insert > Insert Mesh, rather than File > Open... -- Insert Mesh loads the texture from .mtl, for me. "Open..." does not.

0 Likes

veikko.vierola
Explorer
Explorer

Hey, there is a bug in the Fusion 360 .obj texture handling I presume?

 

When opening .obj file the .obj file is linked to equally named .mtl file in the same folder. The .mtl file is a text file that includes the information about the  texture .png file that is supposed to be used over the .obj file. The .jpg file is located in the assets folder.

 

If the obj. jpg file has same name for example color.jpg and then you open new .obj it can happen that Fusion 360 still opens the old texture jpg file over the new object because it has same name.

 

Workaround: go to .mtl file (open with text editor) it can look something like this:

 

newmtl Material
map_Kd assets/color.jpg
Pr 1.00

 

Now change the name of the color.jpg to color2.jpg so that it looks like this:

 

newmtl Material
map_Kd assets/color2.jpg
Pr 1.0

 

Then also change the color.jpg name in the assets folder to color2.jpg

 

Now the texture opens normally again.

 

This is a probably a memory BUG that Fusion 360 has. Autodesk should fix it immediately if this is the case.

1 Like