ID 317912 - Viewer: Switching a CameraCreate projection back to perspective after switching to orthographic or a custom projection leaves the Viewer stuck in orthographic projection

Follow

Problem summary
When switching between Perspective and Orthographic projection modes on a CameraCreate node, if the user attempts to rotate the camera while viewing Orthographic mode, the camera will not rotate. 
 
This is expected of the Camera, as it should not rotate in Orthographic mode.   
 
The problem arises when the user switches back to Perspective mode.  The camera will not update to the newly selected mode.
 
This issue also happens when switching from custom created projections (e.g Fisheye, Spherical, etc) back to Perspective mode.

Customer reported version
katana.2.6v3

Customer reported platform
ubuntu

Steps to reproduce (GUI)
 

1. Create a CameraCreate node

2. View through the Shot Camera in the Viewer tab

3. Switch the CameraCreate node's projection parameter to 'Orthographic' (Or your custom Projection)

4. Attempt to rotate the camera in the viewer by 'Alt + LClick' dragging the mouse. (Should not rotate as expected)

5. Switch the projection to 'Perspective'

Result: The camera will not update and will stay in Orthographic mode.

 

Steps to reproduce (Python) (Custom Projection)

 

1.  Create a CameraCreate node

2. View through the Shot Camera in the Viewer tab

3.  Paste the following into your Script Editor and execute it


Camera = NodegraphAPI.GetNode('CameraCreate')Camera.getParameter('projection').setValue('test', 0)

4. Attempt to rotate the camera in the viewer by 'Alt + LClick' dragging the mouse. (Should not rotate as expected)

5. Switch the projection to 'Perspective'

Result: The camera will not update and will stay in Orthographic mode.


Workaround

Workaround 1

1.  Switch the CameraCreate Projection parameter to 'Orthographic' (Or your custom Projection)

2.  In the Viewer tab, Zoom out of the view (Mouse wheel)

3.  Switch the CameraCreate Projection parameter to 'Perspective'

 

Workaround 2

1.  Switch the CameraCreate Projection parameter to 'Perspective'

2.  In the Viewer tab, switch to the perspective camera

3.  Rotate the perspective camera

4.  Switch back to the Shot Camera 


Reproduced by support

This bug has been reproduced in:
Katana2.6v4 - CentOS6.9 - Windows 7
Katana2.6v1 - CentOS6.9 - Windows 7
Katana2.5v7 - CentOS6.9 - Windows 7
Katana2.5v1 - CentOS6.9 - Windows 7
Katana2.1v6 - CentOS6.9
Katana2.1v3 - CentOS6.9
Katana2.1v2 - CentOS6.9
Katana2.1v1 - CentOS6.9 - Regression

Unable to reproduce bug in:
Katana2.0v5 - CentOS6.9
Katana2.0v1 - CentOS6.9

Earliest version tested
-Katana2.0v1
- This issue no longer appears in this version and has regressed

Expected behaviour
The Camera should switch back to 'Perspective' mode

Actual behaviour
The Camera does not switch back to 'Perspective' mode until the viewer is manipulated through another camera.

    We're sorry to hear that

    Please tell us why