turning a .dwg furniture model into a shaded rendering?

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Herve5
Posts: 4
Joined: Mon Jun 29, 2020 6:28 pm
Location: France

turning a .dwg furniture model into a shaded rendering?

Postby Herve5 » Mon Jun 29, 2020 6:47 pm

Hello,
I am wholly new to FreeCAD, I just installed the latest Appimage on Debian*.
I am trying to assess the effect of a piece of furniture, whose supplier offers a .dwg file there, ideally within a room that I'll design too.
I downloaded that .dwg, and as I understand FreeCAD doesn't read .dwg I transformed it into a .dxf using https://anyconv.com/dwg-to-stl-converter/.
From there I launched FreeCAD and managed to 'import' the .dxf, which I see and can rotate properly (pic below), but it appears to be only a wireframe object and I didn't manage to turn it into a set of faces that I wish to group and 'paint'.

Is there a simpler way to proceed that I missed?

I apologize for this naive question...
Thank you!!
Hervé

Where I am :
Image
The exact version for the Appimage is FreeCAD_0.18-16146-Linux-Conda_Py3Qt5_glibc2.12-x86_64
User avatar
Roy_043
Posts: 1399
Joined: Thu Dec 27, 2018 12:28 pm

Re: turning a .dwg furniture model into a shaded rendering?

Postby Roy_043 » Mon Jun 29, 2020 7:36 pm

Post the STL.
User avatar
Willem
Posts: 1351
Joined: Fri Aug 12, 2016 3:27 pm
Location: Lisse, The Netherlands

Re: turning a .dwg furniture model into a shaded rendering?

Postby Willem » Mon Jun 29, 2020 9:14 pm

Opening in Librecad, this is a 2D cad program works and saving it as dxf file gives this result.
The dxf file can be imported in Freecad
Attachments
00orn.dxf
(19.58 KiB) Downloaded 11 times
User avatar
Roy_043
Posts: 1399
Joined: Thu Dec 27, 2018 12:28 pm

Re: turning a .dwg furniture model into a shaded rendering?

Postby Roy_043 » Tue Jun 30, 2020 8:32 am

The DWG contains 3D elements (Poly face meshes) that are not supported by LibreCAD. I could not import the DXF BTW.

Attached a Collada file created from the DWG with BricsCAD.
Attachments
00orn.dae
(433.19 KiB) Downloaded 4 times
Herve5
Posts: 4
Joined: Mon Jun 29, 2020 6:28 pm
Location: France

Re: turning a .dwg furniture model into a shaded rendering?

Postby Herve5 » Tue Jun 30, 2020 3:30 pm

Roy_043 wrote:
Mon Jun 29, 2020 7:36 pm
Post the STL.
STL? I only have a FreeCAD file ending in FCStd, attached. (This is the one that gave the previous screenshot...)
I didn't install BricsCAD; I tried to import the .dae file into FreeCAD but it seems nothing happens (then again, I'm a total newcomer...)
Do you mean things would be simpler within BricsCAD?
Thank you for these helping reactions!
Hervé
Attachments
distances sur étagère CUTS.FCStd
(70.47 KiB) Downloaded 4 times
User avatar
Roy_043
Posts: 1399
Joined: Thu Dec 27, 2018 12:28 pm

Re: turning a .dwg furniture model into a shaded rendering?

Postby Roy_043 » Tue Jun 30, 2020 3:55 pm

Herve5 wrote:
Mon Jun 29, 2020 6:47 pm
using https://anyconv.com/dwg-to-stl-converter/.
Herve5 wrote:
Tue Jun 30, 2020 3:30 pm
STL?
You are pointing to an online 'dwg-to-stl' converter.

But anyway... There are 3 potential issues:
  1. Get the 3D model into FreeCAD
  2. Scale the model if required.
  3. Create a decent rendering.
Before continuing others should comment on the feasibility of the 3rd step. I do not know enough about that aspect of FreeCAD.
Herve5
Posts: 4
Joined: Mon Jun 29, 2020 6:28 pm
Location: France

Re: turning a .dwg furniture model into a shaded rendering?

Postby Herve5 » Tue Jun 30, 2020 5:26 pm

Roy_043 wrote:
Tue Jun 30, 2020 3:55 pm
[You are pointing to an online 'dwg-to-stl' converter.
God you are right, the url I gave is set to stl output! But it's a mistake, I did use the same website really for outputting .dxf as I said. It's the dxf output from anyconv.com that I then imported in FreeCAD. I attach the dxf here.

As for the rendering, I don't search something ambitious, merely just switching from the wireframe I get to something capable of hiding the back parts, and if possible with colored facets (otherwise I could even color the result myself elsewhere).
My aim is to assemble a series of these elements, on top of the others, to evaluate the visual effect of the shelves 'in situ'...

Thanks again!
Attachments
AnyConv.com__00orn.dxf
(161.05 KiB) Downloaded 4 times
User avatar
Roy_043
Posts: 1399
Joined: Thu Dec 27, 2018 12:28 pm

Re: turning a .dwg furniture model into a shaded rendering?

Postby Roy_043 » Tue Jun 30, 2020 8:24 pm

The DXF seems OK. It does contain the poly face meshes. But FreeCAD natively cannot import a 3D DXF. I have tried the InventorLoader add-on with which certain 3D DXFs can be imported, but not this one.

So you need to convert the DWG to a 3D format that FreeCAD can import. The Collada file I have provided (DAE) can be imported in V0.18 and V0.19. See the attached file.
Attachments
00orn.FCStd
(55.93 KiB) Downloaded 5 times
Herve5
Posts: 4
Joined: Mon Jun 29, 2020 6:28 pm
Location: France

Re: turning a .dwg furniture model into a shaded rendering?

Postby Herve5 » Wed Jul 01, 2020 8:05 am

Roy_043 wrote:
Tue Jun 30, 2020 8:24 pm
So you need to convert the DWG to a 3D format that FreeCAD can import. The Collada file I have provided (DAE) can be imported in V0.18 and V0.19. See the attached file.
Excellent indeed, far better than my wireframe!
Now I'll continue exploring with FreeCAD

Thank you!!
Hervé
P. S. I had tried to import the Collada file yesterday, but while I got no error announced, I had nothing on my display afterwards -maybe a matter of setting it...
Reynard1066
Posts: 23
Joined: Sun May 10, 2020 7:27 am
Location: Scotland

Re: turning a .dwg furniture model into a shaded rendering?

Postby Reynard1066 » Wed Jul 01, 2020 10:49 am

If all the models are simple then pick off all the dimensions and re-build using FC. If not, then convert to stl as you have done. I used progeCAD to do the dwg to stl conversion.

Blender is your goto program for doing room designs but you are looking at a long learning curve to master that.

For something quick and simple, import the stl into Blender and slap on some procedural wood texture if that is what you want. UV unwrap would be better but how much time do you want to put in to it.

Create a simple environment using a HDR image to provide a scene and the lighting. Link in all your furniture models and render.

Reynard
Attachments
Box 2.jpg
Box 2.jpg (99.67 KiB) Viewed 70 times