Fix #119427: UI: The Metadata is gone for the rendered image #119495

Closed
Philipp Oeser wants to merge 1 commits from lichtwerk/blender:119427 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Member

This got lost in d579ac2b3f

Without having called BKE_imbuf_stamp_info on the ImBuf there will be
no metadata to show. This is now done again at the end of
image_get_render_result

This got lost in d579ac2b3f80 Without having called `BKE_imbuf_stamp_info` on the ImBuf there will be no metadata to show. This is now done again at the end of `image_get_render_result`
Philipp Oeser added 1 commit 2024-03-15 08:34:16 +01:00
0c3718dc6e Fix #119427: UI: The Metadata is gone for the rendered image
This got lost in d579ac2b3f

Without having called `BKE_imbuf_stamp_info` on the ImBuf there will be
no metadata to show. This is now done again at the end of
`image_get_render_result`
Philipp Oeser added this to the Render & Cycles project 2024-03-15 08:34:43 +01:00
Philipp Oeser requested review from Sergey Sharybin 2024-03-15 08:35:10 +01:00

That is a good find! There are a couple of notes:

  • Maybe we should target the fix to 4.1?
  • The proposed code here follows the old behavior closer, but has some issues which seems to be easy to address. Description below.

One of the issue is that depending on how you access pass ImBuf you might or might not have metadata on it. For example, if you go via Render Result Image data-block, you'll have the metadata, but if you access render passes directly from RenderResult you would not get metadata.

Another issue (although, old code was probably the same) the metadata is re-created on the ImBuf on every redraw.

How about an alternative fix which ensures metadata on render passes ImBuf's at the end of the render? Attached the proposed fix.

That is a good find! There are a couple of notes: - Maybe we should target the fix to 4.1? - The proposed code here follows the old behavior closer, but has some issues which seems to be easy to address. Description below. One of the issue is that depending on how you access pass ImBuf you might or might not have metadata on it. For example, if you go via Render Result Image data-block, you'll have the metadata, but if you access render passes directly from RenderResult you would not get metadata. Another issue (although, old code was probably the same) the metadata is re-created on the ImBuf on every redraw. How about an alternative fix which ensures metadata on render passes ImBuf's at the end of the render? Attached the proposed fix.
Sergey Sharybin requested review from Brecht Van Lommel 2024-03-15 10:20:54 +01:00
Author
Member

Thx looking at it @Sergey !

I like your solution better as well, lets go with that one :)

Regarding targeting 4.1, I am all for it (if @ThomasDinges agrees).

In any case, would close this PR (since @Sergey 's solution is different enough to justify getting its own PR I think)

@Sergey : mind spitting that out as its own PR?

Thx looking at it @Sergey ! I like your solution better as well, lets go with that one :) Regarding targeting 4.1, I am all for it (if @ThomasDinges agrees). In any case, would close this PR (since @Sergey 's solution is different enough to justify getting its own PR I think) @Sergey : mind spitting that out as its own PR?
Philipp Oeser closed this pull request 2024-03-15 10:49:36 +01:00

Fine with me for 4.1

Fine with me for 4.1

Pull request closed

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 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#119495
No description provided.