3
$\begingroup$

I have the following texture:

enter image description here

I am trying to make a a fading transparency on the part that is black, i could apply this in 3ds max with the "Alpha as gray" option, but i can't seem to do that in blender.

enter image description here

In theory, if i get the material right, it should be basically transaprent in the middle, and blue on the top and bottom, if that makes any sense.

I've been trying playing around with several nodes, with mix and color clamps, but i can't seem to get it right, any suggestions?

$\endgroup$
2
  • $\begingroup$ Are you using Eevee? There are a couple of switches to throw to tell Eevee to use transparency. $\endgroup$
    – Ron Jensen
    Sep 6, 2020 at 0:16
  • $\begingroup$ I tried both Eevee and cycles and i seem to get the same result. I don't know if this can be applied for both $\endgroup$ Sep 6, 2020 at 0:32

2 Answers 2

5
$\begingroup$

enter image description here

Here is the way I would do what I think you're asking. I plugged to color data into a Color Ramp and plugged that into the Alpha channel. There is also a SeparateHSV node that might work well between the Color output and the Color Ramp. For Eevee, you need to go into Settings and set the Blend Mode. In the picture it is set to Alpha Blend.

enter image description here Another way of doing it is to mix an emission shader and a transparent shader, assuming this is meant as a light. For this screen shot I added another white cube behind the blue object and turned on Eevee's 'bloom'

$\endgroup$
1
  • $\begingroup$ Yup! It is intended to be a light, so the light effect makes it even better, thank you so much! this is exactly waht i wanted! $\endgroup$ Sep 6, 2020 at 1:06
3
$\begingroup$

Does this do what you want?

Shader Graph

  • The image color is desaturated with a Hue/Saturation/Value node with Saturation set to 0. (You could also try an RGB to BW node.) The grayscale output is fed into the Alpha socket.
  • The ColorRamp is optional, you don't need it. You can use it to adjust how rapidly the gradient falls off by adding stops.
  • As always when doing transparency, make sure the material's blend mode is set to "Alpha Blend" or "Alpha Hashed".
$\endgroup$
1
  • $\begingroup$ Yes this is what i wanted! Both answers are valid, i wish i could set both with the green tick because they are both great! thank you so much! $\endgroup$ Sep 6, 2020 at 1:06

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.