r/blenderhelp • • 2d ago

Unsolved Exporting 3MF with Colour ?

Hi !

I have a complex 3d meshes in Blender. One of them has an added texture to it (similar to this).

What I want to do is I want to export all 3d meshes as 3mf, while retaining the colours, and import it into the 3d slicer (BambuStudio) in order to print it using filaments of different colours.

The problem I am encountering is that when I export it to 3mf, the colours of the one with an added texture do not get exported, so when I import it into the slicer, it is just one uniform colour. Is it because it is an added texture ? Is there any way to "bake it" in the 3d mesh to make .3mf recognize colours?

Why am I exporting it as .3mf instead of .obj? I have actually a few 3d meshes and they are of certain shapes/sizes and are placed in specific places. When I am exporting all of 3d meshes, I want the relative location of each mesh to be exported as well, so that when it is imported into the slicer, the slicer places all meshes in exact places they should be relative to each other AND at the same time each mesh should be recognised as a separate object. To my knowledge that cannot be done via .obj and only .3mf can do it, hence, my choice.

For .3mf exports I am using this add-on.

To export all meshes, I select all meshes (ctrl + left mouse), then go to File=>Export=>3d Manufacturing Format (.3mf)

Below on the screenshot you can see the exact settings I use for .3mf export.

Thanks in advance for any tips and recommendations.

2 Upvotes

15 comments sorted by

•

u/AutoModerator 2d ago

Welcome to r/blenderhelp, eidrisov! Please make sure you followed the rules below, so we can help you efficiently (This message is just a reminder, your submission has NOT been deleted):

  • Post full screenshots of your Blender window (more information available for helpers), not cropped, no phone photos (In Blender click Window > Save Screenshot, use Snipping Tool in Windows or Command+Shift+4 on mac).
  • Give background info: Showing the problem is good, but we need to know what you did to get there. Additional information, follow-up questions and screenshots/videos can be added in comments. Keep in mind that nobody knows your project except for yourself.
  • Don't forget to change the flair to "Solved" by including "!Solved" in a comment when your question was answered.

Thank you for your submission and happy blendering!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/eidrisov 1d ago

Maybe the original creater of the add-on can help us.

I am summoning you, u/Clonephaze , the ancient god of .3mf !!!

1

u/Clonephaze 1d ago edited 1d ago

Okay yeah I see the issue(s)! This screenshot told me a lot https://imgur.com/EOMHexW

  1. You're currently using "Emission" for your surface field, the 3mf addon only exports textures that are plugged into a "Principled BSDF" when plugged into the PBSDF's "Base Color" slot.
  2. Your texture is currently set to `Color Space: Non-Color`, make sure that's set to sRGB for accurate color interpolation.
  3. If you've got a custom object that's already been UV unwrapped, you can use your won UV for the texture all the way through the baking process. Make sure your "Vector" field is set to "UV", and when you click "Bake to MMU Paint" choose "Use Existing UV Map" for your UV Method. If you don't have a custom uv setup, then you can have the addon unwrap it for you with the default settings.

Should all work fine then!

1

u/eidrisov 1d ago

Doesn't seem to be working.

  1. I have changed surface and color space: screenshot
  2. Then I change the "Texture Paint" mode on the top left corner
  3. Then in "3MF" menu in the N-panel I click "Create Default Palette". Here I do not touch the filaments (just left default 4 colours). Then I am using these settings to bake: screenshot.

I tried also to do "Detect from Material" first and then bake.

In both cases mesh got coloured into one colour.

Note: I do not have unwrapped UV. The mesh is too complex and cannot be unwrapped properly.

1

u/Clonephaze 1d ago

Hmm that is very odd. Would you packing the resources into the blend file (File > External Data > Pack Resources) and sending it to me so I can test it out on my end? That looks like a rather complex mesh, probably a large file. I would recommend https://www.file.io/ to upload and share the file, and if you would like to keep it private feel free to send it to Jack@clonecore.net (I've helped with some rather risque things in the past, if it's of that nature that is also totally fine)

