9
$\begingroup$

I have image which as black background and i want to remove the black background and use the image as transparent only color smoke.

enter image description here

Image

$\endgroup$
11
  • 1
    $\begingroup$ Does the base image have transparency? $\endgroup$
    – lemon
    Commented Sep 17, 2019 at 15:34
  • 1
    $\begingroup$ @brockmann i want to remove the black background to make it transparent $\endgroup$
    – atek
    Commented Sep 17, 2019 at 15:34
  • $\begingroup$ @lemon i have attach the image above in questions its totally black without transparency . I want to remove it like photoshop we use screen option to remove black background. $\endgroup$
    – atek
    Commented Sep 17, 2019 at 15:37
  • 1
    $\begingroup$ Just match the Image Texture's color shocket to the Mix Shader's Fac shocket instead of the Alpha. You can put a ColorRamp between them if you want to adjust it but it's not necessary. $\endgroup$
    – FFeller
    Commented Sep 17, 2019 at 15:45
  • 1
    $\begingroup$ Did you plug it also in the diffuse shader? $\endgroup$
    – FFeller
    Commented Sep 17, 2019 at 16:13

2 Answers 2

8
$\begingroup$

You don't necessarily use the Mix Shader with the alpha channel of the image. You can also use the color channel. So on the darker areas the first shader (Transparent) will dominate and on the lighter parts the second shader (Diffuse) will get a higher value. You can plug a ColorRamp before the Fac shocket to finetune the silhouette. Of course you can use images with white background, just swap the transparent and diffuse shaders. enter image description here

$\endgroup$
3
  • $\begingroup$ it doesn't work. $\endgroup$
    – modernator
    Commented Aug 24, 2022 at 11:54
  • $\begingroup$ If you use EEVEE you have to put the Blend Mode to Alpha Clip. docs.blender.org/manual/en/latest/render/eevee/materials/… $\endgroup$
    – FFeller
    Commented Aug 25, 2022 at 18:34
  • $\begingroup$ I was using Cycles. I thought it wasn't working because in viewport shading - rendered was not working, but the actual render by pressing F12 worked. $\endgroup$
    – modernator
    Commented Aug 30, 2022 at 16:25
3
$\begingroup$

enter image description here

For anyone that comes back, here's a simpler node setup. Just run the image texture's color output through a principled shader's alpha attribute. That's the quick and dirty way, but an added color ramp in between gets a much nicer result. With a bit of tweaking, this should allow you to make most images transparent.

$\endgroup$
1
  • $\begingroup$ yeah this works $\endgroup$
    – modernator
    Commented Dec 24, 2023 at 21:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .