ID 352389 - Hydra Viewer - Camera locations are not taken into account after switching camera if Live Rendering from a Hydra Viewer camera

Follow

Problem summary:

The user should be able to change the camera from which a Live Render is taking place if they are using the Hydra Viewer's "Live Render From Viewer" feature, however if they change the camera being used in the Hydra Viewer to a camera they added via a CameraCreate node and then back to the Hydra Viewer's built-in perspective camera then the latter camer'a transform will not be taken into account when the Live Render updates.

Steps to reproduce:

  1. Ensure a Hydra Viewer tab is in your current layout.
  2. Create a scene with a CameraCreate, a GafferThree, and a Pony node, then merge them into a Merge node.
  3. Ensure the View flag is set on the Merge node.
  4. Set all objects in the scene to be included in a Live Render by right-clicking on the Live Render checkbox next to the root location on the Scene Graph, then selecting Included with Children.
  5. Right-click on the Merge node, then click on Live Render.
  6. Click the Live Render From Viewer button in the Hydra Viewer (using the default perspective camera, unmoved).
  7. Change the camera on the Hydra Viewer to the camera you added with the CameraCreate node.
  8. On the Hydra Viewer, switch back to the perspective camera.

Expected behaviour:

The Live Render should be from the transform of the perspective camera in the Hydra Viewer.

Actual behaviour:

The Live Render remains from the transform of the render camera set in the CameraCreate node.

Workaround:

No known workaround.

 

TEST PLAN
  • Add a CameraCreate node and a TeapotCreate node.
  • Merge them together with a Merge node.
  • View the scene from the Merge node.
  • Expand all the scene.
  • Right-click on the Merge node and select Live Render.
  • Enable Live Render from Viewer Camera in the Hydra Viewer.
  • Change the look-through location to /root/world/cam/camera.
  • Change the look-through location to persp.
  • Without the patch: The live rendering session will still use the /root/world/cam/camera location as the look-through location, which is incorrect.
  • With the patch: The live rendering session will use the persp camera.

 

Tested versions/platforms:

  • 3.0v1 - Affected

Customer version/platform:

Not supplied

First build with fix:

  • 3.0dev #2272
  • 3.0dev #518

    We're sorry to hear that

    Please tell us why