Export to OBJ loses colour and texture?

This topic has been viewed 6352 times and has 5 replies
Thread status: Active
How can I do this? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
User avatar
hansmex
Posts: 4027
Joined: Sat Sep 26, 2009 11:36 am
Country: Netherlands

Export to OBJ loses colour and texture?

Post by hansmex »

Emmanuel,

It seems that when using Export to OBJ the imported model has lost its colour and texture.
Is this just me, or can it be repeated? I can attach or send files if you like.

Hans
Hans

new website - under constuction
hansdirkse.info
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Export to OBJ loses colour and texture?

Post by Puybaret »

Hans, I couldn't reproduce this issue on my side.
Please, [url=mailto:[email protected]]send me[/url] a file that shows this problem.
Emmanuel Puybaret, Sweet Home 3D creator
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Export to OBJ loses colour and texture?

Post by Puybaret »

Thanks for the files you sent me.
Until next versions are released, please do not use # and % symbols in exported OBJ files and in furniture names entered in the Furniture Library Editor.
Emmanuel Puybaret, Sweet Home 3D creator
[email protected]
Posts: 2
Joined: Sat Apr 08, 2017 11:26 am
Country: United Kingdom

Re: Export to OBJ loses colour and texture?

Post by [email protected] »

I also still have this issue. Any ideas, is it to do with size of model?
User avatar
Keet
Posts: 1807
Joined: Fri Apr 08, 2022 7:13 am
Country: Netherlands

Re: Export to OBJ loses colour and texture?

Post by Keet »

Have you checked the material names following the advise Emmanuel gave concerning special characters in the filename? The problem can be easily created AND avoided if you only use letters, numbers, underscores, and dashes for files; for both the object filename as well as for texture and material file names.

The problem could originate because of the different rules for file naming across the different operating systems. I can create a file or folder named a:b\c.$%# on Linux but that would result in a file that is rejected on Windows. Not only that, but the backslash in the Linux filename would be seen as a directory separator on Windows and part of the filename. So stick to letters, numbers, underscores, and dashes. If you import a downloaded model you can check the obj and mtl if this is a possible cause of the problem since it usually means the importer can't find the texture file(s).

Another reason might be that the texture image files are not in the same directory as the object file. Although you could have the textures in a sub-directory is better to keep them in the same directory to avoid transfer problems between systems. If the model is in a zip file first unzip it and try to import again.

The size of the model shouldn't make a difference unless it's so big your computer can't handle that size which is very unlikely.
Dodecagon.nl
1300+ 3D models, manuals, and projects
Dweinn
Posts: 2
Joined: Tue Jul 18, 2023 8:41 am

Re: Export to OBJ loses colour and texture?

Post by Dweinn »

I have a similar problem, when I export the file it changes colour. It is not a big difference, it is just kind of darker.
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest