I have image which as black background and i want to remove the black background and use the image as transparent only color smoke.
-
1$\begingroup$ As usual this question shows no research effort. $\endgroup$– brockmannSep 17, 2019 at 15:31
-
1$\begingroup$ Does the base image have transparency? $\endgroup$– lemonSep 17, 2019 at 15:34
-
1$\begingroup$ @brockmann i want to remove the black background to make it transparent $\endgroup$– atekSep 17, 2019 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$– FFellerSep 17, 2019 at 15:45
-
1$\begingroup$ Did you plug it also in the diffuse shader? $\endgroup$– FFellerSep 17, 2019 at 16:13
2 Answers
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.
-
-
$\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$– FFellerAug 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$ Aug 30, 2022 at 16:25
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.