5
$\begingroup$

I want to create paperhanging for my interior scene, and I want the Pattern on my Wallpaper to be Black and everything else to be its normal color, I tried but everything I can make is exactly the opposite what I want.

enter image description here

enter image description here

enter image description here

enter image description here

$\endgroup$
  • $\begingroup$ could you upload the blendfile $\endgroup$ – gladys Aug 5 '15 at 17:34
  • 1
    $\begingroup$ maybe you should set the top texture to non-color, because you are using it as a mask. $\endgroup$ – gladys Aug 5 '15 at 17:36
  • $\begingroup$ I tried it doesn't really helps $\endgroup$ – Igor Tatarnikov Aug 5 '15 at 17:50
  • 1
    $\begingroup$ instead of the mix shader you need the color --> mix RGB $\endgroup$ – gladys Aug 5 '15 at 17:57
6
$\begingroup$

You need to create a mask (a black and white image) from the range of values you want to color in your image texture, explained in this answer.

In the nodes below I used a ColorRamp node to select the range of values (the highlights). You could set the interpolation of the color ramp node to Consent, but I left it at the default of Linear so that there is a smother transition between the original image and the new color.
The output from the color ramp is the mask. Plug that mask in to the Fac of the Mix node, the bottom socket is the color that all the highlights will be.

material nodes

I did not have your exact texture, so the stops in your color ramp node may have to be in different spots to select the correct values.


Here is the result, using the nodes above.
final result

|improve this answer|||||
$\endgroup$
  • $\begingroup$ Ok, that works pretty decent, though it also affects the other parts slightly. But what would I do if I would like the glossy shader to be on the place of the Black Diffuse. $\endgroup$ – Igor Tatarnikov Aug 5 '15 at 18:06
  • $\begingroup$ Nevermind already figured it out myself $\endgroup$ – Igor Tatarnikov Aug 5 '15 at 18:11
7
$\begingroup$

Set up the nodes as pictured below. Add a RGB to BW node to make your texture work as a mask for two Diffuse shaders. Set up the colors for Diffuse shaders. enter image description here

Flip the input sockets of the Mix Shader for a reverse result. enter image description here

|improve this answer|||||
$\endgroup$
1
$\begingroup$

Try inverting the image texture before hooking it up to diffuse instead of using it as a factor.

|improve this answer|||||
$\endgroup$
  • $\begingroup$ If this doesn't work I sincerely apologize as I'm away from home and posting this from my recent memory on my phone. $\endgroup$ – Dr. Who Aug 5 '15 at 17:34
1
$\begingroup$

To replays the Diffuse Black I plugged my texture through ColorRamp into the Factor of the Mix Shader with Diffuse Node and Glossy Node, I made the Glossy Orange so you could see. Works Great

enter image description here

enter image description here

Thanks a lot to David, changing the ColorRamp to Constant really helped

|improve this answer|||||
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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