I've been trying to render only shadows in Cycles, is that possible? If so, how?
For example, when I render a character, I want Cycles to render only the shadow of the character.
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.
Sign up to join this communityI've been trying to render only shadows in Cycles, is that possible? If so, how?
For example, when I render a character, I want Cycles to render only the shadow of the character.
Not sure if this is where you want to go.... but:
.blend: https://www.dropbox.com/s/wzf8haoxrs6yfwv/special_case.blend?dl=0
produces:
Here's why I called the file "special_case": the ground plane extends beyond the edge of the camera, and produces a shadow png. If the ground plane edges are inside the camera view, you will see a thin black line at the mesh edge. I am sure there is a way to eliminate it, but darned if I can figure out. Also, the masking box is a bit of a cheat.... but works for a still image. See .blend file for results. Node tree set-up here:
A shadow catcher was added in blender 2.79.
There is no reason to use compositor tricks any longer to generate a shadow. You simply add an object (In my case a simple plane) and check the Shadow Catcher box.
Go to the Object tab of the Properties Editor. In 2.79 the Shadow Catcher option is in the Cycles Settings section. In 2.8 the Shadow Catcher option is in the Visibility section.
Here is what my rendered scene looks like so far.
Now to get just the shadow you need to disable the Camera visibility on all the other objects. This setting is in nearly the same place as the shadow catcher. Go to Object tab of the Properties Editor. In 2.79 it's under the Cycles Settings section. In 2.8 it is in the Ray Visibility subsection of the Visibility section.