Color Management: Remove "High Dynamic Range" setting
This was a temporary solution until we had proper HDR displays. * Auto detect from the display + view transform if they are HDR, and enable it automatically. This is based on encoding hdr-video in the config. * If a HDR transform is selected and there is no HDR display support, an info message will be shown in the color management panel. * It is now possible to view HDR images in the image editor, without needing to use "View as Render". * There is no versioning to switch to a HDR display, because that also affects image saving. So users will have to manually select the "Rec.2100 PQ" display to see HDR colors again. Ref #144911 Pull Request: https://projects.blender.org/blender/blender/pulls/144565
This commit is contained in:
@@ -76,6 +76,13 @@ class RENDER_PT_color_management(RenderButtonsPanel, Panel):
|
||||
col.prop(view, "view_transform")
|
||||
col.prop(view, "look")
|
||||
|
||||
if view.is_hdr:
|
||||
import gpu
|
||||
if not gpu.capabilities.hdr_support_get():
|
||||
row = col.split(factor=0.4)
|
||||
row.label()
|
||||
row.label(text="HDR display not supported", icon="INFO")
|
||||
|
||||
col = flow.column()
|
||||
col.prop(view, "exposure")
|
||||
col.prop(view, "gamma")
|
||||
@@ -85,37 +92,6 @@ class RENDER_PT_color_management(RenderButtonsPanel, Panel):
|
||||
col.prop(scene.sequencer_colorspace_settings, "name", text="Sequencer")
|
||||
|
||||
|
||||
class RENDER_PT_color_management_display_settings(RenderButtonsPanel, Panel):
|
||||
bl_label = "Display"
|
||||
bl_parent_id = "RENDER_PT_color_management"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
layout.use_property_decorate = False # No animation.
|
||||
|
||||
scene = context.scene
|
||||
view = scene.view_settings
|
||||
|
||||
# Only enable display sub-section if HDR support is available.
|
||||
import gpu
|
||||
layout.enabled = gpu.capabilities.hdr_support_get()
|
||||
|
||||
# Only display HDR toggle for non-Filmic display transforms.
|
||||
col = layout.column(align=True)
|
||||
sub = col.row()
|
||||
sub.active = (not view.view_transform.startswith("Filmic") and not view.view_transform.startswith("AgX") and not
|
||||
view.view_transform.startswith("False Color") and not
|
||||
view.view_transform.startswith("Khronos PBR Neutral"))
|
||||
sub.prop(view, "use_hdr_view")
|
||||
|
||||
|
||||
class RENDER_PT_color_management_curves(RenderButtonsPanel, Panel):
|
||||
bl_label = "Curves"
|
||||
bl_parent_id = "RENDER_PT_color_management"
|
||||
@@ -1138,7 +1114,6 @@ classes = (
|
||||
RENDER_PT_opengl_film,
|
||||
RENDER_PT_hydra_debug,
|
||||
RENDER_PT_color_management,
|
||||
RENDER_PT_color_management_display_settings,
|
||||
RENDER_PT_color_management_curves,
|
||||
RENDER_PT_color_management_white_balance_presets,
|
||||
RENDER_PT_color_management_white_balance,
|
||||
|
||||
Reference in New Issue
Block a user