Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 8
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 6271 times and has 7 replies Next Thread
fcaponi78
Newbie



Italy
Joined: Oct 23, 2015
Post Count: 7
Status: Offline
Reply to this Post  Reply with Quote 
Anyone using Freecad to design new 3d models with colors or textures?

Dears,
i have a stupid question, anyone has used freecad to create new models?

I can't find a way to create new furnitures including textures and/or colors applied on surfaces.
It seems the only way to export something usable by SH3D is to use obj format, which is loosing any color.

Any help?
[Jan 19, 2016, 8:43:45 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Anyone using Freecad to design new 3d models with colors or textures?

The colors of a 3D model at OBJ format are stored in a second MTL file. Doesn't Freecad generate such a file?
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Jan 20, 2016, 8:40:01 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
fcaponi78
Newbie



Italy
Joined: Oct 23, 2015
Post Count: 7
Status: Offline
Reply to this Post  Reply with Quote 
Re: Anyone using Freecad to design new 3d models with colors or textures?

Unfortunately not, and there is also a problem because there are no ways to group several objects making a unique furniture without having them fused (so exported as a unique element).

I will try to contribute to Freecad in order to remove some of these limits.

In the mean time I found a way to use objects created by Freecad:
1) simply export them as raw elements in obj, one by one as freecad is not able to export more than one object at a time
2) import each part of the item in SH3d
3) assign the right color/texture to each part
4) select all the items in SH3D and select the menu "Export as obj" from the 3d view
5) after that I have obtained a unique furniture made up of several parts, each one customizable after having placed it on a plan
[Jan 27, 2016, 9:15:52 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Anyone using Freecad to design new 3d models with colors or textures?

Thanks for the tip, even if it must be quite painful after a while...
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Jan 28, 2016, 8:49:16 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Wild_Penguin
Newbie



Finland
Joined: Aug 29, 2018
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
Re: Anyone using Freecad to design new 3d models with colors or textures?

Hi,

Old thread I know, but this came up by search when I was looking for tips working with FreeCAD and Sweet Home 3D, among other things.

I've noticed something useful: export to Collada (.dae) from FreeCAD. It has the benefit that all color information will be imported by Sweet Home 3D. Also, seems that with .obj everything will be multiplied by 10 when imported. That's easy to fix, but with .dae dimensions are right OOTB.

Furthermore, I've noticed that fcaponi78's point 1) is not actually true (but kind of is???). I can easily export several objects simultaneously. However, when exporting to .obj, as all color information is lost, Sweet Home 3D will treat them as one (i.e. no way to re-define colors except for one default element). Exporting as .dae has the additional benefit, that all solids will be named us such in the furniture imported, and re-defineable individually!

This can be worked around in .obj, too (if you can not export as .dae). If I insert usemtl statements (see the FAQ) in the .obj file, Sweet Home 3D will de-group accordingly and label the parts with the color you chose.

Hope this helps!

P.s. It worthwhile to note, that in Linux, you will need pycollada to enable export to Collada from FreeCAD. Not sure about other OSes, if it works OOTB or some additional python trickery / libraries need to be installed
[Aug 29, 2018, 4:05:28 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
UbuntuBirdy
Advanced Member
Member's Avatar

Switzerland
Joined: Aug 31, 2017
Post Count: 421
Status: Offline
Reply to this Post  Reply with Quote 
Re: Anyone using Freecad to design new 3d models with colors or textures?

FreeCAD export only one color per solid in .dae files. So if you have colored multiple surfaces of a single solid in FreeCad, this information will not be exported.
But the ability to export multiple solids in one file is a true pro point for the Collada format. So thanks a lot for this hint!
----------------------------------------
Pascal

SH3D 6.6 / Ubuntu 22.04 (Mainline-Kernel) / Radeon RX580 / Ryzen 7 5800x
[Aug 31, 2018, 3:48:50 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
finchisko
Newbie




Joined: Apr 11, 2019
Post Count: 1
Status: Offline
Reply to this Post  Reply with Quote 
Re: Anyone using Freecad to design new 3d models with colors or textures?

I had same problem with exporting models from freecad in a way that material textures could be changed for each sub model separately.

I solved it by exporting models in "Wavefrom Obj - archive module" obj format. And manually removing all lines "d 0" from mtl file. Without deleting this line, imported model was just empty/blank.
[Apr 11, 2019, 11:06:16 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Jonnie63
Member




Joined: Mar 31, 2019
Post Count: 71
Status: Offline
Reply to this Post  Reply with Quote 
Re: Anyone using Freecad to design new 3d models with colors or textures?

In a similar situation I resorted to Blender but its not for the faint hearted I think
even Blender fans and experts admit its not the easiest to use for CADCAM purposes - not a Blender
expert myself - functionality and capability great but interface is not the most intuitive.

In my case I wanted to do a chop job on a free model for a block of kitchen units including sink
and so on - very intricate model someone had spent hours on it - I did not want to spend 3 days re-inventing the
wheel so in the end I chopped off the unwanted last 2 cabinets in the long top and bottom cabinet rows using a
block as a tool in a Boolean and then healed the wounds so that the cupboards had ends again - fiddly and frustrating
but essential. At least Blender tends to hold onto textures and you can re-apply them if they get lost in the modelling.
I found FreeCad did not hold onto the textures and re-applying them by hand would have been tedious in the extreme.


For simple models it is indeed sometimes easiest to use your text editor and to try and understand the OBJ and MTL
format but you might not wish to do this for complex models or cases where you need to position and scale textures on each face - the knowledge will still often get you out of a fix and solve something that would take ages otherwise.
[Apr 15, 2019, 3:11:28 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved