Convert Any 2D Image to a 3D Object Using OpenSCAD (and Only Free Software)





Introduction: Convert Any 2D Image to a 3D Object Using OpenSCAD (and Only Free Software)

I have recently become quite obsessed with 3D design and printing, since I have very little design experience I have been relying extensively on OpenSCAD, it makes designing 3D objects just too easy not to try, if you want to make 3D models from an image or SVG file, you can do it very easily - there are other ways to convert to other 3D formats, so this is only if you want to use SCAD.

If you need to remove the background image check my tutorial for removing background here:

Please vote for me if you find this handy :) If I win a Form1Labs printer, I am hoping I will be able to open the first hackerspace \ makerspace in our area :)

Step 1: Download Your Tools

1- Download Inkscape from

2- Download OpenScad from

3- Download the InkScape to OpenSCAD converter from - Follow the instructions to install the extension to InkScape

Step 2: Convert Image to SVG

1- Pick an image and open the image with InkScape

2- Convert the image to path by selecting Trace Bitmap from the Path menu

3- Play around with the settings until you get the result you want, if you choose Edge Detection you can actually get a hollow 3D object, in this case I am looking for a solid object, so I chose to cut off based on color

Step 3: Delete Image and Use Newly Created Path Instead

Now you can delete the image and keep the path you just created, select the original image and press delete. Move the path to the center of the window

Step 4: Convert Paths to OpenSCAD

Go to the menu, choose "Generate From Paths"->"Paths to OpenSCAD"

If you do not see this option, make sure you closed and reopened InkSpace after pasting the extension

Step 5: Choose the Height and Smoothing

You will be able to easily adjust the height later in OpenSCAD, so don't worry too much about it

Step 6: Edit & Export Your File With OpenSCAD

Open the file in OpenSCAD, you can see that the objects are described in terms of Polygons and other basic objects, you can edit the object without much 3D design experience

- Edit your object as needed

- Press F6 to compile it

- Go to Design -> Export, and choose your file format

Step 7: You Are Done! Print Your Object and Enjoy :)

Print your object if you have a printer, or send it to Ponoko, Shapeways or any other printing service!



    • Epilog Challenge 9

      Epilog Challenge 9
    • Paper Contest 2018

      Paper Contest 2018
    • Science of Cooking

      Science of Cooking

    We have a be nice policy.
    Please be positive and constructive.




    Hello, very nice instructable, and I did follow every step, the problem I am having is let's say I do a shape like a letter O, hollow circle in a circle, after rendering in Openscad, it will show me just the outside circle, not the hollowed center logo. I tried simple stuff, same thing, a rectangle, cut in a larger rectangle, it will only render the big rectangle without the smaller one hollowed out. I tried combining, cutting, object to path, it's not doing it.

    use hgt2stl its awesome

    it appears hgt2stl is only on windows. can't use it then.

    Hi Dimitros, I am not sure but maybe one of the various tracing options in InkScape will make it work better for you? I do have a hollow circle in the picture I used that seemed to work fine , but it could also be specific to the file you are using.

    If you don't want to use that extension "Paths to OpenSCAD", you should, after the conversion to SVG, select the SVG image and ungroup it. It will show all the images inside the png/gif image. Delete all and keep one. And continue with this tutorial. Anyone disagree or have another way to do it?

    Very good tutuorial

    you should use hgt2stl its much less hassle i checked it out

    thanks Obrtie, I will give it a shot :)

    you can do exactly the same thing in only one step using selva (