Hello everyone,
I have a render product made of a hydra texture and multiple cameras in my scene. Since moving to Kit 106, updating camera_path of hydra texture now takes more than one frame to change the camera view/projection,
Subscribing to hydra texture drawable event shows that even though camera path was properly updated the next frame, the projection/view used by Hydra are updated after more frames
App Updated:
- Get HydraTexture.cameraPath => "World/Default_Camera"
Set HydraTexture.camera_path to "World/New_Camera"
Frame 1 Rendered:
- View Matrix [0.7071067811865476, ...,1.0000000000000002]
- Projection Matrix [4.772130773757322, ..., 0.0] # Incorrect projection matrix
App Updated:
- Get HydraTexture.cameraPath => "World/New_Camera" # Path correctly updated
Frame 2 Rendered:
- View Matrix [0.7071067811865476, ..., -866.0161835150924, 1.0000000000000002]
- Projection Matrix [4.772130773757322, ..., 0.0] # Incorrect projection matrix
App Update:
- Get HydraTexture.cameraPath => "World/New_Camera" # Path correctly updated
Frame 3 Rendered:
- View Matrix [1.0,..., 1.0] # Effectively changed at frame 3
- Projection Matrix [1.732050852618065, ..., 0.0]
Have a Nice Day