Please help converting a 2d image to 3d object
Forum rules
and Helpful information
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!
Also, be nice to others! Read the FreeCAD code of conduct!
-
- Posts: 9
- Joined: Wed Jul 04, 2018 6:57 pm
Please help converting a 2d image to 3d object
freecad ver0.16 << highest version number i was able to install>>
Linux Xubuntu 18.04
What I wish to accomplish,is to take an image file and extrude it into a 3d shape.
the methods I have tried are as follows.
1 . imported the image into ikscape as a .bmp file, i then used Path > Trace Bitmap.
After that I saved it as a PLAIN .svg .
used this tutorial "Inkscape tutorial: Tracing bitmaps"
https://inkscape.org/en/doc/tutorials/t ... acing.html
I then tried to IMPORT the .svg file into
several different workbenches in freecad as svg geometry. Each time i did so freecad
crashed itself. << what am I doing wrong here?
2. I then imported the image using the image workbench >create a planar image in the
3d workspace after making the image a transparent background .png. I am able to view
the image and sketch over it however that is an extremely slow way to create an extrusion .
3. this fctexture macro looks promising, but there are no clear instructions how to
use it.
https://www.freecadweb.org/wiki/Macro_Texture
I read this post trying to find useful instructions, and did not find them.
https://forum.freecadweb.org/viewtopic. ... 968#p80658
is there any other method to take an image file and turn it into a 3d part?
Linux Xubuntu 18.04
What I wish to accomplish,is to take an image file and extrude it into a 3d shape.
the methods I have tried are as follows.
1 . imported the image into ikscape as a .bmp file, i then used Path > Trace Bitmap.
After that I saved it as a PLAIN .svg .
used this tutorial "Inkscape tutorial: Tracing bitmaps"
https://inkscape.org/en/doc/tutorials/t ... acing.html
I then tried to IMPORT the .svg file into
several different workbenches in freecad as svg geometry. Each time i did so freecad
crashed itself. << what am I doing wrong here?
2. I then imported the image using the image workbench >create a planar image in the
3d workspace after making the image a transparent background .png. I am able to view
the image and sketch over it however that is an extremely slow way to create an extrusion .
3. this fctexture macro looks promising, but there are no clear instructions how to
use it.
https://www.freecadweb.org/wiki/Macro_Texture
I read this post trying to find useful instructions, and did not find them.
https://forum.freecadweb.org/viewtopic. ... 968#p80658
is there any other method to take an image file and turn it into a 3d part?
Re: Please help converting a 2d image to 3d object
Hi scottdmills71, welcome to the forum. Please follow the IMPORTANT link above and supply the full FreeCAD info of your two versions. No one here knows which is the highest version number you are able to install, nor do we even know the system on which you did so.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
- wandererfan
- Veteran
- Posts: 6309
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: Please help converting a 2d image to 3d object
scottdmills71 wrote: ↑Wed Jul 04, 2018 7:01 pm is there any other method to take an image file and turn it into a 3d part?
this https://www.forum.freecadweb.org/viewto ... 22&t=28831 might be worth a look.
Re: Please help converting a 2d image to 3d object
You should be able to install at least ubuntu stable 0.17scottdmills71 wrote: ↑Wed Jul 04, 2018 7:01 pm freecad ver0.16 << highest version number i was able to install>>
Linux Xubuntu 18.04
https://forum.freecadweb.org/viewtopic. ... 92#p227145
https://www.freecadweb.org/wiki/Install ... ed_systems
[0.17 release/0.18 daily/0.16 legacy] Ubuntu PPA users please read this
-
- Posts: 9
- Joined: Wed Jul 04, 2018 6:57 pm
Re: Please help converting a 2d image to 3d object
So far for the project I am working on I have went ahead with method number 2 , I spent a lot of time sketching around a converted .BMP file .Now I am searching the web for some way to close off parts of the sketch so that I can extrude this 50mm. When I try to do it as it is I get lots of walls but not exactly what I am trying to accomplish.
- Attachments
-
- Screenshot_2018-07-05_21-55-08.png (279.23 KiB) Viewed 13379 times
-
- 4.png (8.38 KiB) Viewed 13379 times
-
- 3.fcstd
- (409.2 KiB) Downloaded 91 times
Re: Please help converting a 2d image to 3d object
Your lines are not connected. I have moved some of them to show the issue:
I would go for the inkscape method with heavy use of the simplify path function.A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Please help converting a 2d image to 3d object
You have 1260 straight lines in your sketch and 5040 degrees of freedom. That means you have not even two of them connected. You can use the Sketcher->Validate sketch tool to find and fix them, however it doesn't seem to find them all. You can currently set precision only to the predefined values, a fix for that is on its way.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
-
- Veteran
- Posts: 5513
- Joined: Thu Apr 05, 2018 1:53 am
Re: Please help converting a 2d image to 3d object
Good job with the drawing you made.
I imported the image via FCBmpImport. It ain't exactly pretty. I scaled it down to 200x74 in Gimp2, then imported as a Wire, applied midpoints + remove collinears, then selected all DWires and used Part->Extrude (to 50mm), then finished it off by selecting all but the first Extrude and fusing them together, then cutting the fusion from the first Extrude (which was the outline), took maybe 5 to 10 minutes.
I did a similar thing with the original unscaled (from a screencap of the pic you posted here), but the FreeCAD file is 5MB, too big to attach.
I'm also have a padded sketch version (only 1700 line segments with 6800 degress of freedom in the unconstrained sketch). That's the scaled down version, and even it's really too much for the sketcher.
I imported the image via FCBmpImport. It ain't exactly pretty. I scaled it down to 200x74 in Gimp2, then imported as a Wire, applied midpoints + remove collinears, then selected all DWires and used Part->Extrude (to 50mm), then finished it off by selecting all but the first Extrude and fusing them together, then cutting the fusion from the first Extrude (which was the outline), took maybe 5 to 10 minutes.
I did a similar thing with the original unscaled (from a screencap of the pic you posted here), but the FreeCAD file is 5MB, too big to attach.
I'm also have a padded sketch version (only 1700 line segments with 6800 degress of freedom in the unconstrained sketch). That's the scaled down version, and even it's really too much for the sketcher.
- Attachments
-
- melody-scaled.FCStd
- (707.75 KiB) Downloaded 62 times
Re: Please help converting a 2d image to 3d object
… make your picture as a scaled background.
Disassemble the objects in your picture by making separate models.
Now you are free to extrude and position the simple parts at your like and taste.
Disassemble the objects in your picture by making separate models.
Now you are free to extrude and position the simple parts at your like and taste.
- Attachments
-
- Melody.FCStd
- FC,18.14014
- (27.48 KiB) Downloaded 70 times
-
- Posts: 9
- Joined: Wed Jul 04, 2018 6:57 pm
Re: Please help converting a 2d image to 3d object
Awesome tips everyone, Now I am going to digest and try to understand it all and definitely learn from it.