Cycles: Allow to choose OIDN denoise device on per-scene basis. #117876

Closed
Nikita Sirgienko wants to merge 1 commits from Sirgienko/blender:ui_oidn_oidn_cpu_and_gpu_entry into main

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

No response

_No response_
Nikita Sirgienko added 1 commit 2024-02-06 01:44:02 +01:00
Nikita Sirgienko requested review from Brecht Van Lommel 2024-02-06 01:47:36 +01:00
Nikita Sirgienko added the
Module
Render & Cycles
label 2024-02-06 01:47:47 +01:00
Nikita Sirgienko added this to the 4.1 milestone 2024-02-06 01:47:52 +01:00
Nikita Sirgienko added this to the Render & Cycles project 2024-02-06 01:47:57 +01:00
Author
Member

@Stefan_Werner @xavierh for awareness.

@Stefan_Werner @xavierh for awareness.
Nikita Sirgienko reviewed 2024-02-06 01:49:13 +01:00
@ -221,0 +234,4 @@
has_oidn_gpu_devices = True
if has_oidn_cpu_devices:
items.append(('OPENIMAGEDENOISE_CPU', "OpenImageDenoise on CPU",
Author
Member

"OpenImageDenoise on CPU" or "OpenImageDenoise on GPU" are not exactly fully fitting in the default panel width, likely worth to change the default value in order to fit this strings fully, or use more short one.

"OpenImageDenoise on CPU" or "OpenImageDenoise on GPU" are not exactly fully fitting in the default panel width, likely worth to change the default value in order to fit this strings fully, or use more short one.
Nikita Sirgienko reviewed 2024-02-06 01:49:45 +01:00
@ -423,3 +423,4 @@
PyTuple_SET_ITEM(device_tuple, 2, pyunicode_from_string(device.id.c_str()));
PyTuple_SET_ITEM(device_tuple, 3, PyBool_FromLong(device.has_peer_memory));
PyTuple_SET_ITEM(device_tuple, 4, PyBool_FromLong(device.use_hardware_raytracing));
PyTuple_SET_ITEM(device_tuple,
Author
Member

Duplication of the changes from #117734 - won't be needed after merging #117734 into the master.

Duplication of the changes from https://projects.blender.org/blender/blender/pulls/117734 - won't be needed after merging https://projects.blender.org/blender/blender/pulls/117734 into the master.
Author
Member

UI Example - Drop list will look like (there is no Optix entry here, because I do not have NVIDIA card on this machine):
image

UI Example - Drop list entry will be hidden, if there are no available devices for such denoiser:
image

UI Example - Drop list will look like (there is no Optix entry here, because I do not have NVIDIA card on this machine): ![image](/attachments/e0815fa4-aa53-4d4d-a923-e5673fca779a) UI Example - Drop list entry will be hidden, if there are no available devices for such denoiser: ![image](/attachments/ca2ead99-1b35-4c64-a6cc-06830de23d21)
113 KiB
171 KiB
Author
Member

As #117874 have been merged - ability to tune OIDN device on per-scene level was provided and there is no need for this PR anymore.

As https://projects.blender.org/blender/blender/pulls/117874 have been merged - ability to tune OIDN device on per-scene level was provided and there is no need for this PR anymore.
Nikita Sirgienko closed this pull request 2024-02-06 17:50:28 +01:00

Pull request closed

Sign in to join this conversation.
No reviewers
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
1 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#117876
No description provided.