Missing Camera settings in props except Depth of Field #61499

Closed
opened 2019-02-13 08:05:21 +01:00 by yuri kabantsev · 20 comments

Mac OS X, Blender 2.8, by 13 february beta
Screenshot 2019-02-13 at 09.45.13.jpg

Mac OS X, Blender 2.8, by 13 february beta ![Screenshot 2019-02-13 at 09.45.13.jpg](https://archive.blender.org/developer/F6597136/Screenshot_2019-02-13_at_09.45.13.jpg)
Author

Added subscriber: @kabantsev

Added subscriber: @kabantsev

#61516 was marked as duplicate of this issue

#61516 was marked as duplicate of this issue

Added subscriber: @ArsenMikitov

Added subscriber: @ArsenMikitov

Similar problem. Camera settings are not displayed.

Blender 2.80 Beta for Linux 64 bit (February 13, 00:04:27 - 9a8a5676da)
Operating system: Ubuntu 18.04
Graphics card: RTX-2080Ti

Similar problem. Camera settings are not displayed. Blender 2.80 Beta for Linux 64 bit (February 13, 00:04:27 - 9a8a5676da82) Operating system: Ubuntu 18.04 Graphics card: RTX-2080Ti

Added subscriber: @crantisz

Added subscriber: @crantisz

Same thing on Linux build:
Blender 2.80 (sub 44)
build date: 2019-02-13
build time: 00:01:56
build commit date: 2019-02-13
build commit time: 00:00
build hash: 9a8a5676da
build platform: Linux

Camera settings have "Lens" tab in EEVEE, but in Cycles haven't.

Same thing on Linux build: Blender 2.80 (sub 44) build date: 2019-02-13 build time: 00:01:56 build commit date: 2019-02-13 build commit time: 00:00 build hash: 9a8a5676da82 build platform: Linux Camera settings have "Lens" tab in EEVEE, but in Cycles haven't.

Added subscriber: @RainerTrummer

Added subscriber: @RainerTrummer

Seems like 'CYCLES' is missing in the COMPAT_ENGINES set in a few UI tabs like for instance the lens panel:

class DATA_PT_lens(CameraButtonsPanel, Panel):
    bl_label = "Lens"
    COMPAT_ENGINES = {'BLENDER_EEVEE', 'BLENDER_WORKBENCH'}
Seems like 'CYCLES' is missing in the COMPAT_ENGINES set in a few UI tabs like for instance the lens panel: ``` class DATA_PT_lens(CameraButtonsPanel, Panel): bl_label = "Lens" COMPAT_ENGINES = {'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} ```
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Philipp Oeser self-assigned this 2019-02-13 09:36:06 +01:00
Member

Confirmed, checking...

Confirmed, checking...

This comment was removed by @RainerTrummer

*This comment was removed by @RainerTrummer*

What makes it a bit confusing is that panels which serve a similar purpose (and almost look the same in the UI) are spread across different files. Check for example the camera aperture one. The cycles UI for this is in the file ui.py:

class CYCLES_CAMERA_PT_dof_aperture(CyclesButtonsPanel, Panel):
    bl_label = "Aperture"
    bl_parent_id = "CYCLES_CAMERA_PT_dof"

    @classmethod
    def poll(cls, context):
        return context.camera and CyclesButtonsPanel.poll(context)

    def draw(self, context):
        layout = self.layout
        layout.use_property_split = True
        flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=False)

        cam = context.camera
        ccam = cam.cycles

        col = flow.column()
        col.prop(ccam, "aperture_type")
        if ccam.aperture_type == 'RADIUS':
            col.prop(ccam, "aperture_size", text="Size")
        elif ccam.aperture_type == 'FSTOP':
            col.prop(ccam, "aperture_fstop", text="Number")
        col.separator()

        col = flow.column()
        col.prop(ccam, "aperture_blades", text="Blades")
        col.prop(ccam, "aperture_rotation", text="Rotation")
        col.prop(ccam, "aperture_ratio", text="Ratio")

The Eevee counterpart however resides in properties_data_camera.py:

class DATA_PT_camera_dof_aperture(CameraButtonsPanel, Panel):
    bl_label = "Aperture"
    bl_parent_id = "DATA_PT_camera_dof"
    COMPAT_ENGINES = {'BLENDER_EEVEE', 'BLENDER_WORKBENCH'}

    def draw(self, context):
        layout = self.layout
        layout.use_property_split = True

        cam = context.camera
        dof_options = cam.gpu_dof

        flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=False)

        col = flow.column()
        col.prop(dof_options, "fstop")
        col.prop(dof_options, "blades")

        col = flow.column()
        col.prop(dof_options, "rotation")
        col.prop(dof_options, "ratio")

