MAGMA
Show HN: 3D print Z reinforcement via injected loops
Last verified:
What is MAGMA?
Magma is an experimental fork of OrcaSlicer that enables vertical reinforcement infill for FDM 3D printing. It works by generating a triangular lattice with sealed vertical channels, then injecting molten plastic into those channels during the print using the printer's existing extruder—requiring no hardware modifications. The result is continuous interlocking solid columns running vertically through the part, mechanically locked into the layer-printed walls, which addresses FDM parts' notorious weakness in the Z-axis where layers only bond at thin interfaces.
Key features include triangle lattice generation with optional spiral interlock for helical tube paths, dual-zone infill (Magma outer zone plus configurable inner zone), a two-stage tube assignment solver using greedy + CP-SAT algorithms, injection G-code with Z-slam sealing and multi-material support, full GCode preview with tube and injection visualization, and 40+ configurable settings exposed in the UI. The software pipeline is fully functional with triangle lattice generation, dual-zone infill, tube assignment solver, injection G-code generation, and comprehensive visualization tools.
Magma is designed for 3D printing enthusiasts, researchers, and makers who want to experiment with Z-axis reinforcement without specialized hardware. It's particularly relevant for users with dual-extruder or IDEX setups who can print cells in one material (PETG/ABS) and inject with another (PLA), or those with access to lower-melt materials like PCL (60°C melt), TPU, or exotic filaments. The project is explicitly labeled as experimental and research-focused, inviting community collaboration to solve the materials science challenges.
The project includes defensive publication under CC0 1.0 Universal, dedicating all algorithms and design techniques to the public domain to prevent third-party patenting. Full design documentation is available including the tube solver algorithm and complete architecture disclosure. The OrcaSlicer fork inherits AGPL-3.0 license while the Magma algorithms themselves are public domain.
MAGMA pricing
Pricing model: Freemium
Free and open source. The OrcaSlicer fork is available under AGPL-3.0 license (inherited from upstream OrcaSlicer). The Magma algorithms and design are dedicated to the public domain via CC0 1.0 Universal defensive publication, meaning anyone is free to use, modify, build on, or commercialize any of the techniques without cost. Pre-built binaries are available on the Releases page, and source code is available at MGunlogson/OrcaSlicer (magma-infill branch).
MAGMA pros
- No hardware modifications required—uses existing extruder
- Continuous solid Z-axis reinforcement columns
- Mechanically interlocking with surrounding lattice walls
- Triangle lattice generation with optional spiral interlock
- Dual-zone infill with configurable outer and inner zones
- Two-stage tube assignment solver (greedy + CP-SAT)
- Injection G-code with Z-slam sealing capability
- Full multi-material and multi-extruder support
- Complete GCode preview with tube visualization
- Injection event visualization in preview mode
- 40+ configurable settings exposed in UI
- Works end-to-end through slicer pipeline
- Public domain algorithms under CC0 1.0 Universal
- Full design documentation available publicly
- Dual extruder support for different injection materials
- Optional spiral interlock for helical tube paths
- Tool-ordering and filament switching wired through
- Open to community collaboration and experimentation
MAGMA cons
- Experimental status—physical prints not yet working
- Same-material plastic melts cell walls before sealing on Ender
- Materials science question remains open
- CP-SAT solver is much slower than Basic mode
- Spiral interlock default is off—benefit unmeasured
- Spiral arc widens tube footprint, fewer tubes in thin sections
- Single-extruder user cannot test multi-material features
- None of the recommended settings produced successful print yet
- Z-slam depth default 0.05mm needs testing up to 3.5mm
- Requires better hardware setups than standard Ender
Frequently asked questions about MAGMA
What does Magma do for FDM 3D printing?
Magma injects molten plastic into sealed vertical lattice channels during printing to create continuous solid Z-axis reinforcement columns. FDM parts are weak in the Z-axis because layers only bond at thin interfaces. Magma changes the infill geometry to create sealed vertical channels, then injects plastic from the printer's existing extruder—no new hardware required—resulting in continuous interlocking solid columns mechanically locked into the layer-printed walls.
Do I need to modify my 3D printer hardware to use Magma?
No hardware modifications are required. Magma uses the printer's existing extruder for injection. The injection comes from the printer's normal extruder—the nozzle drops into a vertical channel, extrudes a column of molten plastic, lifts, and moves to the next one. This is done entirely through G-code generated by the slicer.
Is Magma ready for production use?
No, Magma is explicitly experimental. The slicer pipeline works end-to-end and is fully functional, but mechanical print results are still being characterized. The physical print is NOT yet working—the author's Ender melts cell walls before they can seal when using same-material plastic. This is a research release where help and community experimentation are welcome.
What materials should I try for Magma injection?
The author recommends lower-melt injection materials like PCL (60°C melt), TPU, or sugar/wax for lost-wax applications. For dual extruder setups, try printing cells in PETG or ABS while injecting with PLA. The author hasn't tried CHT or Volcano nozzles, redesigned injection nozzles, silicone gaskets, PTFE coatings, thermal breaks, or variable injection volumetric flow ratios (current default is 0.5, testing across 0.3-0.9 needed).
How does the Magma slicing and injection process work?
Step 1: Slice with Magma Triangle infill to generate a triangular lattice where adjacent cells are paired and connected by 'windows' (gaps in shared walls) at the bottom. Step 2: Print normally, including cell walls that form sealed tubes. Step 3: During print, at configured points the printer pauses, drops nozzle to tube top, extrudes molten plastic to fill tube + U-tube partner, lifts, and continues. Step 4: Result is continuous solid columns of injected plastic in every tube pair.
What is the tube assignment solver in Magma?
Magma uses a two-stage tube assignment solver combining a greedy algorithm with CP-SAT (constraint programming with SAT) to figure out which cells to pair into U-tubes for maximum coverage while avoiding weak planes. The solver has two modes: Basic (faster) and Refined/CP-SAT (much slower, only helpful on complex geometry). Full algorithm documentation is in DESIGN-TUBE-SOLVER.md.
Does Magma support multi-extruder or multi-material printing?
Yes, Magma is wired through OrcaSlicer's multi-material and multi-extruder infrastructure. It includes magma_injection_filament setting to pick a dedicated filament/extruder for tube injection (e.g., print walls in PETG, inject with PLA), dual_infill_outer_filament for different outer Magma zone filament, plus tool-ordering, temperature management, and filament switching. However, the author has only single-extruder Eender and cannot test this—code path exists but real bugs may surface.
What are the recommended starting settings for Magma?
Sparse infill pattern: Magma Triangle; dual_infill_enabled: on; dual_infill_outer_width: 5.0 mm; Inner zone infill: Lightning pattern (least material, just supports top); magma_tube_height: 6 mm (max ~6mm works in preview); magma_nozzle_outer_diameter: 3.5 mm (or 2.5 mm for finer cells); magma_injection_z_slam: 0.5–1.0 mm; magma_injection_speed: 8 mm³/s; magma_tube_fill_factor: 0.5–0.9 (start higher); magma_tube_solver_mode: Basic; magma_spiral_interlock: off. Note: None have produced successful print yet.
What is the spiral interlock feature and should I use it?
When magma_spiral_interlock is on, the entire lattice rotates slightly per layer, creating helical tube paths rather than straight vertical columns. The intent is mechanical interlock with surrounding lattice walls (potentially better pullout resistance), but the actual benefit vs. straight tubes is unknown and unmeasured. There's a real cost: spiral arc effectively widens tube footprint, so fewer full tubes fit, especially in thin sections. Default is OFF; turn on only if specifically testing this trade-off.
What license does Magma use and can I commercialize it?
The OrcaSlicer fork inherits AGPL-3.0 license from upstream OrcaSlicer. However, the Magma algorithms and design (this repo) are dedicated to the public domain via CC0 1.0 Universal defensive publication, dated before public release. This means anyone is free to use, modify, build on, or commercialize any of the techniques without restriction. The intent is to prevent third parties from patenting these ideas later. Full defensive publication is in DEFENSIVE_PUBLICATION.md.