You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is easy to reproduce by dropping an image Ramp node and setting one side of it to a colour of 100 000. Part of the ramp will go black when it goes over 65504.
I haven't yet investigated where this is going wrong - what we'd probably want is to convert a value of 100 000 to the maximum representable float16, but we're probably getting a reserved value of "inf", and then the OCIO gpu code isn't handling that very well. It wouldn't be that hard to clamp before passing to the GPU, but it would be a waste of time to allocate a new buffer for the common case where there aren't values this extreme.
I guess an alternative would be that in our shader, we could detect infs, and skip calling OCIO and pass them through unchanged.
Version: Gaffer 1.5.0.1
Description
When displaying an image in the viewer with pixel value above float16 max value, the pixel will display black instead of clipping as a white pixel.
Steps to reproduce
See below for a basic scene to reproduce the issue.
Daniel Dresser is saying this is related to this comment:
gaffer/contrib/openColorIOPandemonium/pandemonium.ocio
Line 44 in 05aef9e
He was suggesting perhaps we should clamp to float16 max value before sending the values to OCIO.
Debug log
Click to Expand
The text was updated successfully, but these errors were encountered: