0
$\begingroup$

So I have a nice dragon I'm working on, recently I thought it would be cool if I added a customization option to change the colors according to the texture using shaders. I did it with the help of ColorRamp in Constant mode which is connected to a specific channel of the SepareteColor node (later I also used a driver that connects to color for this, but it is not related at the moment), so that I can take a certain range of colors and get it in black and white (that is, the selected areas are white and the rest are black ), then gives it to another ColorRamp in linear mode to change the color. A picture of this: enter image description here However, because there is transition between colors in the texture, sometimes it gets the wrong colors in the wrong places, even though the color I need isn't there, like here: enter image description here This is where it's supposed to be, not at the connection points between parts: enter image description here Does anyone have an idea how to solve this?

Edit: A little explanation about the nodes:

First, I have this basic setup of the texture: enter image description here

Then, in the "DragonColoring" group, I have those constant ColorRamps that gets the right position for the white slope by driver of the color and the right color channel from the Separate Color node, and the position of the black key by the driver of the white + 0.01 (it's changes between the ColorRamps): enter image description here

Then, in the same group I have those color ramps that set the color to change the colors of the white areas I've got already from the previous ones, and put it on the output, and then connecting it to the Principled BSDF node: enter image description here enter image description here

$\endgroup$
6
  • $\begingroup$ If I click on your nodes screencap, I can't see the details and try to magnify only makes it blurry. You may want to post a reduced version of your file in blend-exchange and copy/paste the HTML into your question. $\endgroup$
    – james_t
    Commented Apr 9, 2023 at 18:45
  • $\begingroup$ My file weighs too much for that... $\endgroup$ Commented Apr 17, 2023 at 14:19
  • $\begingroup$ then an more detail picture/screen_cap of the nodes that I cannot see? I don't see you getting any comments/help/solutions and want to just give you a tip on getting more, faster solutions. it's hard to see that nodes you're using for alpha. Is the mesh all one material, or so other materials get assigned to other vertices and/or their UV. $\endgroup$
    – james_t
    Commented Apr 17, 2023 at 16:40
  • 1
    $\begingroup$ @james_t All right, thank you for helping me! i updated the question and added a clear explanation about the Nodes $\endgroup$ Commented Apr 19, 2023 at 3:47
  • $\begingroup$ Good update. First question: if you look at the UVMap for your object in the "UV Editing", and the actual "MugWing Base Color" in "Texture Paint" workspace, is that all lining up properly? You might check this by temporarily directly connecting "MugWing Base Color" image texture node to the Principled BSDF color input. If that shows a problem, you'll need to either UV Unwrap again or Texture paint the image used by this shader node. $\endgroup$
    – james_t
    Commented Apr 19, 2023 at 15:36

0

You must log in to answer this question.

Browse other questions tagged .