From f8aa51d80cbacab038d9e4ada82e2e01c30ade0d Mon Sep 17 00:00:00 2001 From: 2s0ckz <58380524+2s0ckz@users.noreply.github.com> Date: Fri, 24 Apr 2026 18:36:35 -0400 Subject: [PATCH 1/8] Added option to load .obj files with textures. Switched from frequency-weighted solid colour clustering to perceptual, diversity-preserving clustering so many shades of a single color do not crowd out distinct colors. Added color palette option for user-defined solid colours. Added an export preview visualization option. Added recoloring tools in preview mode. --- 0.9.3.3.html | 509 ++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 443 insertions(+), 66 deletions(-) diff --git a/0.9.3.3.html b/0.9.3.3.html index c5cd873..7621b77 100644 --- a/0.9.3.3.html +++ b/0.9.3.3.html @@ -230,18 +230,18 @@ .photo-upload-area{border:2px dashed var(--bd);border-radius:8px;padding:14px;text-align:center;cursor:pointer;transition:all .2s;margin-bottom:8px} .photo-upload-area:hover{border-color:var(--ac);background:var(--ag)} .photo-upload-area p{font-size:12px;color:var(--txd);margin-top:4px} - +.palette-row{display:flex;gap:6px;margin-bottom:6px}.palette-row input[type=color]{width:30px;height:30px}.palette-row .pal-del{width:28px;background:var(--sf2);color:var(--txd);border:1px solid var(--bd);border-radius:5px}.palette-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:6px}
Drop STL or 3MF here or click to browse
Drop STL, 3MF, or OBJ bundle here or click to browse
Exports each painted face as a solid flat colour. This is NOT the dithered colour-blending export β it's for use with normal multi-colour FDM printing. Use this if you want to paint your model and print it on a multi-filament printer (like a Bambu AMS) using standard solid filament colours, without any CMY dithering. No special slicer settings required.
-The Palette Size option reduces all painted colours to a fixed number using colour clustering (k-means). Set this to match the number of filament slots in your slicer β e.g. choose 8 colours for an 8-slot AMS. Colours are automatically merged toward their nearest neighbours so the most visually distinct colours are preserved.
+The Palette Size option reduces all painted colours to a fixed number using diversity-aware perceptual clustering. It compresses dominance from large same-colour areas, so a model with many black shades and small blue accents will keep black and blue instead of filling the palette with several blacks.
Re-importing into Primed3D: The Solid Colours export also works as a project save format. Export as Solid (Full Spectrum), then re-import the resulting .3mf into Primed3D to continue editing β all your painted colours are preserved on the faces and can be further refined with the brush, gradient, or photo tools before re-exporting as a dithered CMY version.
Use the π¨ Filament Colours button to set the actual hex codes of your filaments. This only affects how the slicer preview displays β the dithering ratios themselves are always computed using ideal CMY theory regardless of your specific filament brand.
@@ -411,7 +411,7 @@