Can Blender render pngs with the background transparent?

  • I would like to render an animation as a series of .png images with transparent backgrounds for use in a video. Is this possible?

  • satishgoda

    satishgoda Correct answer

    7 years ago

    Yes this is possible.

    To save rendered images with transparent background (PNG format for instance), the settings are as follows for "Cycles" and "Blender Render" rendering engines.

    Cycles

    Properties Editor > Render Context > Output Panel

    Choose RGBA so that the alpha from the renderer is saved in the png

    Properties Editor > Render Context > Film Panel

    Check Film>Transparent so that the World background is transparent.

    Saving PNG with alpha using Cycles

    enter image description here

    Blender Render

    Properties Editor > Render Context > Output Panel

    Choose RGBA so that the alpha from the renderer is saved in the png

    Properties Editor > Render Context > Shading Panel

    Choose Transparent Alpha type.

    Saving PNG with alpha using Blender Internal

    EEVEE (Blender 2.8)

    Properties Editor > Render Context > Film Panel

    Choose Transparent Alpha type.

    Saving PNG with alpha using EEVEE

    This ***is*** the answer.

    It's not working for me (Blender render) and I chose the same options. When I render, all I see is white (the material color).

    One year after, and yet again it helped me.

    Why does blender still spend render time with the tiles on the transparent parts?

    @Anson What I believe is that the camera is shooting rays into the scene and since there is no returning ray , there must be a timeout wait before the render decides to move on to the next square.

    The funny part is that this answer, while covering how, fails only on suggesting PNG as a format. PNG is incapable of preserving alpha from a render because it uses an unassociated alpha format. It is likely precisely because of this that the PNG format has almost exactly zero uptake in visual effects and imaging circles.

    @troy_s You sound like you know what you're talking about, and I'm curious to hear it. Why don't you edit the answer to include some of your insight?

    I can't because the answer is a bit of a trap; PNGs can _never_ render transparency correctly from a technical vantage. Best hope is to educate the imagers around these parts so that they can become aware of the differences in alpha format, and the impact on their work.

    @RegularJoe As you can see from my answer, the Film panel is Cycles renderer specific. It does not show up under Blender renderer.

    @Satishgoda, this is a VERY USEFUL information and thank you.

    @Hikariztw, in Blender 2.8, the Film and Output panels are in two different locations. The Output panel has been moved from the Render context to the Output Context.

    @mattthew Yeah, I do find out that thing after I press the submit button. Going to add it.

    Thanks for updating also to Blender 2.8 (Eeevee) - very helpful!

    I'm using Eevee with Blender 2.8. I clicked the "Transparent" checkbox in "Film", and I also tried changing the "Alpha" setting of the material, but it's still not transparent.

    Make sure there is no geometry that is obstructing the background.

  • In Blender Internal, If you want the background to be transparent, you can change the output type to RGBA and in the Scene tab under Layer, untick Sky.

    Unticking "Sky" was what I needed to make it work (I already had RGBA selected). In Blender 2.79 I found this setting on the "Render Layers" context.

  • In the render settings go under Shading and set alpha to transparent. Then under output click RGBA. Unchecking Sky in the scene tab will also work but I'm not sure if that method will have an impact on any other parts of the render or if it's just a redundancy.

    Where do you see that? I don't see any Shading section, but I do see Sampling, AO, Bloom, DoF, Subsurface Scattering, SSR, Motion Blur, Volumetrics, Hair, Shadows, Indirect Lighting, Film, Simplify, Freestyle, and Color Management.

License under CC-BY-SA with attribution


Content dated before 6/26/2020 9:53 AM

Tags used