3
$\begingroup$

I am making an animation with a green background. When a lamp shines on my mesh, the background somehow makes the lamp shine on my mesh green as if the lamp was shining on it through green glass. How do I make this not happen? My mesh is opaque, has a diffuse BSDF, and is white. Thanks in advance.

$\endgroup$

3 Answers 3

7
$\begingroup$

When you are using any color (or image) as background in the world settings you have to imagine a shpere that completely surrounds the scene and that is emitting colored light from every point.

enter image description here

There are a few alternatives.

  • One is to have two different shaders for the background, and control them using a light path node, so that difuse rays are a neutral color and the rest are green.

    enter image description here

  • You can use a neutral color (or no background at all) for the background and enable transparency (film transparent), and then add the background color in the compositor using alpha over.

    enter image description here

I hope you are not putting green behind the object with the idea of using a chroma key later on to take away the background. If that is the case then just render with a transparent background and save in a format that can handle an alpha channel (EXR or TIFF).

$\endgroup$
1
  • $\begingroup$ How do you save an animation render in a format that has a fully transparent background? Say if your video editing software has not choice of removing alpha channels..... I thought of using a green background then chroma key, as my video software handles this, but not alpha $\endgroup$
    – urema
    Commented Feb 28, 2021 at 15:03
3
$\begingroup$

In Blender 2.90.1 you can turn off the Diffuse option under Ray Visibility to make the background color not affect the scene's objects.

Note that this option is only available for the Cycles render engine.

enter image description here

$\endgroup$
0
$\begingroup$

To answer urema's final question, to get an output with an alpha channel that works well, set your output type to be PNG.

Your output filename should be a directory. When you choose PNG, there will be 3 colors available; choose RGBA, then render.

Your chosen Directory will be full of png images, one for each frame. Programs like Hitfilm can import PNG Sequences and your workflow should now be the same as if you were working with an MP4 (ex you can put the png sequence into a Composite).

$\endgroup$

You must log in to answer this question.

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