Remove Z Buffer from ImBuf #109687

Merged
Sergey Sharybin merged 4 commits from Sergey/blender:imbuf_z_buffer into main 2023-07-04 17:03:10 +02:00

4 Commits

Author SHA1 Message Date
Sergey Sharybin 4922887e9d Fix wrong conversion of the image node 2023-07-04 15:27:56 +02:00
Sergey Sharybin 73d0470993 Remove Depth socket of the Composite Output
buildbot/vexp-code-patch-coordinator Build done. Details
2023-07-04 11:52:26 +02:00
Sergey Sharybin ba3df93b12 Fix compositor crash
buildbot/vexp-code-patch-coordinator Build done. Details
Code was still accessing removed socket of the Viewer node.
2023-07-04 10:56:42 +02:00
Sergey Sharybin cd360e5843 Remove Z Buffer from ImBuf
buildbot/vexp-code-patch-coordinator Build done. Details
It was only used by OpenEXR and Iris images, and saving the Z Buffer
in those formats was disabled by default. This option comes from the
times prior to the addition of the Multilayer EXR.

It also worth noting that it was not possible to save Iris with Depth
pass from Blender as internally it is called IRIZ format and it was
not exposed. But even after exposing this format option something still
was missing as saving and loading ITIZ did not show up the Depth pass.

The reason of removal is to make it a more clear match of the ImBuf
with a render pass, and use it instead of a custom type in the render
result and render pass API. This will simplify the API and also avoid
stealing buffers and making shallow copies when showing the render
result.

For the cases when Depth is needed a Multilayer EXR is to be used,
as most likely more than just the Depth will be needed.

On a user level this change:

- Removes the "Z Buffer" option from the interface.

- It preserves existing sockets in compositor nodes, but it will
  output black image. Also changing the image data-block will
  remove the socket unless a Multilayer EXR with Depth pass image
  is selected.

Ref #108618
2023-07-04 09:58:19 +02:00