Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[usdImagingGL,usdview] Add support to set the OCIO display, view, and colorspace #1491

Merged
merged 1 commit into from
Nov 5, 2021

Conversation

marsupial
Copy link
Contributor

As we're testing more assets and images in usdview, there have been some request to be able to actual configure OCIO.
Additionally some internal usage of usdImagingGL will benefit from being able to tweak the profile in use.
For usdview:

  • This keeps the behavior that selecting openColorIO from the Color Mangement menu will load a configs default behavior.
  • It adds a sub menu where one can set the display, view, and colorspace for more fine-grained control.

Description of Change(s)

Just pushes through some string to the right place to get picked up in HdxColorCorrectionTaskParams
Dynamically builds an OpenColorIO menu in usdview based on the current config if PyOpenColorIO is available.

Open to suggestions on how to make this better.

@jilliene
Copy link

Filed as internal issue #USD-6656

pixar-oss pushed a commit that referenced this pull request Nov 5, 2021
- Rename testUsdviewOCIO to testUsdviewColorManagement and extend test to validate all color management options (disabled, sRGB and OCIO).
- Set env var during test run.
- Add test to CMake.

See #1491

(Internal change: 2193575)
pixar-oss pushed a commit that referenced this pull request Nov 5, 2021
pixar-oss pushed a commit that referenced this pull request Nov 5, 2021
@pixar-oss pixar-oss merged commit b8c6f11 into PixarAnimationStudios:dev Nov 5, 2021
pixar-oss pushed a commit that referenced this pull request Nov 5, 2021
... that uses a different view.

See #1491

(Internal change: 2194613)
pixar-oss pushed a commit that referenced this pull request Nov 5, 2021
- Disable *openColorIO* from the *Color Management* menu when the OCIO env var isn't specified.
- Fix data flow to handle changes to OCIO config via API. _refreshColorCorrectionModeMenu() updates the UI when the relevant view settings are changed.
- Update API used in test.

Note that the OCIO settings aren't saved to session state yet since the settings are associated with the config file used.

Fixes #1491

(Internal change: 2194935)
pixar-oss pushed a commit that referenced this pull request Nov 5, 2021
See #1491

(Internal change: 2197560)
pixar-oss pushed a commit that referenced this pull request Nov 5, 2021
See #1491

(Internal change: 2197794)
lkerley pushed a commit to imageworks/USD that referenced this pull request Jan 7, 2022
- Rename testUsdviewOCIO to testUsdviewColorManagement and extend test to validate all color management options (disabled, sRGB and OCIO).
- Set env var during test run.
- Add test to CMake.

See PixarAnimationStudios#1491

(Internal change: 2193575)
lkerley pushed a commit to imageworks/USD that referenced this pull request Jan 7, 2022
lkerley pushed a commit to imageworks/USD that referenced this pull request Jan 7, 2022
lkerley pushed a commit to imageworks/USD that referenced this pull request Jan 7, 2022
... that uses a different view.

See PixarAnimationStudios#1491

(Internal change: 2194613)
lkerley pushed a commit to imageworks/USD that referenced this pull request Jan 7, 2022
- Disable *openColorIO* from the *Color Management* menu when the OCIO env var isn't specified.
- Fix data flow to handle changes to OCIO config via API. _refreshColorCorrectionModeMenu() updates the UI when the relevant view settings are changed.
- Update API used in test.

Note that the OCIO settings aren't saved to session state yet since the settings are associated with the config file used.

Fixes PixarAnimationStudios#1491

(Internal change: 2194935)
lkerley pushed a commit to imageworks/USD that referenced this pull request Jan 7, 2022
lkerley pushed a commit to imageworks/USD that referenced this pull request Jan 7, 2022
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants