EXR reading : dimensions are based on dataWindow (not displayWindow), leading to e.g. Renderman Cryptomatte processed wrongly by Blender compositor #109894

Open
opened 2023-07-10 09:33:06 +02:00 by refractal-studios · 5 comments

Operating system: MacOS Sonoma Beta
Graphics card: AMD RX6600XT

Blender Version
Broken: ( 3.6, c7fc78b81e, release, 2023-06-27 )
Worked: (none)

Renderman cryptomatte pass images are read wrongly by blender compositor. It is changing the height of the image, based on the alpha, instead of keeping a fixed size. Even Blender 3.6.1 latest version has same issue.

Exact steps for others to reproduce the error

  1. create a simple scene with spheres and cubes. leave empty space at the top of frame.
  2. render images with crypto matte using render man addon.
  3. bring the images into blender compositor using cryptomatte node.
Operating system: MacOS Sonoma Beta Graphics card: AMD RX6600XT **Blender Version** Broken: ( 3.6, c7fc78b81ecb, release, 2023-06-27 ) Worked: (none) Renderman cryptomatte pass images are read wrongly by blender compositor. It is changing the height of the image, based on the alpha, instead of keeping a fixed size. Even Blender 3.6.1 latest version has same issue. **Exact steps for others to reproduce the error** 1. create a simple scene with spheres and cubes. leave empty space at the top of frame. 2. render images with crypto matte using render man addon. 3. bring the images into blender compositor using cryptomatte node.
refractal-studios added the
Type
Report
Status
Needs Triage
Priority
Normal
labels 2023-07-10 09:33:07 +02:00
Member

Hi @refractal-studios.

Can you please upload two EXR files showing the issue?

Hi @refractal-studios. Can you please upload two EXR files showing the issue?
Evan Wilson added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-07-11 18:48:18 +02:00

It's not an issue with exr files. Fusion is properly reading them.
somehow blender compositor is cropping the empty part of the image to take only matte area.

Anyway I am attaching the exr images too.

It's not an issue with exr files. Fusion is properly reading them. somehow blender compositor is cropping the empty part of the image to take only matte area. Anyway I am attaching the exr images too.
Evan Wilson added
Status
Needs Triage
and removed
Status
Needs Information from User
labels 2023-07-17 12:16:57 +02:00
Member

Looking at the header of each file using exrheader.exe, it appears that Blender is reading the dataWindow, and using it to set the displayWindow.

0001.exr
Dimensions in Blender 960 x 419

exrheaer.exe
dataWindow (type box2i): (0 38) - (959 456)
displayWindow (type box2i): (0 0) - (959 456)

0010.exr
Dimensions in Blender 960 x 454

exrheaer.exe
dataWindow (type box2i): (0 3) - (959 456)
displayWindow (type box2i): (0 0) - (959 456)

I also found that in 48e8d8f910/source/blender/imbuf/intern/openexr/openexr_api.cpp there is no displayWindow only dataWindow. Just noting that in case it is helpful.

Looking at the header of each file using `exrheader.exe`, it appears that Blender is reading the dataWindow, and using it to set the displayWindow. 0001.exr Dimensions in Blender `960 x 419` ``` exrheaer.exe dataWindow (type box2i): (0 38) - (959 456) displayWindow (type box2i): (0 0) - (959 456) ``` 0010.exr Dimensions in Blender `960 x 454` ``` exrheaer.exe dataWindow (type box2i): (0 3) - (959 456) displayWindow (type box2i): (0 0) - (959 456) ``` I also found that in https://projects.blender.org/blender/blender/src/commit/48e8d8f910c4cce537bfe069e99949f3e326b554/source/blender/imbuf/intern/openexr/openexr_api.cpp there is no `displayWindow` only `dataWindow`. Just noting that in case it is helpful.

Thanks for finding the problem. data window is based on the objects in the frame. if there is only a small sphere, then the data window will be like 100 x 100, when actual fixed display window of image is 960 x 457.

Thanks for finding the problem. data window is based on the objects in the frame. if there is only a small sphere, then the data window will be like 100 x 100, when actual fixed display window of image is 960 x 457.
Member

I think this is something the Core / Images & Movies has to judge.
But will confirm for now.

I think this is something the `Core` / `Images & Movies` has to judge. But will confirm for now.
Philipp Oeser changed title from Renderman Cryptomatte processed wrongly by Blender compositor to EXR reading : dimensions are based on dataWindow (not displayWindow), leading to e.g. Renderman Cryptomatte processed wrongly by Blender compositor 2023-07-19 13:08:54 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#109894
No description provided.