Transparent texture rendered as black

15,974

Solution 1

If you need a transparent background, in Render tab you need to change:

  • Shading -> Alpha -> Transparent
  • Output -> RGBA

background transparency

If you need a transparent texture, you must activate transparency in the material and lower Alpha value (Alpha=0 is fully transparent).

For example:

material transparency

Solution 2

In the material tab go to "option" and uncheck "traceable" after that it should work and the transparency should be there .

Share:
15,974

Related videos on Youtube

Derek 朕會功夫
Author by

Derek 朕會功夫

Uh oh, sounds like somebody’s got a case of the Mondays! Are you using enough jQuery? http://i.stack.imgur.com/ssRUr.gif "Everybody stand back, I know regular expressions!" ─ xkcd 208

Updated on September 18, 2022

Comments

  • Derek 朕會功夫
    Derek 朕會功夫 over 1 year

    I'm trying to render a scene with transparent png. The scene is actually imported from a .obj file (with another .mtl file), which should technically applies the transparency for me.

    enter image description here

    ^ It does shows transparency in the viewport.

    enter image description here

    ^However, in the rendered result it shows a black background instead of transparent background.


    I have no idea why, and the alpha value is already at 1.000. Any idea?

    enter image description here

    I'm using Blender 2.67, Blender Render. (not Cycles)

  • Derek 朕會功夫
    Derek 朕會功夫 over 10 years
    So how does this help?
  • user1343503
    user1343503 over 10 years
    You're welcome. If this method is suitable for you, please mark the answer as correct.
  • Derek 朕會功夫
    Derek 朕會功夫 over 10 years
    Sure.­­­­­­­­­­­­­­­­­­­­
  • LosKartoflos
    LosKartoflos over 10 years
    I just wanted to say, what this "Alpha" Slider is for. And this doesn't change anything at your problem. Paolo already gave the correct anwswer. I was just adding some extra information.
  • Derek 朕會功夫
    Derek 朕會功夫 about 10 years
    So... I tested it and I set the Alpha to transparent, but it didn't work. The texture remains black.
  • user1343503
    user1343503 about 10 years
    Have you removed the background? Is the output set to RGBA?
  • Derek 朕會功夫
    Derek 朕會功夫 about 10 years
    Yes the output is set to RGBA and also I have set the alpha to transparent. I'm not sure about what do you mean by removed the background but those areas in the texture are transparent.
  • user1343503
    user1343503 about 10 years
    Background like a big plane under the scene (you can browse the objects using the scene tree, and perhaps you can select just the needed objects and move them in a new scene).
  • Derek 朕會功夫
    Derek 朕會功夫 about 10 years
    Oh I'm actually not trying to remove the background of the scene. I'm trying to make the transparent areas in my textures to show up as transparent in the render. Right now it is rendered with black replaced the transparent area.
  • user1343503
    user1343503 about 10 years
    Sorry, I'd misunderstand. If you need a transparent texture, you must activate transparency in the material and lower Alpha value (Alpha=0 is fully transparent). I've edited my answer.
  • Derek 朕會功夫
    Derek 朕會功夫 about 10 years
    Thanks for the response. I did enabled transparent and set Alpha to 0 but it's still showing as black in transparent area in the texture. Here's a rendered image with another scene. The black background for the torches should be transparent, as well as the glass windows in the back. (somehow they show up as lightblue for some reason.)
  • user1343503
    user1343503 about 10 years
    A very odd render: each candle seems a composition of boxes textured with an imagemap without alpha channel. What kind of texture have you used? I suggest you this tutorial and Blender manual (here, here and here)
  • user1343503
    user1343503 about 10 years
    @Derek朕會功夫 This tutorial too could be useful
  • Derek 朕會功夫
    Derek 朕會功夫 about 10 years
    The texture is a PNG with transparent background. If it is possible you can view the files here and help me find where I did wrong. Thanks!
  • user1343503
    user1343503 about 10 years
    Alpha wasn't enabled for the torch texture, but this kind of texture map is difficult to apply to your object (it's too complex), in my opinion you need to use UV Mapping. I suggest you to ask to blender.stackexchange.com
  • Admin
    Admin about 6 years
    @PaoloGibellini I know this is random and your answered this 4 years ago but I just had to say thank you, you saved my ass with this answer
  • user1343503
    user1343503 about 6 years
    @Jamiex304 StackExchange is always useful ;-)