Page MenuHome

OBJ files exported from Blender don't show textured in macOS's file browser
Confirmed, NormalPublicTO DO

Description

System Information
Operating system: Darwin-19.6.0-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon Pro 575 OpenGL Engine ATI Technologies Inc. 4.1 ATI-3.10.8

Blender Version
Broken: version: 2.90.0 Alpha, branch: master, commit date: 2020-06-21 14:55, hash: rBf2b5f731d559
Worked: (newest version of Blender that worked as expected)

Short description of error
object .obj doesn't appear texture

Exact steps for others to reproduce the error
June 22, 2020
Blender 2.90 Alpha
Macintosh MacOS 10.15.5 Catalina
object .obj doesn't appear texture.

They made one Lola Bunny, but I am create 1 cube box and put texture I have fail to see all gray few times.
Apply textures to the model .obj yes
Lola Bunny model is not my create. I just download.

Event Timeline

Philipp Oeser (lichtwerk) changed the task status from Needs Triage to Needs Information from User.Jun 22 2020, 12:04 PM

Hm, seems to be fine here, exporting LolaBunny.blend to OBJ gives me


Since the Textures paths are relative the Textures folder needs to sit next to those files.
If that is the case, this imports just fine back into Blender, can you confirm?
(so this might turn out to be a problem of the preview in Finder -- or whatever this is previewed with?)

Regarding the Cube, this seems to be a packed texture [which dont get exported afaict], if I save that manually, then export, the texture shows up everywhere, can you confirm?

How can I do export .obj? I am tried many times years and years I don't understand.
(Cube box) I create myself with create color grid texture on Materials. Within EEVEE

Please @Kent Davis (mac4kent):

  • apparently you have been able to export to OBJ before?... If this is a support issue, please consult the manual or https://www.blender.org/community/
  • unless you are not answering to my discrete questions above, this will either be in "Needs Information Fom User" forever or be turned down as a support request.

I am not good english to explain text. I am deaf and do sign language.
Confirm how?

blender.org/community

is they banned me out

@Kent Davis (mac4kent) you need to save the texture in Blender separately from the model export and place it in the same directory as the exported model. The obj/mtl file format can only reference the texture file by name.

Sorry you are wrong answer.
Export Collada .dae it work auto appear texture and .dae itself very well.
Export .obj not work. I show you picture proof.

@Kent Davis (mac4kent) If the texture file is already saved somewhere else on disk you can set the Path Mode to Copy in the exporter settings.

show me your screenshot?

@Kent Davis (mac4kent)

The next time you have a user support question, please post it either on Blender's StackExchange or blenderartists.org.

Export > .obj then " Path Mode to Copy " I did follow your screenshot.
Are you use your own Macintosh ?
Still not work did not appear texture

@Kent Davis (mac4kent) Have you previously saved your texture to your hard drive or are you just using a procedurally generated / baked / painted texture within Blender? If you haven't previously saved the image to your hard drive, it won't copy it to the output directory. That is a limitation of the current obj exporter.

Collada .dae it work auto copy texture itself.
.obj doesn't auto copy texture itself.
I ask you again. Are you use your own Macintosh yourself?

  1. Open Blender 2.90 Alpha.
  2. cube already there and materials already there.
  3. Materials
  4. Click the New button{F8637295}
  5. rename and number then color grid then click OK button
  6. click icon then save .blend
  7. New folder in finder.
  8. Export > .obj and Path Mode: Copy
  9. Finder:

Miss picture screenshot.

  1. New folder in finder.

@Kent Davis (mac4kent) Like I said before the .obj exporter doesn't automatically save the texture file for you. It can only copy a texture file that is already saved to your hard drive to the destination directory. This is a known limitation. You may consider this a bug, but it's more of a missing feature.

I ask you again. Are you use your own Macintosh yourself?

This is irrelevant for this particular issue since the way the obj exporter works is platform independent.

Allright

What is consider, irrelevant, particular, platform, independent

I knowledge limit word. I do know sign language as well, I am full deaf.

@Kent Davis (mac4kent) I will try to simplify what I wrote:

The obj exporter does not save the texture. It can only copy a texture that is already saved. Other exporters can save the texture. That is not a bug, some exporters can do more than others. The situation is the same on all operating systems (Mac, Windows, Linux).

Allright. Are they plan to add feature will automatic itself same as Collada .dae ?

Texture Paint and (UV map save texture) into Finder Textures folder and export .obj and copy doesn't work

you can see below texture

@Kent Davis (mac4kent) I'm not sure. There is currently a project for faster importer/exporter. Maybe this can be added when the project is done or when a developer has time to work on it.

@Robert Guetzkow (rjg) Yes I agree with you. Take Developers time to processing there thousand bug to fix.

I figure very hard thinking for long time many years (from 2.5x until now 2.90) until I decide to send here and now we get know each other.

Still fail doesn't appear texture in .obj there file zip I know there bug.

Sorry first .zip wrong one I just save .blend now add Fail object doesn't appear texture v.1.0.0

This is working for me:

.

Import the file, Press Z, Select render, the texture is shown.

@Campbell Barton (campbellbarton)
You are wrong answer.
I know already about push the "z" key and rendering.
Focus on .obj
Are you use your own Macintosh?

if you see Finder focus on .obj make sure appear texture without too white object.

