Difference between revisions of "Designing for the laser cutter"

From MakeICT Wiki
Jump to navigationJump to search
(some laserweb updates)
Line 1: Line 1:
 
== Resources ==
 
== Resources ==
The [[Media:LaserCut_v5.3.zip|LaserCut]] software is quirky, prone to crashes, and only available as a demo version on most computers. It is recommended that design work be done in a separate application, and as few steps as possible are taken within the LaserCut software.
+
The [[Laserweb]] software is great for interfacing to the laser cutter but it has almost no design tools. Use a design program to create your design:
 
* [http://inkscape.org Inkscape] is illustration software for creating or modifying vector images. It's like the 100% free and open source cousin of Adobe Illustrator. Inkscape can be used to create designs that can include both etches and cuts in a single file.
 
* [http://inkscape.org Inkscape] is illustration software for creating or modifying vector images. It's like the 100% free and open source cousin of Adobe Illustrator. Inkscape can be used to create designs that can include both etches and cuts in a single file.
 
** [http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.php Inkscape Manual]
 
** [http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.php Inkscape Manual]
Line 12: Line 12:
  
 
== Rasters ==
 
== Rasters ==
LaserCut can be used to etch raster images (jpg, png, bmp, etc) with some caveats:
+
Laserweb can be used to etch raster images (jpg, png, bmp, etc) with some caveats:
* LaserCut will accept a full-color image, but will process it as a black-and-white.
+
* Laserweb will accept a full-color image, but will process it as gray scale. Remember there are not colors in laser cutting, the laser only cuts in one color (burnt).
** In other words, LaserCut will '''not''' scale the power of the laser according to the brightness or darkness of each pixel. As it scans your raster, it will either fire the laser at the power specified or not at all
+
* Laserweb can scale the power of the laser according to the brightness or darkness of each pixel. As it scans your raster, it will attempt to modulate the power. There is some reaction time involved so the slower your scan, the better resolution you'll have across power levels.
** No, it doesn't work on grayscale images either.
+
* Dithering an image can yield good results
** Transparency = black. Don't waste your time trying to be fancy with opacity in PNG's or GIF's - it won't work.
 
* For the best (and most predictable) results,
 
 
** Scale up your image
 
** Scale up your image
 
*** In GIMP, select Image > Scale...
 
*** In GIMP, select Image > Scale...
Line 26: Line 24:
 
*** Set "Color dithering" to your desired effect (probably something besides "None").
 
*** Set "Color dithering" to your desired effect (probably something besides "None").
 
** You may find better control if you convert to grayscale first, tweak brightness/contrast/levels, and then dither.
 
** You may find better control if you convert to grayscale first, tweak brightness/contrast/levels, and then dither.
* Rasters can be set to different layers just like any other shape in LaserCut (pick the raster, then pick a color). The outline of the raster when it's not selected indicates its layer.
 
  
 
=== Dither examples ===
 
=== Dither examples ===
Line 46: Line 43:
 
* Set the document page size to the size of your media. This makes it easier to visualize your design (''File > Document Properties'')
 
* Set the document page size to the size of your media. This makes it easier to visualize your design (''File > Document Properties'')
 
* It's also recommended that mm is used as the default unit
 
* It's also recommended that mm is used as the default unit
 
=== Layer support ===
 
* Inkscape layers do not translate to LaserCut layers (but you can use Inkscape layers to selectively export parts of your design to DXF)
 
* Instead, the COLOR of the STROKE is used as the layer color when importing to LaserCut, but the stroke style, stroke width, and fill color have no impact.
 
* While the LaserCut software supports 40 distinct layers, only 7 are supported with the DXF import.
 
* For convenience, save this [[Media:LaserCut_DXF_Palette.gpl|LaserCut DXF Palette]] in your Inkscape palette's folder
 
** In Linux (and probably Mac?), that's ~/.config/inkscape/palettes
 
** In Windows, it's %appdata%\Inkscape\palettes
 
* If no stroke is configured for a shape, it will default as black.
 
  
 
=== Tracing ===
 
=== Tracing ===

Revision as of 09:44, 14 January 2018

Resources

The Laserweb software is great for interfacing to the laser cutter but it has almost no design tools. Use a design program to create your design:

Rasters

Laserweb can be used to etch raster images (jpg, png, bmp, etc) with some caveats:

  • Laserweb will accept a full-color image, but will process it as gray scale. Remember there are not colors in laser cutting, the laser only cuts in one color (burnt).
  • Laserweb can scale the power of the laser according to the brightness or darkness of each pixel. As it scans your raster, it will attempt to modulate the power. There is some reaction time involved so the slower your scan, the better resolution you'll have across power levels.
  • Dithering an image can yield good results
    • Scale up your image
      • In GIMP, select Image > Scale...
      • I'd recommend 300dpi. You'll need to know your desired physical size and do the math to figure out how many pixels that is
    • And convert your image to a black-and-white dither
      • In GIMP, select Image > Mode > Indexed...
      • Select "Use black and white (1-bit) palette"
      • Set "Color dithering" to your desired effect (probably something besides "None").
    • You may find better control if you convert to grayscale first, tweak brightness/contrast/levels, and then dither.

Dither examples

Size No dither Floyd-Steinberg (normal) Floyd-Steinberg (Reduced) Positioned Original
Regular Founders-no-dither.png Founders-floyd-steinberg-normal.png Founders-floyd-steinberg-reduced.png Founders-positioned.png Founders-original.png
2x scaled Founders-scaled-no-dither.png Founders-scaled-floyd-steinberg-normal.png Founders-scaled-floyd-steinberg-reduced.png Founders-scaled-positioned.png

Vectors

Recommended Inkscape Settings

  • Change the bounding box option from "Visual" to "Geometric". This will exclude the stroke width in the calculation of shape dimensions (which are also ignored in DXF, LaserCut, etc). To do this,
    • Edit > Preferences
    • Select "Geometric Bounding Box"
  • Set the document page size to the size of your media. This makes it easier to visualize your design (File > Document Properties)
  • It's also recommended that mm is used as the default unit

Tracing

Inkscape has some pretty sophisticated vectorization algorithms built-in. This means that you can feed it a raster-type image, and it can generate a vector trace from it. This can be used to generate cut paths from a raster image - if you brought the image directly into LaserCut instead, it would only allow you to engrave it.

It can also be useful for including an image with vector designs in a single file.

Original Traced
Bat-and-rob-original.png Bat-and-rob-traced.png
  • For line work (black-and-whites, line-drawings, cut-outs, silhouettes, etc), you'll probably want to use "Brightness Cutoff"
  • To preserve/separate colors, select "Colors" under "Multiple Scans"
    • Be sure to uncheck "Stack scans", or your shapes will overlap (and be lasered multiple times!)

DXF export from Inkscape

Inkscape can generate DXF files, which can be imported into LaserCut.

  • Always save your file as .SVG - this is the native file format for Inkscape and preserves data. Use the "Save a copy" feature to export alternative file types.
  • Text and some other shapes must be converted to paths before they will appear in the DXF.
    • To make sure everything is a path before you export:
      • Edit > Select all in all layers
      • Path > Object to path
    • You will lose the ability to modify some properties of some objects, like changing a text's font or a rectangle's rounded corners
    • Images cannot be converted to paths in this manner. To do so, see the "Tracing" section
  • To export the DXF,
    • Select File > Save a copy...
    • Set the file type to "Desktop Cutting Plotter (AutoCAD DXF R14) (*.dxf)"
    • Uncheck ROBO-Master and LWPOLYLINE
    • Set the Base unit to 'mm'
    • Layer export works as expected

DXF import to LaserCut

  • Make sure that Inkscape has finished saving the DXF before you attempt to import it. The status bar will give an indication when it is complete
  • Occasionally, LaserCut will fail to import a DXF properly. If this happens, close the application and try again. Sometimes, you may need to try more than twice. Weird, I know.
  • Make sure your drawing is positioned on the virtual bed in the workspace. It's actual position doesn't matter if you're in immediate mode (default), but the software does weird things if you're off the virtual table. The easiest way to do this is to select everything, and then Center to Table
  • Paths will come in as segments. If you plan to do any engraving you must unite lines, but it's a good idea to do no matter what (Tools menu).

Useful extensions

  • Render > Hershey Text for simple vector fonts (these laser much faster than filled our outlined fonts)
  • Render > Gear... for generating paths in the shape of gears. Remember that tooth pitch must match for gears to mesh. Scaling a gear after it's rendered breaks this. Can also be done via Live Path Effect.
  • Laser Tools > Tabbed Box Maker for generating boxes with interlocking tabs