Page 1 of 1

Viewport render update when changing Exposure

Posted: Sat Jul 04, 2020 5:42 am
by chafouin
Hi there,

I am trying to understand why in Blender, the viewport render gets refreshed when changing the Color Management Exposure or curves.

I thought it was "just the way it works" as it always happened in my previous scenes, until I noticed that it wasn't doing it in a new scene. Is there a special thing in the scene that could do that? This would be really helpful for my add-on if it wasn't refreshing the viewport.

Thanks,
fabien

Re: Viewport render update when changing Exposure

Posted: Sat Jul 04, 2020 4:45 pm
by chafouin
It looks like it works fine when using the GPU.

EDIT: But it's not the only reason, I have old scenes that would refresh the render for all changes even GPU. Copying content to a new scene seems to work. I wonder what saved setting might cause that.

Re: Viewport render update when changing Exposure

Posted: Sun Jul 05, 2020 11:37 am
by B.Y.O.B.
You could check if it also happens with Cycles.
The correct behaviour should be to not refresh the viewport render (i.e. do a LuxCore update).

You can also look into the console, BlendLuxCore will print the cause of the refresh there.

Re: Viewport render update when changing Exposure

Posted: Sun Jul 05, 2020 7:08 pm
by chafouin
It only happens with LuxCore, changing the exposure thinks the World Light has changed:

Code: Select all

[Exporter] Update because of: OBJECT | REQUIRES_SCENE_EDIT | WORLD
[SDL][444.500] Light definition: 2663798522552
[SDL][444.500] Light re-definition: __WORLD_BACKGROUND_LIGHT__
But it doesn't do it in new scenes. Still investigating...

Re: Viewport render update when changing Exposure

Posted: Sun Jul 05, 2020 7:54 pm
by B.Y.O.B.
The world datablock is flagged as updated all the time by the Blender depsgraph. No idea what's up with that.