@Kent Davis (mac4kent) no, I'm not on macOS, are you saying the issue is that the texture from an exported .OBJ file doesn't show in the macOS finder?

Yes correct answer " the issue is that the texture from an exported .OBJ file doesn't show in the macOS finder "

Did you try setting "Absolute" path mode when exporting?

I already show you on many pictures above

@Philipp Oeser (lichtwerk) you may know about .obj should appear texture itself on Mac Finder. Look above few pictures.

Not sure how it should work, but I just downloaded a random file, and re-export in Blender.

Here are both, the original and from the Blender:

And this is not only textures but also colors are not displayed in the Finder.

@Yevgeny Makarov (jenkm)
Now MacOS 11 Finder preview you can see too white did not appear texture itself of .obj.

@Yevgeny Makarov (jenkm)
Now other .obj I can see texture appear this one.

@Robert Guetzkow (rjg) @Campbell Barton (campbellbarton)

I found the problem. There should also be map_Ka.
Adding the next line fixes the bug:

map_Ka Cat_diffuse.jpg

Also, map_Bump doesn't seem to work, it should be map_bump.
Or it is different things, but it give a different visual result in the preview in Finder.

Compare mtl files, the original and the one from the Blender:

map_Ka is for ambient reflectivity and not a required parameter that must be written in the .mtl. As long as the map_Kd parameter is written to the file, it is a valid .mtl file that references the diffuse texture. Perhaps Apple's viewer requires the map_Ka parameter for displaying the preview, but that is an assumption that isn't supported by the specification.

@Yevgeny Makarov (jenkm) Thanks for investigating this and identifying the issue. That is rather strange handling of the file format by the previewer. I don't think it would be correct for the exporter to just add the diffuse texture as ambient reflectivity.

@Yevgeny Makarov (jenkm) that again still not work ReSave on .obj for Mac Finder Preview.

Kent check copy from 3D max text then paste into Blender of .obj

This file ReSave on blender-resaved.mtl. I just let you know need to fix on Blender 2.91 Alpha
August 24, 2020

  1. Blender MTL File: 'None' <== ?????? must tell Blender version which file???
  2. Material Count: 1

newmtl Cat
Ns 10.000002
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.000000 0.000000 0.000000
Ke 0.000000 0.000000 0.000000
Ni 1.500000
d 1.000000
illum 1

map_Ka Cat_diffuse.jpg <== add
map_Kd Cat_diffuse.jpg <== add
map_bump Cat_bump.jpg <== add
bump Cat_bump.jpg <== add

map_Bump Cat_bump.jpg <== remove
map_Kd Cat_diffuse.jpg <== remove

@Robert Guetzkow (rjg)

I have file that contain both parameters map_Ka and map_Kd.
I open this file in Blender. What happens to the map_Ka data?
Then I export back to obj. Should the map_Ka data be written back?


Oh, the Ka 1.000000 1.000000 1.000000 is also set here, which results in a white color.
Removing this returns the texture but it is look darker than the original .obj.

And map_Bump doesn't work, it must be map_bump.

It seems to me that the import process is also incorrect.


Exporting a cube with a red Base Color gives:

Ka 1.000000 1.000000 1.000000
Kd 1.000000 0.000000 0.000000

Which is white.

I have file that contain both parameters map_Ka and map_Kd.
I open this file in Blender. What happens to the map_Ka data?
Then I export back to obj. Should the map_Ka data be written back?

@Yevgeny Makarov (jenkm) Good question, I'll have to look at the code. I expect that map_Ka is currently ignored during import and thus can't be exported properly.

Oh, the Ka 1.000000 1.000000 1.000000 is also set here, which results in a white color. Removing this returns the texture but it is look darker than the original .obj.

Maximum ambient reflectivity does seems like it might be a wrong default.

And map_Bump doesn't work, it must be map_bump.

Yes, that appears to be incorrect.

Exporting a cube with a red Base Color gives:

Ka 1.000000 1.000000 1.000000
Kd 1.000000 0.000000 0.000000

Which is white.

That doesn't seem right either.

I haven't had time to test any of these myself, but there seem to be issues with the Ka related processing in import and export.

Robert Guetzkow (rjg) changed the task status from Needs Information from User to Needs Triage.Mon, Aug 31, 11:59 AM
Campbell Barton (campbellbarton) changed the task status from Needs Triage to Confirmed.Mon, Aug 31, 12:37 PM
Campbell Barton (campbellbarton) changed the subtype of this task from "Report" to "To Do".

Setting this as a paper-cut, since it's not a bug, it's an interaction issue with an external OBJ loader.

Campbell Barton (campbellbarton) renamed this task from object .obj doesn't appear texture to OBJ files exported from Blender don't show textured in macOS's file browser.Mon, Aug 31, 12:37 PM
Campbell Barton (campbellbarton) added a project: Restricted Project.

@Campbell Barton (campbellbarton) The problem here is not how it is displayed in the Finder.
It set Ka to 1.000000 1.000000 1.000000 which gives the all-white material.
Which is definitely wrong. See a couple of comments above.

Are you still work processing about .mit match between texture and .obj preview?

According to astrand135 on Twitter they are working on an updated mtl exporter. The patch hasn't been submitted yet though.

Thank you for let me know no problem. I know Twitter and I never like Twitter. I had use many times they never support for deaf people. I reject Twitter.