appleseedhq / appleseed

A modern open source rendering engine for animation and visual effects
https://appleseedhq.net/
MIT License
2.19k stars 329 forks source link

Direct lighting still visible in reflections even when it's disabled #2861

Open usakhelo opened 4 years ago

usakhelo commented 4 years ago

Hi, This issue is visible when non-physical lights are used. There are spot lights in this scene but direct lighting is disabled. Nonetheless shadows and lighting is visible in reflection: image

I think it comes from this line in on_scatter function in ptlightingengine.cpp

if (m_params.m_enable_dl || vertex.m_path_length > 1)
{
oktomus commented 4 years ago

Visible in reflection and direct lighting are two different things right ?

Mango-3 commented 4 years ago

Yes, I think the definition of direct lighting is lighting provided from a source without reflection from other surfaces.

If you set the object visibility flags for shadow, specular and glossy to off for the yellow pot you should have no reflected image visible.