Blender Git Loki

Git Commits -> Revision 4cf7fc3

Revision 4cf7fc3 by Lukas Stockner (master)
May 3, 2017, 14:44 (GMT)
Render API/Cycles: Identify Render Passes by their name instead of a type flag

Previously, every RenderPass would have a bitfield that specified its type. That limits the number of passes to 32, which was reached a while ago.
However, most of the code already supported arbitrary RenderPasses since they were also used to store Multilayer EXR images.
Therefore, this commit completely removes the passflag from RenderPass and changes all code to use the unique pass name for identification.
Since Blender Internal relies on hardcoded passes and to preserve compatibility, 32 pass names are reserved for the old hardcoded passes.

To support these arbitrary passes, the Render Result compositor node now adds dynamic sockets. For compatibility, the old hardcoded sockets are always stored and just hidden when the corresponding pass isn't available.

To use these changes, the Render Engine API now includes a function that allows render engines to add arbitrary passes to the render result. To be able to add options for these passes, addons can now add their own properties to SceneRenderLayers.
To keep the compositor input node updated, render engine plugins have to implement a callback that registers all the passes that will be generated.

From a user perspective, nothing should change with this commit.

Differential Revision: https://developer.blender.org/D2443

Differential Revision: https://developer.blender.org/D2444

Commit Details:

Full Hash: 4cf7fc3b3a4d032f0c0db632a46d40806e906cf1
Parent Commit: 6bf4115
Lines Changed: +1434, -1682

50 Modified Paths:

/intern/cycles/blender/addon/engine.py (+33, -0) (Diff)
/intern/cycles/blender/addon/properties.py (+35, -0) (Diff)
/intern/cycles/blender/addon/ui.py (+9, -2) (Diff)
/intern/cycles/blender/addon/__init__.py (+3, -0) (Diff)
/intern/cycles/blender/blender_python.cpp (+8, -0) (Diff)
/intern/cycles/blender/blender_session.cpp (+14, -103) (Diff)
/intern/cycles/blender/blender_sync.cpp (+88, -0) (Diff)
/intern/cycles/blender/blender_sync.h (+4, -0) (Diff)
/source/blender/blenkernel/BKE_blender_version.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_node.h (+2, -1) (Diff)
/source/blender/blenkernel/intern/image.c (+5, -7) (Diff)
/source/blender/blenkernel/intern/scene.c (+5, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+6, -1) (Diff)
/source/blender/blenloader/intern/versioning_270.c (+26, -2) (Diff)
/source/blender/blenloader/intern/writefile.c (+4, -1) (Diff)
/source/blender/compositor/CMakeLists.txt (+0, -4) (Diff)
/source/blender/compositor/intern/COM_NodeGraph.cpp (+2, -1) (Diff)
/source/blender/compositor/nodes/COM_ImageNode.cpp (+3, -11) (Diff)
/source/blender/compositor/nodes/COM_RenderLayersNode.cpp (+36, -51) (Diff)
/source/blender/compositor/nodes/COM_RenderLayersNode.h (+7, -1) (Diff)
/source/blender/compositor/operations/COM_RenderLayersProg.cpp (+10, -176) (Diff)
/source/blender/compositor/operations/COM_RenderLayersProg.h (+15, -107) (Diff)
/source/blender/editors/render/render_internal.c (+1, -1) (Diff)
/source/blender/editors/render/render_update.c (+5, -1) (Diff)
/source/blender/editors/space_image/image_buttons.c (+15, -15) (Diff)
/source/blender/editors/space_node/drawnode.c (+10, -4) (Diff)
/source/blender/editors/space_node/node_edit.c (+0, -10) (Diff)
/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp (+5, -7) (Diff)
/source/blender/makesdna/DNA_node_types.h (+5, -4) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+38, -2) (Diff)
/source/blender/makesrna/intern/CMakeLists.txt (+0, -3) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+10, -3) (Diff)
/source/blender/makesrna/intern/rna_render.c (+80, -23) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+28, -10) (Diff)
/source/blender/nodes/CMakeLists.txt (+0, -4) (Diff)
/source/blender/nodes/composite/nodes/node_composite_image.c (+243, -301) (Diff)
/source/blender/nodes/composite/node_composite_tree.c (+23, -12) (Diff)
/source/blender/nodes/NOD_composite.h (+3, -1) (Diff)
/source/blender/render/CMakeLists.txt (+1, -4) (Diff)
/source/blender/render/extern/include/RE_engine.h (+5, -0) (Diff)
/source/blender/render/extern/include/RE_pipeline.h (+5, -18) (Diff)
/source/blender/render/intern/include/rendercore.h (+8, -0) (Diff)
/source/blender/render/intern/include/render_result.h (+6, -1) (Diff)
/source/blender/render/intern/source/envmap.c (+1, -1) (Diff)
/source/blender/render/intern/source/external_engine.c (+29, -2) (Diff)
/source/blender/render/intern/source/pipeline.c (+60, -15) (Diff)
/source/blender/render/intern/source/rendercore.c (+216, -188) (Diff)
/source/blender/render/intern/source/render_result.c (+206, -465) (Diff)
/source/blender/render/intern/source/zbuf.c (+111, -117) (Diff)
/source/blenderplayer/bad_level_call_stubs/stubs.c (+4, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021