IECoreArnold Camera screenWindow #539
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
We are in the process of evaluating gaffer for our lighting team.
We mainly work with Arnold and we couldn't get gaffer renders to match maya's one.
Looking into details, it seems the values of the screen window on the arnold camera node do not match.
By default, arnold uses normalized values on both axis, [-1, 1] and [-1, 1] and that's what we get out of maya.
Gaffer on its side is outputting [-aspect, aspect] on both axis when the aspect is above 1.0. Below 1.0, gaffer does output the expected [-1, 1]
In the code, it seems that IECore compute values so that only one of the two axis is normalize while the other uses [-1/aspect, 1/aspect]. Which axis is set to [-1, 1]
depends on the aspect value being below or above zero.
Then, further on, it seems that IECoreArnold is trying to modify those values so that both axis are normalized to match arnold's behavior.
The problem is that it systemically tries to re-normalize the same axis, independently of the aspect value.
We don't know if it is the intended behavior or it this is a bug that just went through unnoticed.
Here is our fix just in case.
Thanks,
Gaetan Guidet, Sol Kim