Boolean assign material
-
Hello everybody!
I am aiming to build a setup where a boolean operation cuts through a series of clones with different colors.
I am trying to assign a different color material to each clone by using color user data. However the face of the object that cuts is ignored. It would be great to color each clone and it’s connected boolean face. Hopefully this can be done within one shader whilst staying parametric.
Would be amazing to get some help!
Thanks,
Rein
https://www.dropbox.com/s/c9xpveqduu06k7l/BooleanCloner.png?dl=0
-
Hi Rein,
Thanks for posting this in the new forum as well. I wish I had a project file, not an image.
This is not a simple task, as the new face introduced to the cubes is from the Sphere, which is a single-color sphere. So we need to prived the color differently.
Anyway, here are two files, the same setup but slight changes in each, to see if it works.
https://www.dropbox.com/s/ycvkfdp0ge76dsb/CV4_2023_drs_23_MGcv_01-02.zip?dl=0The Boole operation can hit some specific situations when it disappears; please test this before going into production. If so, often, a microscopic position change will fix this.
Perhaps a flat projection of a color layout and a Shader Effector/Field will also help if you have a different setup.
All the best!
-
This is perfect! Thanks so much.
It took me a few minutes to figure out how to change the colours since I haven't started using the new material interface. Very nice, thanks for teaching me something new!
Good chance we will be able to use this in production. -
Thanks a lot for the feedback, Rein.
Yes, it is a bit tricky, but I'm glad you got it working for your project.
My best wishes for the production!