4

I have a 3d box with the predetermined color and it looks like this: enter image description here

When I change the color, for example, to red, know it looks like this: enter image description here

So as seen, now all the faces have the same color intensity and it is not possible to distinguish the edges. Is it possible to look as in the first image with different color?

This is how I do it: enter image description here

2
  • Are you selecting each face and individually changing color? How is the box constructed? A 3D object or merely 3 aligned shapes?
    – Scott
    Commented Dec 17, 2019 at 21:11
  • It's just a 3D object and I'm trying to select the whole object and change the color, not face by face
    – al2
    Commented Dec 17, 2019 at 21:16

2 Answers 2

7

Inkscape is a 2D tool, and it is not able to manage 3D objects. The Box Tool simulates a 3D box by creating 6 plain faces with the expected proportions:

Box tool

Usually only 3 faces are visible, but the box is like a group of paths, and if we ungroup it (Ctrl+Shift+G), we can see all the faces, each with a different shade of blue (please note that after ungrouping a box you can no more re-group it and apply the Box Tool):

Box faces ungrouped

The Box Tool doesn't provide a way to change globally the colors maintaining different shades, and if you apply a color on the box (remember, it's a group of paths), it fills all the 6 faces, like in your example.

The way provided to accomplish to your task is described here:

  • Enter in the group using Ctrl+Enter
  • Fill separately the faces (to maintain the shades at the same proportions you can use the color wheel or change only the hue, see here)

Color changed on each face

If in Inkscape preferences for 3D Box the Last used style option is selected, the next box will be drawn with the last fill and stroke used:

The style have been maintained

4

The 3Dness of your shape is not essential here. You have three separate objects, maybe grouped, and you want to keep their lightnesses and color saturations, but change the color hue.

Extension Color > HSL Adjust is for this job. You give new hue. You can also adjust relative lightness and relative saturation (=plusminus percentages)

enter image description here

You probably must adjust all sliders for best appearance because RGB color system isn't designed to be subjectively linear like CIELAB or its polar version HCL. You can see that with same saturation different hues look differently "colorful". In RGB the goal has been streamlined computing without too heavy math. Inkscape has only RGB.

Another possibility is to make the faces without color, let them have only different greyshades. Make a duplicate of the shape (=Ctrl+D). It settles automatically on the top. Combine the faces of the duplicate with Path > Union. Let it have blending mode "Overlay". You find it in the Objects panel. Give the wanted color to the top object. To change the color you recolor only the top object. It can be made by copying a good color from elsewhere with the color picker. If you use extension HSL Adjust, new color must be typed as number.

Here's an example with blending mode Overlay:

enter image description here

top left: A three part shape

top right: the union of the parts, colored to blue

bottom left: union is placed on the original version, blending mode = Overlay

bottom right: parts moved a little apart

It works also from the shaded parts to solid color. Here the colored union is in the bottom and the grey parts have blending mode luminosity:

enter image description here

Actually the 3 part shape can have also other color than grey. Only the luminosity is taken into the account.

BTW. Blending modes create color mixes between the topmost object and what's below it The all have own mixing formula. Modes Multiply, Hard light and Color can be as useful. One must do plenty of tests to learn how they work. Their math is presented in the documentation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.