Graphics Programs Reference
In-Depth Information
light the spheroid and the plane, but we want the two objects rendered on a uniform
blue background, then how to do it? This is how we do it:
1. One way is to go in the
Render
window and, under the
Film
tab, check
the
Transparent
option. This will show our spheroid and plane rendered
both in the 3D viewport as well as in the effective final rendered image on
a transparent background, that is, with a pre-multiplied alpha channel:
2. It's enough, then, to compose the rendered objects with a blue back-
ground image, both in an external image editing software (such as The
Gimp, to stay inside F/OSS) or directly in the Blender compositor.
But the simplest way to render the two objects on a uniform blue background is to
use a
Light Path
node:
1. If it's the case, uncheck the
Transparent
box in the
Render
window to
restore the sky in the preview and in the render.
2. Left-click the
World Output
node in the
Node Editor
window, and press
G
and move it to the right.
3. Add a
Mix Shader
node (press
Shift
+
A
and select
Shader
|
Mix Shader
)
and move it to the link connecting the
Background
node to the
World
Output
node, to paste it automatically between the two nodes. Connect
it to the
Surface
input socket of the
World Output
node.
4. Select the
Background
node in the
Node Editor
window. Press
Shift
+
D
to duplicate and move it down.
5. Connect its output to the second input socket of the
Mix Shader
node.
Click on its
Color
box to change the color to
R 0.023
,
G 0.083
, and
B
0.179
.