3D printer SkyOne with

How to create in Blender a 3D model for milling based on a bitmap image.

3D milling can be done based on a bitmap image instead of a ready 3D model. This method is based on a color map of the bitmap, which is converted into a heightmap for milling. Light color parts of a bitmap lay over than dark parts. The minimum depth of milling is determined by white color, the maximum depth by black color.

In such a way it is possible to prepare g-code for milling using a bitmap image.

The most simple way - to use one of online resources for convertation of bitmap image into 3D model or ready g-code. But such ready services offer minimum adjustability of an output file.

One of such examples - http://3dp.rocks/lithophane/ . This service lets convert an image into a 3D model (STL format). In the section "image" should be uploaded the source bitmap image file, in the section "Settings" it is possible to set some adjustments, in the section "model" - to see and download the ready 3D model.

The readySTL 3D model should be imported in BlenderCAM, when prepare g-code for milling as it is described in the article "Usage of 3D printer SkyOne as a 3D milling machine".

But if more flexible adjustments are necessary, it is possible to create a 3D model from a bitmap image by usage of Blender software.

How to create a 3D model from a bitmap image in Blender

To create a 3D model from a bitmap image it is better to use classic Blender, because BlenderCam modifies the user interface.

  1. As the program Blender is launched, the only object cube appears in the work window. Delete this object.
  2. Insert a new object - a plane - instead of the cube. To do it select a plane at the T-panel on the "Create" tab. A new plane will appear at the 3D cursor coordinates.
    Milling with 3D printer SkyOne according a bitmap image - add a plane - BlenderCam
  3. Make a flat pattern. To do it select the plane (if it is not yet selected), change to edit mode, press the hotkey "u" on the keyboard and select menu "unwrap".
    Milling with 3D printer SkyOne according a bitmap image - unwrap the plane -  Blender
  4. Apply the image on the flat pattern. To do it:
    1. Select the tab "material"
      Milling with 3D printer SkyOne according a bitmap image - add material -  Blender
      and add a new one - press "new".
      Milling with 3D printer SkyOne according a bitmap image - add material -  Blender
    2. Select the tab "texture"
      Milling with 3D printer SkyOne according a bitmap image - add texture -  Blender
      and add a new one - press "new". The structure type is "Image or Movie".
      Milling with 3D printer SkyOne according a bitmap image - add texture -  Blender
      Milling with 3D printer SkyOne according a bitmap image - add texture -  Blender
    3. Press "Open" and choose the file with the source image.
    4. Select the option "Textured Solid" at the N-panel.
      Milling with 3D printer SkyOne according a bitmap image - add texture -  Blender
    5. Add one more window to the Blender nterface (draw the part in the bottom left side of the window).
      Milling with 3D printer SkyOne according a bitmap image - Add one more window to the Blender nterfacer
    6. Switch the mode of the new window to UV/Image editor.
      Milling with 3D printer SkyOne according a bitmap image - Switch the mode of the new window to UV/Image editor
    7. In the new window choose the same bitmap image ("open file" or press a sign of added images).
      Milling with 3D printer SkyOne according a bitmap image - choose the same bitmap image -  Blender
      Now the image is applied on the flat pattern:
      Milling with 3D printer SkyOne according a bitmap image - the image is applied on the plane -  Blender
    8. If necessary, draw the image along axises X-Y. To do it change to Object mode
      Milling with 3D printer SkyOne according a bitmap image -  Object mode - Blender
      and press hotkeys: S and then Y - draw the image along Y axis; then S and X - to draw along X axis.
      Milling with 3D printer SkyOne according a bitmap image - draw image along X and Y axises -  Blender
  5. Divide the surface to many small surfaces. To do it change to Edit mode and press the button "subdivide" on the tools tab few times. Subdivide the surface, until the grid becomes fine enough.
    Milling with 3D printer SkyOne according a bitmap image - subdividing surface to many smaller ones -  Blender
  6. Choose the tab modifiers
    Milling with 3D printer SkyOne according a bitmap image -  the tab modifiers - Blender
    and add a new one – "Add modifier" – "displace".
    Milling with 3D printer SkyOne according a bitmap image -  modifiers -  Blender
  7. Then in the field "Texture" below add the texture, which was creates from the image before.
    Milling with 3D printer SkyOne according a bitmap image - add the image to the texture of the displace modifier - Blender
  8. Change to Object mode. Adjust the field "strength" (decrease the value) such that the image becomes acceptable.
    Milling with 3D printer SkyOne according a bitmap image -  add the image to the texture of the displace modifier - Blender
  9. Set the field " texture coordinates" to UV.
    Milling with 3D printer SkyOne according a bitmap image - displace modifier in Blender - volumetric image
  10. Turn off the option "Textured Solid" in the "Shading" section at the N-panel.
  11. If everything is ok, press the button "apply" of the modifier.
    Milling with 3D printer SkyOne according a bitmap image -  modifier displace  in Blender - 3D model made from an image
  12. Press the "smooth" button at the T-panel to smooth the image.
    Milling with 3D printer SkyOne according a bitmap image -  modifier displace  in Blender - smooth 3D model made from an image.
  13. Apply additionally the modefier "Decimate" if need. This modifier decreases the number of polygones. Decrease the value in the field "ratio" of the modifier till the image keeps acceptable appearance and then press "apply" button.
    Milling with 3D printer SkyOne according a bitmap image -  modifier decimate  - Blender
  14. Change to Sculpture mode. Turn on "Dyntopo" on the T-panel (tab Tools). Agree to the warning of textures reset.
    Milling with 3D printer SkyOne according a bitmap image -   Sculpt mode - 3D model modification -  Blender
  15. In the section "Symmetry/Lock" turn off mirroring of a brush.
    Milling with 3D printer SkyOne according a bitmap image - Sculpt mode - 3D model modification  -  Blender
  16. If necessary, improve the model by brushes till it gets satisfying appearance.
    Milling with 3D printer SkyOne according a bitmap image -  improving the model by brushes - Sculpt mode -  Blender
  17. The ready blend object can be used for g-code generation as it is described in the article "Usage of 3D printer SkyOne as a 3D milling machine".
    Milling with 3D printer SkyOne according a bitmap image -  ready g-code for milling made according a 3D model, based on a bitmap image - lithophany

See also: