forked from AcademySoftwareFoundation/OpenImageIO
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(iv): OCIO color managed display (AcademySoftwareFoundation#4031)
This change adds OCIO functionality to iv. To enable OCIO, first set the $OCIO environment variable to point with a path to the OCIO config. "ocio://default" should work as well. If a valid config provided, a new menu gets added under "View/OCIO" with an on/off toggle and submenus to select the image color space and display/view and optional look. If an image color space, display and view are provided as command line parameters ("image-color-space", "display", "view"), then the OCIO mode is switched on automatically. If no image color space is provided as command line parameters, the top most color space of the config get pre-selected in the menus. If no display or view is provided as command line parameters, the default values get pre-selected in the menus. In OCIO mode the exposure and gamma adjustments are done by OCIO. The exposure is done in scene linear, gamma is still in display space. The exposure adjustments don't match between the OCIO and non-OCIO modes. When OCIO fails to initialise the pipeline for any reason, an error message is shown in the status bar, and the non-OCIO path gets used. TODO: - All channel shuffling is done by the existing shader and happens before the OCIO step. We may want to discuss/change that? - The initial image color space gets selected from the command line parameter, or the first color space in the config. There is no attempt being made to use the image metadata. - The exposure/gamma values get baked into the shader, which gets recompiled on every change. We may want to use uniforms instead. - DONE --------- Signed-off-by: Anton Dukhovnikov <[email protected]>
- Loading branch information
1 parent
a685910
commit 5fe4441
Showing
8 changed files
with
944 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.