3D Printing
Vengi exports voxel scenes as watertight triangle meshes ready for slicing software such as Bambu Studio, PrusaSlicer, OrcaSlicer and Cura.
Recommended Format: 3MF vs STL
- 3MF (
.3mf) is recommended for multi-color and multi-part printing. It stores colors, part names, hierarchy assemblies (<components>), and millimeter units (1 voxel = 1 mmby default). - STL (
.stl) contains geometry only without colors or separate objects.
The 3MF exporter always splits T-junctions and repairs non-manifold pinch edges/corners so exported parts have zero open boundary edges or non-manifold edges. For other triangulated mesh formats (such as STL, OBJ, PLY, or glTF), enable voxformat_fixtjunctions (in the Save dialog options or via -set voxformat_fixtjunctions true) to run the same T-junction and non-manifold edge repair.
3MF Export Options
These cvars can be changed in the Export dialog (3MF options), in Configuration, or on the CLI with vengi-voxconvert -set <cvar> <value>:
| Cvar | Default | Description |
|---|---|---|
voxformat_3mfsplitbycolor |
true |
Splits multi-color models into separate solid, watertight <object> parts per color grouped into a <components> assembly. |
voxformat_targetcolors |
0 |
Limits exported palette colors to at most N colors (for example 4 for a 4-slot AMS / MMU unit). Keeps opaque and transparent colors in separate buckets when N >= 2. |
voxformat_3mfomittransparent |
false |
Skips transparent voxels (such as glass, windows or water) during 3MF export. Applied before voxformat_targetcolors so target color slots are not spent on omitted parts. |
voxformat_3mfvolumetric |
false |
Embeds the 3MF volumetric PNG slice stack in addition to the printable surface mesh. |
voxformat_scale |
1.0 |
Scale factor from voxels to millimeters (1.0 = 1 mm per voxel). |
Multi-Color Slicer Tips (Bambu Studio / AMS)
Prefer Solid Per-Color Components (voxformat_3mfsplitbycolor = true)
When voxformat_3mfsplitbycolor is enabled, each multi-color node is exported as one assembly containing one solid watertight part per color using a single shared <m:colorgroup>.
Compared to per-triangle surface painting, solid components give:
- Crisp geometric color boundaries without jagged edges or color bleed
- 1-click assignment of each color part to a physical filament slot (
1..N) in Bambu Studio's Objects list
Avoiding Mixed-Color Filament Warnings
Bambu Studio may show: "Printing mixed-color filament on a single-extruder printer requires frequent filament changes..." when an imported 3MF contains hex colors that do not match the plain spools configured in your project, causing Bambu Studio to auto-generate Mixed Filaments that swap filaments across thin sub-layers.
To prevent this and minimize purge waste:
- Quantize to your printer's filament count (
voxformat_targetcolors 4) and omit glass/water parts (voxformat_3mfomittransparent true) if they will not be printed. - Or remap directly to your physical filament hex colors by exporting with a custom palette (e.g. a
.gplfile containing your 4 loaded filament colors):sh vengi-voxconvert -set voxformat_createpalette false -set palette my_filaments.gpl -set voxformat_3mfomittransparent true --input data/voxedit/aquarium.vengi --output aquarium.3mf -f - In Bambu Studio's color-mapping dialog or Objects tab, assign each color directly to a plain single-color filament slot and remove any auto-created Mixed Filament entries.
Filament Palettes (Open Filament Database)
You can build a palette from real manufacturer filament hex colors via openfilamentdatabase.org:
- VoxEdit: open File > Filament DB... in the Palette panel, choose your vendor and material, tick your loaded spools, and click Replace Palette or Append to Palette.
- CLI (
vengi-palconvert): list vendors/materials/colors and generate a.gplpalette:sh vengi-palconvert --ofd-brands vengi-palconvert --ofd-materials bambu_lab vengi-palconvert --ofd-colors bambu_lab:pla vengi-palconvert --input ofd:bambu_lab:pla:jade_white,bambu_green,black,red -o my-ams.gpl
Scale and Printability
At the default voxformat_scale = 1.0, one voxel equals 1 mm (for example 32 x 22 x 19 mm for aquarium.vengi). Thin 1-voxel walls or floating details are only 2-3 perimeter lines wide with a standard 0.4 mm nozzle. Increasing -set voxformat_scale 2 or 3 produces sturdier prints and cleaner multi-color details.
CLI Example
Export a 4-color printable 3MF without transparent parts at 2x scale (2 mm per voxel):
vengi-voxconvert -set voxformat_targetcolors 4 -set voxformat_3mfomittransparent true -set voxformat_scale 2 --input data/voxedit/aquarium.vengi --output aquarium.3mf -f