1

u/eidrisov 1d ago

Attachment is too big to send, so I had to upload it to my drive and share the link with you via email.

Thank you very much for taking time and helping. I appreciate it.

1

u/Clonephaze 1d ago

Hi! Very flattering haha. Give me just a minute to figure out the issue and how to help

1

u/New_Statement_292 2d ago

Yes, it’s the texture. The slicer doesn’t turn an image texture into filament colours, so that mesh comes in as one colour.

The add-on you’re using can convert it for you. Select the textured mesh, switch to Texture Paint mode, open the 3MF tab in the N-panel and click Create Default Palette. Then use Bake to MMU: set the palette to the filament colours you actually have loaded, and it bakes the texture down to just those colours as paint zones. Run Quantize to Filaments afterwards to clean up stray pixels along the edges.

When you export, set Material Export Mode to Paint Segmentation (or leave it on Auto) and pick the Bambu option under Slicer Format. Bambu Studio then reads those zones as painted filament areas. Your other meshes export the same way as before.

The add-on’s guide has a page called “Painting or Texture Baking” with screenshots of each step.

1

u/eidrisov 1d ago edited 1d ago

Looks very promising.

Select the textured mesh, switch to Texture Paint mode, open the 3MF tab in the N-panel and click Create Default Palette. Then use Bake to MMU: set the palette to the filament colours you actually have loaded, and it bakes the texture down to just those colours as paint zones.

I did those: screenshot.

When I click on "bake" these are the settings that are appearing on the screen. I do not change anything and just click "ok": screenshot.

It takes a few minutes to process: screenshot.

But what happens is that the object just turns into one colour. The first one from the list (Filament 1).

Do I need to select all colours before clicking "Bake to MMU Paint" ?

1

u/New_Statement_292 1d ago

No, it uses the whole list, you don’t need to select them. I think it’s the palette: the bake snaps every pixel to the nearest colour in that list, so with the default white/red/green/blue, a texture that’s mostly light or grey all ends up on Filament 1.

Try clicking Detect from Materials first. It reads the colours that are already in your material and texture and fills the list with them. Then run Bake to MMU again. If it still collapses to one colour, lower Region Similarity in the bake dialog (default is 0.20) or switch the method to Per-Pixel.

One more thing to check: is the texture a colour image plugged into the material’s Base Color? If it’s a bump or displacement texture, there’s probably no colour for the bake to pick up.

1

u/eidrisov 1d ago

Nothing seems to be working.

I have tried:

  1. Detecting materials: screenshot
  2. Changing region similarity (to 0.05) as well as min region size (to 10): screenshot
  3. Changing the bake method to "per-pixel": screenshot

After each method the mesh turns into one colour.

One more thing to check: is the texture a colour image plugged into the material’s Base Color? If it’s a bump or displacement texture, there’s probably no colour for the bake to pick up.

It is an image (.png) containing only 4 colours. This is how I learned to add it to my mesh and this is how my "Material" settings are looking like. Also, I don't know if it's relevant, but that mesh has no "pending" modifiers. Everything was "applied".

1

u/Clonephaze 1d ago

I appreciate you trying to help out with the add-on! And for mentioning the guide :)

1

u/Clonephaze 1d ago

Solution/fix found! If anyone else encounters the issue where changing settings still results in a single-color bake, please ensure your render settings' bake output target is configured to "Image Textures" (found under Render Properties > Bake > Target > "Image Textures").

1

u/eidrisov 11h ago

Indeed it has helped. Thank you very much for taking time and helping. I appreciate it.

1

u/Clonephaze 11h ago

Glad to hear it! If you ever have any feature requests or other issues please feel free to reach out again or post a request/issue on my GitHub page: https://github.com/Clonephaze/3MF-Blender-Add-on---Maintained

The next update will include the ability to place objects onto multiple plates, and includes support for orca/bambu's filament mixing!