From 06420c5fe8fda54c543f26f9d95d2c6fcf5161cd Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Tue, 20 Feb 2018 12:55:02 -0300 Subject: Refactor depsgraph/render logic to serve evaluated depsgraph to engines User notes ---------- Compositing, rendering of multi-layers in Eevee should be fully working now. Development notes ----------------- Up until now we were still using the same depsgraph for rendering and viewport evaluation. And we had to go out of our ways to be sure the depsgraphs were updated. Now we iterate over the (to be rendered) view layers and create a depsgraph to each one, fully evaluated and call the render engines (Cycles, Eevee, ...) with this viewlayer/depsgraph/evaluation context. At this time we are not handling data persistency, Depsgraph is created from scratch prior to rendering each frame. So I got rid of most of the partial update calls we had during the render pipeline. Cycles: Brecht Van Lommel did a patch to tackle some of the required Cycles changes but this commit mark these changes as TODOs. Basically Cycles needs to render one layer at a time. Reviewers: sergey, brecht Differential Revision: https://developer.blender.org/D3073 --- intern/cycles/blender/blender_sync.h | 1 + 1 file changed, 1 insertion(+) (limited to 'intern/cycles/blender/blender_sync.h') diff --git a/intern/cycles/blender/blender_sync.h b/intern/cycles/blender/blender_sync.h index c4dd17714be..ce9155ee7ef 100644 --- a/intern/cycles/blender/blender_sync.h +++ b/intern/cycles/blender/blender_sync.h @@ -54,6 +54,7 @@ public: BL::BlendData& b_data, BL::Depsgraph& b_graph, BL::Scene& b_scene, + BL::ViewLayer& b_view_layer, Scene *scene, bool preview, Progress &progress); -- cgit v1.2.3