This isn't related to the bug, but it makes tracking such things down a bit cumbersome.

What makes it a bit confusing is that panels which serve a similar purpose (and almost look the same in the UI) are spread across different files. Check for example the camera aperture one. The cycles UI for this is in the file `ui.py`: ``` class CYCLES_CAMERA_PT_dof_aperture(CyclesButtonsPanel, Panel): bl_label = "Aperture" bl_parent_id = "CYCLES_CAMERA_PT_dof" @classmethod def poll(cls, context): return context.camera and CyclesButtonsPanel.poll(context) def draw(self, context): layout = self.layout layout.use_property_split = True flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=False) cam = context.camera ccam = cam.cycles col = flow.column() col.prop(ccam, "aperture_type") if ccam.aperture_type == 'RADIUS': col.prop(ccam, "aperture_size", text="Size") elif ccam.aperture_type == 'FSTOP': col.prop(ccam, "aperture_fstop", text="Number") col.separator() col = flow.column() col.prop(ccam, "aperture_blades", text="Blades") col.prop(ccam, "aperture_rotation", text="Rotation") col.prop(ccam, "aperture_ratio", text="Ratio") ``` The Eevee counterpart however resides in `properties_data_camera.py`: ``` class DATA_PT_camera_dof_aperture(CameraButtonsPanel, Panel): bl_label = "Aperture" bl_parent_id = "DATA_PT_camera_dof" COMPAT_ENGINES = {'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} def draw(self, context): layout = self.layout layout.use_property_split = True cam = context.camera dof_options = cam.gpu_dof flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=False) col = flow.column() col.prop(dof_options, "fstop") col.prop(dof_options, "blades") col = flow.column() col.prop(dof_options, "rotation") col.prop(dof_options, "ratio") ``` This isn't related to the bug, but it makes tracking such things down a bit cumbersome.

This issue was referenced by 5e3838faa2

This issue was referenced by 5e3838faa2e6dae0ac52860085f5dc4b7a000ea5
Member

@RainerTrummer: cycles usually takes panels with BLENDER_RENDER as a compat engine into account, except for a few instances [like apertue as you mentioned]
check get_panels() in cycles addon to see which panels cycles excludes...

Anyways, D4346 should fix this for now [adding BLENDER_RENDER back].
Not sure if we should swap BLENDER_RENDER with CYCLES throughout ui scripts at one time...

@RainerTrummer: cycles usually takes panels with `BLENDER_RENDER` as a compat engine into account, except for a few instances [like apertue as you mentioned] check `get_panels()` in cycles addon to see which panels cycles excludes... Anyways, [D4346](https://archive.blender.org/developer/D4346) should fix this for now [adding `BLENDER_RENDER` back]. Not sure if we should swap `BLENDER_RENDER` with `CYCLES` throughout ui scripts at one time...

@lichtwerk For the sake of avoiding historical confusion, swapping 'BLENDER_RENDER' with 'CYCLES' would make a lot of sense. At the moment it's a bit like 'Yeah I know, last year Blender Render was meant to be Blender Internal, but now it's Cycles'. Conversations like this can get a bit rough :) Anyways, not related to this. Thanks for the patch, will test it now.

@lichtwerk For the sake of avoiding historical confusion, swapping 'BLENDER_RENDER' with 'CYCLES' would make a lot of sense. At the moment it's a bit like 'Yeah I know, last year Blender Render was meant to be Blender Internal, but now it's Cycles'. Conversations like this can get a bit rough :) Anyways, not related to this. Thanks for the patch, will test it now.

Seems to be fine, all properties are back.

Seems to be fine, all properties are back.
Member

Added subscriber: @brecht

Added subscriber: @brecht
Member

@RainerTrummer : will wait for @brecht to decide if swapping 'BLENDER_RENDER' with 'CYCLES' is desired at this point (external) addons would probably require updates then...

@RainerTrummer : will wait for @brecht to decide if swapping 'BLENDER_RENDER' with 'CYCLES' is desired at this point (external) addons would probably require updates then...
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Added subscriber: @goodwinds

Added subscriber: @goodwinds
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
7 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#61499
No description provided.