Go to file
Lukas Stockner 4cf7fc3b3a 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
2017-05-03 16:44:52 +02:00
build_files Cleanup: spelling 2017-04-27 21:41:03 +10:00
doc Cleanup: menu example 2017-04-29 16:20:06 +10:00
extern Curve Fitting: minor change to re-fitting method 2017-04-30 00:01:16 +10:00
intern Render API/Cycles: Identify Render Passes by their name instead of a type flag 2017-05-03 16:44:52 +02:00
release Cleanup: spelling 2017-04-27 21:41:03 +10:00
source Render API/Cycles: Identify Render Passes by their name instead of a type flag 2017-05-03 16:44:52 +02:00
tests Fix T51331: fixes for Alembic unit tests on Windows 2017-04-28 15:28:41 +02:00
.arcconfig Use HTTPS protocol for arc 2013-12-24 22:57:27 +06:00
.gitignore Update .gitignore to some more generated/non-git-stored files. 2016-08-21 22:40:57 +02:00
.gitmodules Point all submodules to master branch 2017-04-03 14:54:51 +02:00
CMakeLists.txt fix typo in WITH_SYSTEM_GFLOG in CMakeLists.txt 2017-04-30 10:52:38 -06:00
COPYING == docs == 2010-10-13 14:44:22 +00:00
GNUmakefile Makefile: set tab width=4 2017-03-11 20:48:12 +11:00
make.bat [msvc/make.bat] Provide a convenience rebuild.cmd in the build folder for easy rebuilds. 2017-04-26 08:46:35 -06:00