<p>Cura will import a picture and use it as a heightmap to build a 3d object.<a href="https://i.sstatic.net/fMb0F.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/fMb0F.jpg" alt="enter image description here" /></a></p>
<p>There are a few options available when importing :<a href="https://i.sstatic.net/7xmEU.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/7xmEU.png" alt="enter image description here" /></a></p>
<p>You can even export back the data as STL if you need to process the mesh. Here is the mesh exported in STL, opened in SideFX Houdini: <a href="https://i.sstatic.net/F8AGV.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/F8AGV.png" alt="enter image description here" /></a></p>

CC BY-SA 4.0
2021-11-02T22:21:22.017Z
2021-11-02T23:02:32.303Z
2021-11-02T23:02:32.303Z
alecail
<p>The OpenSCAD <code>surface</code> function will do this.  You can feed it a greyscale image or a textfile containing a matrix.  Documentation and examples can be found at <a href="https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Other_Language_Features#Surface" rel="nofollow noreferrer">https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Other_Language_Features#Surface</a></p>
<p>OpenSCAD is a cross platform free open source cad package.</p>

CC BY-SA 4.0
2021-06-05T13:08:02.427Z
2021-06-05T13:08:02.427Z
user10489
<p>FreeCAD can import JPG (and IIRC TIFF and PNG as well) image files and produce a lithophane type height-map based on the brightness of each pixel.  I'd be rather surprised if other 3D CAD software aimed at the 3D printing user base couldn't do the same.  Most of the common free-to-use 3D CAD packages have Linux versions; FreeCAD certainly does (I use it on Kubuntu 20.04, and it should work on any recent version of any flavor of Debian-based Linux, if your hardware meets it requirements).</p>

CC BY-SA 4.0
2021-06-04T16:52:58.673Z
2021-06-04T16:52:58.673Z
Zeiss Ikon
<p>Windows has its 3D Builder software which upon importing an image, converts it to a heightmap of the image, aka turning it to a 3D model that can be saved as an stl.</p>
<p>Does Linux have software with similar properties that takes a black and white image and turning it into a 3D heightmap model?</p>

CC BY-SA 4.0
2021-06-04T22:24:39.647Z
OpenSCAD is linux compatible, free software. There are a number of facilities to permit heightmap to 3D conversion. The results of "lithophane OpenSCAD" returns many options, and it's difficult to narrow down to the "best" choice, as it's a matter of one's skill set/level of understanding. This would be an answer, but I feel it's incomplete without providing results of the search. "Heightmap OpenSCAD" is another useful search set.
fred_dot_u
<3d-models><2d>
Converting a 2D black and white image to a 3D model for printing on Linux
GalSuchetzky
# Converting a 2D black and white image to a 3D model for printing on Linux

(Asked by: username_0 on 2021-06-04)

Windows has its 3D Builder software which upon importing an image, converts it to a heightmap of the image, aka turning it to a 3D model that can be saved as an stl.

Does Linux have software with similar properties that takes a black and white image and turning it into a 3D heightmap model?

**Tags:** 3d-models, 2d
> **Comments:**
> **username_1**: OpenSCAD is linux compatible, free software. There are a number of facilities to permit heightmap to 3D conversion. The results of "lithophane OpenSCAD" returns many options, and it's difficult to narrow down to the "best" choice, as it's a matter of one's skill set/level of understanding. This would be an answer, but I feel it's incomplete without providing results of the search. "Heightmap OpenSCAD" is another useful search set.  

---

## 3 answers

### Answer by username_2 on 2021-11-02. Score: 1

Cura will import a picture and use it as a heightmap to build a 3d object.[![enter image description here](https://i.sstatic.net/fMb0F.jpg)](https://i.sstatic.net/fMb0F.jpg)

There are a few options available when importing :[![enter image description here](https://i.sstatic.net/7xmEU.png)](https://i.sstatic.net/7xmEU.png)

You can even export back the data as STL if you need to process the mesh. Here is the mesh exported in STL, opened in SideFX Houdini: [![enter image description here](https://i.sstatic.net/F8AGV.png)](https://i.sstatic.net/F8AGV.png)


---

### Answer by username_3 on 2021-06-05. Score: 1

The OpenSCAD `surface` function will do this. You can feed it a greyscale image or a textfile containing a matrix. Documentation and examples can be found at <https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Other_Language_Features#Surface>

OpenSCAD is a cross platform free open source cad package.


---

### Answer by username_4 on 2021-06-04. Score: 0

FreeCAD can import JPG (and IIRC TIFF and PNG as well) image files and produce a lithophane type height-map based on the brightness of each pixel. I'd be rather surprised if other 3D CAD software aimed at the 3D printing user base couldn't do the same. Most of the common free-to-use 3D CAD packages have Linux versions; FreeCAD certainly does (I use it on Kubuntu 20.04, and it should work on any recent version of any flavor of Debian-based Linux, if your hardware meets it requirements).


---

