discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Exporting Colors via 3MF Files

DG
Don Garrett
Tue, Feb 11, 2020 4:43 AM

I'm wondering if it's possible to preserve color information from the
original model in a file exported in 3MF format (which supports color
information). Colors are normally lost during rendering, so probably not.

Assuming that can be done, does anyone happen to know if Simplify 3D can
use model color information to select which print head to use?

This would give me a much simpler (and less error prone) workflow for
multicolor prints.

--
Don

I'm wondering if it's possible to preserve color information from the original model in a file exported in 3MF format (which supports color information). Colors are normally lost during rendering, so probably not. Assuming that can be done, does anyone happen to know if Simplify 3D can use model color information to select which print head to use? This would give me a much simpler (and less error prone) workflow for multicolor prints. -- Don
AD
Ari Diacou
Wed, Feb 12, 2020 8:35 PM

IDK.

I dont think so - at least I have never seen an option for that. Based on
the tutorial that S3D has for multi-color(
https://www.simplify3d.com/support/articles/printing-with-multiple-extruders/)
I doubt it. You should ask them this question though - they are very
responsive, and it would make 3D printing multi-material suck a lot less.

Oh yeah.

(respectively)

On Mon, Feb 10, 2020 at 11:44 PM Don Garrett dgarrett@acm.org wrote:

I'm wondering if it's possible to preserve color information from the
original model in a file exported in 3MF format (which supports color
information). Colors are normally lost during rendering, so probably not.

Assuming that can be done, does anyone happen to know if Simplify 3D can
use model color information to select which print head to use?

This would give me a much simpler (and less error prone) workflow for
multicolor prints.

--
Don


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

IDK. I dont think so - at least I have never seen an option for that. Based on the tutorial that S3D has for multi-color( https://www.simplify3d.com/support/articles/printing-with-multiple-extruders/) I doubt it. You should ask them this question though - they are very responsive, and it would make 3D printing multi-material suck a lot less. Oh yeah. (respectively) On Mon, Feb 10, 2020 at 11:44 PM Don Garrett <dgarrett@acm.org> wrote: > I'm wondering if it's possible to preserve color information from the > original model in a file exported in 3MF format (which supports color > information). Colors are normally lost during rendering, so probably not. > > Assuming that can be done, does anyone happen to know if Simplify 3D can > use model color information to select which print head to use? > > This would give me a much simpler (and less error prone) workflow for > multicolor prints. > > -- > Don > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
DG
Don Garrett
Wed, Feb 12, 2020 9:47 PM

Is it possibly to preserve colors added to a model when exporting to 3MF?

On Wed, Feb 12, 2020 at 12:36 PM Ari Diacou ari.diacou@gmail.com wrote:

IDK.

I dont think so - at least I have never seen an option for that. Based on
the tutorial that S3D has for multi-color(
https://www.simplify3d.com/support/articles/printing-with-multiple-extruders/)
I doubt it. You should ask them this question though - they are very
responsive, and it would make 3D printing multi-material suck a lot less.

Oh yeah.

(respectively)

On Mon, Feb 10, 2020 at 11:44 PM Don Garrett dgarrett@acm.org wrote:

I'm wondering if it's possible to preserve color information from the
original model in a file exported in 3MF format (which supports color
information). Colors are normally lost during rendering, so probably not.

Assuming that can be done, does anyone happen to know if Simplify 3D can
use model color information to select which print head to use?

This would give me a much simpler (and less error prone) workflow for
multicolor prints.

--
Don


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

--
Don

Is it possibly to preserve colors added to a model when exporting to 3MF? On Wed, Feb 12, 2020 at 12:36 PM Ari Diacou <ari.diacou@gmail.com> wrote: > IDK. > > I dont think so - at least I have never seen an option for that. Based on > the tutorial that S3D has for multi-color( > https://www.simplify3d.com/support/articles/printing-with-multiple-extruders/) > I doubt it. You should ask them this question though - they are very > responsive, and it would make 3D printing multi-material suck a lot less. > > Oh yeah. > > (respectively) > > On Mon, Feb 10, 2020 at 11:44 PM Don Garrett <dgarrett@acm.org> wrote: > >> I'm wondering if it's possible to preserve color information from the >> original model in a file exported in 3MF format (which supports color >> information). Colors are normally lost during rendering, so probably not. >> >> Assuming that can be done, does anyone happen to know if Simplify 3D can >> use model color information to select which print head to use? >> >> This would give me a much simpler (and less error prone) workflow for >> multicolor prints. >> >> -- >> Don >> _______________________________________________ >> OpenSCAD mailing list >> Discuss@lists.openscad.org >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > -- Don
AC
A. Craig West
Wed, Feb 12, 2020 9:57 PM

As I recall from the last time this came up, it is rather unclear what to
do when volumes of different colours are unioned together

On Wed, 12 Feb 2020, 16:48 Don Garrett, dgarrett@acm.org wrote:

Is it possibly to preserve colors added to a model when exporting to 3MF?

On Wed, Feb 12, 2020 at 12:36 PM Ari Diacou ari.diacou@gmail.com wrote:

IDK.

I dont think so - at least I have never seen an option for that. Based on
the tutorial that S3D has for multi-color(
https://www.simplify3d.com/support/articles/printing-with-multiple-extruders/)
I doubt it. You should ask them this question though - they are very
responsive, and it would make 3D printing multi-material suck a lot less.

Oh yeah.

(respectively)

On Mon, Feb 10, 2020 at 11:44 PM Don Garrett dgarrett@acm.org wrote:

I'm wondering if it's possible to preserve color information from the
original model in a file exported in 3MF format (which supports color
information). Colors are normally lost during rendering, so probably not.

Assuming that can be done, does anyone happen to know if Simplify 3D can
use model color information to select which print head to use?

This would give me a much simpler (and less error prone) workflow for
multicolor prints.

--
Don


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

As I recall from the last time this came up, it is rather unclear what to do when volumes of different colours are unioned together On Wed, 12 Feb 2020, 16:48 Don Garrett, <dgarrett@acm.org> wrote: > Is it possibly to preserve colors added to a model when exporting to 3MF? > > On Wed, Feb 12, 2020 at 12:36 PM Ari Diacou <ari.diacou@gmail.com> wrote: > >> IDK. >> >> I dont think so - at least I have never seen an option for that. Based on >> the tutorial that S3D has for multi-color( >> https://www.simplify3d.com/support/articles/printing-with-multiple-extruders/) >> I doubt it. You should ask them this question though - they are very >> responsive, and it would make 3D printing multi-material suck a lot less. >> >> Oh yeah. >> >> (respectively) >> >> On Mon, Feb 10, 2020 at 11:44 PM Don Garrett <dgarrett@acm.org> wrote: >> >>> I'm wondering if it's possible to preserve color information from the >>> original model in a file exported in 3MF format (which supports color >>> information). Colors are normally lost during rendering, so probably not. >>> >>> Assuming that can be done, does anyone happen to know if Simplify 3D can >>> use model color information to select which print head to use? >>> >>> This would give me a much simpler (and less error prone) workflow for >>> multicolor prints. >>> >>> -- >>> Don >>> _______________________________________________ >>> OpenSCAD mailing list >>> Discuss@lists.openscad.org >>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >>> >> _______________________________________________ >> OpenSCAD mailing list >> Discuss@lists.openscad.org >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> > > > -- > Don > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
NH
nop head
Wed, Feb 12, 2020 10:01 PM

Also in preview you can have different coloured faces on the same volume,
which doesn't really fit in with most types of 3D printing.

On Wed, 12 Feb 2020 at 21:58, A. Craig West acraigwest@gmail.com wrote:

As I recall from the last time this came up, it is rather unclear what to
do when volumes of different colours are unioned together

On Wed, 12 Feb 2020, 16:48 Don Garrett, dgarrett@acm.org wrote:

Is it possibly to preserve colors added to a model when exporting to 3MF?

On Wed, Feb 12, 2020 at 12:36 PM Ari Diacou ari.diacou@gmail.com wrote:

IDK.

I dont think so - at least I have never seen an option for that. Based
on the tutorial that S3D has for multi-color(
https://www.simplify3d.com/support/articles/printing-with-multiple-extruders/)
I doubt it. You should ask them this question though - they are very
responsive, and it would make 3D printing multi-material suck a lot less.

Oh yeah.

(respectively)

On Mon, Feb 10, 2020 at 11:44 PM Don Garrett dgarrett@acm.org wrote:

I'm wondering if it's possible to preserve color information from the
original model in a file exported in 3MF format (which supports color
information). Colors are normally lost during rendering, so probably not.

Assuming that can be done, does anyone happen to know if Simplify 3D
can use model color information to select which print head to use?

This would give me a much simpler (and less error prone) workflow for
multicolor prints.

--
Don


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Also in preview you can have different coloured faces on the same volume, which doesn't really fit in with most types of 3D printing. On Wed, 12 Feb 2020 at 21:58, A. Craig West <acraigwest@gmail.com> wrote: > As I recall from the last time this came up, it is rather unclear what to > do when volumes of different colours are unioned together > > On Wed, 12 Feb 2020, 16:48 Don Garrett, <dgarrett@acm.org> wrote: > >> Is it possibly to preserve colors added to a model when exporting to 3MF? >> >> On Wed, Feb 12, 2020 at 12:36 PM Ari Diacou <ari.diacou@gmail.com> wrote: >> >>> IDK. >>> >>> I dont think so - at least I have never seen an option for that. Based >>> on the tutorial that S3D has for multi-color( >>> https://www.simplify3d.com/support/articles/printing-with-multiple-extruders/) >>> I doubt it. You should ask them this question though - they are very >>> responsive, and it would make 3D printing multi-material suck a lot less. >>> >>> Oh yeah. >>> >>> (respectively) >>> >>> On Mon, Feb 10, 2020 at 11:44 PM Don Garrett <dgarrett@acm.org> wrote: >>> >>>> I'm wondering if it's possible to preserve color information from the >>>> original model in a file exported in 3MF format (which supports color >>>> information). Colors are normally lost during rendering, so probably not. >>>> >>>> Assuming that can be done, does anyone happen to know if Simplify 3D >>>> can use model color information to select which print head to use? >>>> >>>> This would give me a much simpler (and less error prone) workflow for >>>> multicolor prints. >>>> >>>> -- >>>> Don >>>> _______________________________________________ >>>> OpenSCAD mailing list >>>> Discuss@lists.openscad.org >>>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >>>> >>> _______________________________________________ >>> OpenSCAD mailing list >>> Discuss@lists.openscad.org >>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >>> >> >> >> -- >> Don >> _______________________________________________ >> OpenSCAD mailing list >> Discuss@lists.openscad.org >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
DG
Don Garrett
Wed, Feb 12, 2020 10:50 PM

That's an excellent point. Preview seems to handle this, but the behavior
probably gets weird in cases I just haven't noticed yet.

On Wed, Feb 12, 2020 at 1:58 PM A. Craig West acraigwest@gmail.com wrote:

As I recall from the last time this came up, it is rather unclear what to
do when volumes of different colours are unioned together

On Wed, 12 Feb 2020, 16:48 Don Garrett, dgarrett@acm.org wrote:

Is it possibly to preserve colors added to a model when exporting to 3MF?

On Wed, Feb 12, 2020 at 12:36 PM Ari Diacou ari.diacou@gmail.com wrote:

IDK.

I dont think so - at least I have never seen an option for that. Based
on the tutorial that S3D has for multi-color(
https://www.simplify3d.com/support/articles/printing-with-multiple-extruders/)
I doubt it. You should ask them this question though - they are very
responsive, and it would make 3D printing multi-material suck a lot less.

Oh yeah.

(respectively)

On Mon, Feb 10, 2020 at 11:44 PM Don Garrett dgarrett@acm.org wrote:

I'm wondering if it's possible to preserve color information from the
original model in a file exported in 3MF format (which supports color
information). Colors are normally lost during rendering, so probably not.

Assuming that can be done, does anyone happen to know if Simplify 3D
can use model color information to select which print head to use?

This would give me a much simpler (and less error prone) workflow for
multicolor prints.

--
Don


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

--
Don

That's an excellent point. Preview seems to handle this, but the behavior probably gets weird in cases I just haven't noticed yet. On Wed, Feb 12, 2020 at 1:58 PM A. Craig West <acraigwest@gmail.com> wrote: > As I recall from the last time this came up, it is rather unclear what to > do when volumes of different colours are unioned together > > On Wed, 12 Feb 2020, 16:48 Don Garrett, <dgarrett@acm.org> wrote: > >> Is it possibly to preserve colors added to a model when exporting to 3MF? >> >> On Wed, Feb 12, 2020 at 12:36 PM Ari Diacou <ari.diacou@gmail.com> wrote: >> >>> IDK. >>> >>> I dont think so - at least I have never seen an option for that. Based >>> on the tutorial that S3D has for multi-color( >>> https://www.simplify3d.com/support/articles/printing-with-multiple-extruders/) >>> I doubt it. You should ask them this question though - they are very >>> responsive, and it would make 3D printing multi-material suck a lot less. >>> >>> Oh yeah. >>> >>> (respectively) >>> >>> On Mon, Feb 10, 2020 at 11:44 PM Don Garrett <dgarrett@acm.org> wrote: >>> >>>> I'm wondering if it's possible to preserve color information from the >>>> original model in a file exported in 3MF format (which supports color >>>> information). Colors are normally lost during rendering, so probably not. >>>> >>>> Assuming that can be done, does anyone happen to know if Simplify 3D >>>> can use model color information to select which print head to use? >>>> >>>> This would give me a much simpler (and less error prone) workflow for >>>> multicolor prints. >>>> >>>> -- >>>> Don >>>> _______________________________________________ >>>> OpenSCAD mailing list >>>> Discuss@lists.openscad.org >>>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >>>> >>> _______________________________________________ >>> OpenSCAD mailing list >>> Discuss@lists.openscad.org >>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >>> >> >> >> -- >> Don >> _______________________________________________ >> OpenSCAD mailing list >> Discuss@lists.openscad.org >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > -- Don
J
jschobben
Thu, Feb 13, 2020 2:49 AM

Some time ago I made a script to help with exporting OpenSCAD models as
colored AMF. Perhaps that can be a starting point for colored 3MF export.

Basically, the script analyses your model to figure out which colors it
uses, and then makes OpenSCAD do a separate render for each color, with only
the geometry in that color. Finally all outputs are combined into one model,
with added color info.

It uses the oystrich approach to deal with weird geometry issues, so it's
probably best to avoid overlapping colors and such in your model...

Yep, AMF is not quite the same as 3MF, but the general approach should work
too hopefully :)
Maybe I can sneak in a proper lib3mf-based merge step, will have a look
later this week.

Incidentally, I made that script to produce an AMF for browser display
(using three.js). I have a hard time finding any regular tool that will
display the colored AMF files properly, let alone any slicer... :(

Script can be found here: https://github.com/jschobben/colorscad

  • Jesse

--
Sent from: http://forum.openscad.org/

Some time ago I made a script to help with exporting OpenSCAD models as colored AMF. Perhaps that can be a starting point for colored 3MF export. Basically, the script analyses your model to figure out which colors it uses, and then makes OpenSCAD do a separate render for each color, with only the geometry in that color. Finally all outputs are combined into one model, with added color info. It uses the oystrich approach to deal with weird geometry issues, so it's probably best to avoid overlapping colors and such in your model... Yep, AMF is not quite the same as 3MF, but the general approach should work too hopefully :) Maybe I can sneak in a proper lib3mf-based merge step, will have a look later this week. Incidentally, I made that script to produce an AMF for browser display (using three.js). I have a hard time finding any regular tool that will display the colored AMF files properly, let alone any slicer... :( Script can be found here: https://github.com/jschobben/colorscad - Jesse -- Sent from: http://forum.openscad.org/
DG
Don Garrett
Thu, Feb 13, 2020 4:05 PM

Very cool! I'll try and take a look at your script later tonight.

On Wed, Feb 12, 2020 at 6:50 PM jschobben openscad@js3.nl wrote:

Some time ago I made a script to help with exporting OpenSCAD models as
colored AMF. Perhaps that can be a starting point for colored 3MF export.

Basically, the script analyses your model to figure out which colors it
uses, and then makes OpenSCAD do a separate render for each color, with
only
the geometry in that color. Finally all outputs are combined into one
model,
with added color info.

It uses the oystrich approach to deal with weird geometry issues, so it's
probably best to avoid overlapping colors and such in your model...

Yep, AMF is not quite the same as 3MF, but the general approach should work
too hopefully :)
Maybe I can sneak in a proper lib3mf-based merge step, will have a look
later this week.

Incidentally, I made that script to produce an AMF for browser display
(using three.js). I have a hard time finding any regular tool that will
display the colored AMF files properly, let alone any slicer... :(

Script can be found here: https://github.com/jschobben/colorscad

  • Jesse

--
Sent from: http://forum.openscad.org/


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

--
Don

Very cool! I'll try and take a look at your script later tonight. On Wed, Feb 12, 2020 at 6:50 PM jschobben <openscad@js3.nl> wrote: > Some time ago I made a script to help with exporting OpenSCAD models as > colored AMF. Perhaps that can be a starting point for colored 3MF export. > > Basically, the script analyses your model to figure out which colors it > uses, and then makes OpenSCAD do a separate render for each color, with > only > the geometry in that color. Finally all outputs are combined into one > model, > with added color info. > > It uses the oystrich approach to deal with weird geometry issues, so it's > probably best to avoid overlapping colors and such in your model... > > Yep, AMF is not quite the same as 3MF, but the general approach should work > too hopefully :) > Maybe I can sneak in a proper lib3mf-based merge step, will have a look > later this week. > > Incidentally, I made that script to produce an AMF for browser display > (using three.js). I have a hard time finding any regular tool that will > display the colored AMF files properly, let alone any slicer... :( > > Script can be found here: https://github.com/jschobben/colorscad > > - Jesse > > > > -- > Sent from: http://forum.openscad.org/ > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > -- Don
J
jschobben
Wed, Feb 19, 2020 9:07 AM

Short update: the ColorSCAD script now supports 3MF as well!

It cheats a bit though, by using a c++ implementation to do the merging
step (based on Lib3MF). As a result, some compilation is needed to get
3MF working, and it requires 2019.05 as well.

It's still here: https://github.com/jschobben/colorscad

  • Jesse

On 13-2-2020 17:05, Don Garrett wrote:

Very cool! I'll try and take a look at your script later tonight.

On Wed, Feb 12, 2020 at 6:50 PM jschobben <openscad@js3.nl
mailto:openscad@js3.nl> wrote:

 Some time ago I made a script to help with exporting OpenSCAD
 models as
 colored AMF. Perhaps that can be a starting point for colored 3MF
 export.

 Basically, the script analyses your model to figure out which
 colors it
 uses, and then makes OpenSCAD do a separate render for each color,
 with only
 the geometry in that color. Finally all outputs are combined into
 one model,
 with added color info.

 It uses the oystrich approach to deal with weird geometry issues,
 so it's
 probably best to avoid overlapping colors and such in your model...

 Yep, AMF is not quite the same as 3MF, but the general approach
 should work
 too hopefully :)
 Maybe I can sneak in a proper lib3mf-based merge step, will have a
 look
 later this week.

 Incidentally, I made that script to produce an AMF for browser display
 (using three.js). I have a hard time finding any regular tool that
 will
 display the colored AMF files properly, let alone any slicer... :(

 Script can be found here: https://github.com/jschobben/colorscad

 - Jesse



 --
 Sent from: http://forum.openscad.org/

 _______________________________________________
 OpenSCAD mailing list
 Discuss@lists.openscad.org <mailto:Discuss@lists.openscad.org>
 http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

--
Don


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Short update: the ColorSCAD script now supports 3MF as well! It cheats a bit though, by using a c++ implementation to do the merging step (based on Lib3MF). As a result, some compilation is needed to get 3MF working, and it requires 2019.05 as well. It's still here: https://github.com/jschobben/colorscad - Jesse On 13-2-2020 17:05, Don Garrett wrote: > Very cool! I'll try and take a look at your script later tonight. > > On Wed, Feb 12, 2020 at 6:50 PM jschobben <openscad@js3.nl > <mailto:openscad@js3.nl>> wrote: > > Some time ago I made a script to help with exporting OpenSCAD > models as > colored AMF. Perhaps that can be a starting point for colored 3MF > export. > > Basically, the script analyses your model to figure out which > colors it > uses, and then makes OpenSCAD do a separate render for each color, > with only > the geometry in that color. Finally all outputs are combined into > one model, > with added color info. > > It uses the oystrich approach to deal with weird geometry issues, > so it's > probably best to avoid overlapping colors and such in your model... > > Yep, AMF is not quite the same as 3MF, but the general approach > should work > too hopefully :) > Maybe I can sneak in a proper lib3mf-based merge step, will have a > look > later this week. > > Incidentally, I made that script to produce an AMF for browser display > (using three.js). I have a hard time finding any regular tool that > will > display the colored AMF files properly, let alone any slicer... :( > > Script can be found here: https://github.com/jschobben/colorscad > > - Jesse > > > > -- > Sent from: http://forum.openscad.org/ > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org <mailto:Discuss@lists.openscad.org> > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > > > > -- > Don > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
T
Troberg
Thu, Feb 20, 2020 9:50 AM

nophead wrote

Also in preview you can have different coloured faces on the same volume,
which doesn't really fit in with most types of 3D printing.

True, but a warning message would be sufficient there.

Remember, everything isn't 3D-printing.

--
Sent from: http://forum.openscad.org/

nophead wrote > Also in preview you can have different coloured faces on the same volume, > which doesn't really fit in with most types of 3D printing. True, but a warning message would be sufficient there. Remember, everything isn't 3D-printing. -- Sent from: http://forum.openscad.org/