IMB: Read single-layer XYZ channels as a combined image #115290

Merged
Omar Emara merged 4 commits from OmarEmaraDev/blender:openexr-read-xyz-channels into main 2023-12-13 10:01:19 +01:00

4 Commits

Author SHA1 Message Date
Omar Emara 0ba009a01b Merge branch 'main' into openexr-read-xyz-channels
buildbot/vexp-code-patch-coordinator Build done. Details
2023-11-27 16:08:31 +02:00
Omar Emara 166522f8fc Broadcast Y to all three channels
buildbot/vexp-code-patch-coordinator Build done. Details
2023-11-27 15:01:42 +02:00
Omar Emara 2c56c46e81 Refactor fore more explicit logic 2023-11-27 14:34:22 +02:00
Omar Emara dc230a2950 IMB: Read single layer XYZ channels as a combined image
Currently, the OpenEXR reader can't read single-layer XYZ images as a
combined image. Single-view images will only read the X channel, while
multi-view images will interpret the Z as a depth image and the Y and Z
channels will be treated as float passes.

This patch allows the reading of XYZ channels as combined images. For
single-view images, we just extend the RGB-like channel names we match
to contain XYZ. For multi-view images we only treat the Z channel as a
Depth one if no X and Y channels exists, since the Z in this case is
part of the XYZ image.
2023-11-23 08:43:12 +02:00