State:Closed|icon_bug|icon_nuke|database:public|Resolution:Not A Bug|TargetRelease:17.0v1|BugID:588637|
Problem summary
Getting camera matrices from a CameraOp in a different view does not work with new NDK functions, projectionModeMatrixAt and worldTransformAt
projectionModeMatrixAt and worldTransformAt NDK functions were added to the CameraOp class in Nuke 15.1 to allow matrices to be retrieved for specific OutputContexts.
When an OutputContext with a different frame from the current one is specified, the correct matrix is returned.
However when an OutputContext with a different view from the current one is specified, the correct matrix is not returned. Instead, the matrix for the main view will alway be returned.
Customer reported version
nuke.15.1v3
Customer reported platform
windows11
Steps to reproduce
As this is a bug with the C++ API this will require a C++ plugin to test properly. The attached CameraMatrixTest source for a simple plugin that can
be built for 15.1+, then follow the steps below:
Expected behaviour
The projectionModeMatrixAt function in the C++ NDK should return the projection matrix for the specified view.
Actual behaviour
The projectionModeMatrixAt function in the C++ NDK always returns the projection matrix for the main view.
Workaround
You can use the old single-precision projectionAt() method instead
Reproduced by support
This bug has been reproduced by the developers:
Nuke 15.1v3 - Windows
Earliest version tested
Nuke 15.1 - This feature did not exist before this version
We're sorry to hear that
Please tell us why