Encrust

Resin printing, file formats and how a slicer works

Notes from building Encrust, with the measurements and byte layouts behind them.

File formats

  1. What your printer ignores in the file you sliced

    Resin printer firmware matches the machine name written in a sliced file, and no file format says whether it obeys per-layer settings or variable layer height. Of the 199 profiles Encrust ships, 32 turn per-layer settings off and none claims variable height. In one print on our Saturn 4 Ultra, a file with the flag on stalled the plate; with it off the same job finished.

    6 min read
  2. One plate, 29 files: what each container weighs and keeps

    The same 30 mm cube, sliced once, is 4.3 MB as an Anycubic .pwmx and 145 MB as a .cbddlp, because .cbddlp writes each layer eight times to carry grey. The files differ at the edge pixels, not in the bulk of the light. Measured with Encrust on one 1440 x 2560 px panel; nothing was printed.

    8 min read
  3. Which file does your resin printer read?

    It depends on the machine, not the brand. In Encrust's catalogue of 199 profiles from 24 makers, 28 Anycubic machines take 27 different extensions, while 25 Elegoo machines take four names, mostly .goo and .ctb. One app writes the file each profile names, in the format that machine reads.

    5 min read

Resin printing

  1. Open-source resin slicers, side by side

    Three open-source resin slicers written in Rust are out today: Encrust, DragonFruit and mslicer. UVtools works on files that are already sliced. Encrust checks every layer of the file it writes and is the one of these with a browser release, mslicer publishes its benchmark method and models, and DragonFruit has plugins and an alliance behind it.

    4 min read
  2. Halve the layer height and the exposure does not halve

    Going from 0.05 to 0.03 mm takes about 82% of the exposure, not 60%, and halving to 0.025 mm about 78%, not 50%. These figures are computed, not measured, from the Jacobs working curve with a penetration depth of 0.10 mm, which Encrust assumes because no resin it ships states one. Your resin maker's number for your height comes first.

    5 min read

Inside the slicer

  1. A sliced file is somebody else's input

    Encrust's readers could, until the fuzzers found it: a header's layer count made one reserve memory for gigabytes of rows. Three guards now refuse such files with an error: a count checked against the file's size, a ceiling on the panel, and an archive entry grown under a cap.

    5 min read
  2. A resin slicer in a browser tab

    Yes. The same window as the desktop build runs in a browser tab, and a 998 000-face plate goes from the Slice button to a downloaded file in 1.2 s. What it costs is the printer network, a nightly toolchain and two response headers.

    7 min read