4
$\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$
12
  • 1
    $\begingroup$ As usual this question shows no research effort. $\endgroup$
    – brockmann
    Sep 17 '19 at 15:31
  • 1
    $\begingroup$ Does the base image have transparency? $\endgroup$
    – lemon
    Sep 17 '19 at 15:34
  • 1
    $\begingroup$ @brockmann i want to remove the black background to make it transparent $\endgroup$
    – atek
    Sep 17 '19 at 15:34
  • 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
    Sep 17 '19 at 15:45
  • 1
    $\begingroup$ Did you plug it also in the diffuse shader? $\endgroup$
    – FFeller
    Sep 17 '19 at 16:13
6
$\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$
1
  • 1
    $\begingroup$ Thanks for the answer $\endgroup$
    – atek
    Sep 17 '19 at 17:16
1
$\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$

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.