4
$\begingroup$

I have an object that's lit by an HDR and a sun lamp. I want that object to cast shadow by the light coming from sun lamp only. How to do that?

$\endgroup$
  • 1
    $\begingroup$ I think that if you are using an image to lighten the object, necessarily you'll get shadows too. You can dampen their strenght, soften the contrast between light and dark areas, make the shadows border smoother, but not avoid them completetly. What would the scene look like without the sun lamp in your opinion? Could you specify a little bit your question? $\endgroup$ – Carlo Dec 26 '15 at 14:28
3
$\begingroup$

Starting with a scene like this where one layer has a cube and a sphere are being lit by HDRI only.

The sphere has the shadows disabled in the cycles settings

enter image description here

On a separate layer containing the plane, a copy of the sphere with the shadows enabled and a sun light.

Create two render layers, one that uses the environment, and a second one that does not, and has the shadow pass enabled:

enter image description here

enter image description here

Combine the shadows on the compositor. enter image description here

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.