10
$\begingroup$

I'm using a sky texture for environmental lightning. It gets rendered as background when I do that. Can I prevent it from rendering, but still use it for environmental lightning?

$\endgroup$
6
$\begingroup$

Blender Internal:

Method 1:
You could disable Sky in Properties > Render Layers > Layer:

enter image description here

With Sky enabled:

enter image description here

With Sky disabled:

enter image description here

Method 2:
Another way is to set the Alpha to Transparent in Render settings > Shading:

enter image description here

This will give the same result as disabling Sky in Render layers > Layers.

Cycles:

For cycles you could set the Film to Transparent in Render settings > Film:

enter image description here

With Transparent disabled:

enter image description here

With Transparent enabled:

enter image description here

$\endgroup$
4
$\begingroup$

Cycles

In Cycles can do that by using the Light Path node set to Is Camera Ray (You have to invert it otherwise it renders without affecting the lighting of the scene. The inverse of what you want.):

Blender Internal

In Blender internal, you have to set the alpha to the sky, then you can put anything you want into the background. To render the sky as alpha:

  1. Under the Shading tab of the Render panel, set alpha to Transparent.
  2. Under the Output tab of the Render panel, set Output to PNG with RGBA
  3. Render.

In the compositor, use the Mix node to add a background color/image: .

Before:

After:

enter image description here

$\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.