-
Notifications
You must be signed in to change notification settings - Fork 202
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
Always write color space to usd texture prims #2548
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Goes against having sparse USD files, but is indeed necessary to prevent any confusion at this point in time.
@JGamache-autodesk yeah I agree. The only other options I could think of are:
But this felt like the least complex solution in the interim |
@dgovil I like your suggestion of using an env var to control the verbosity. |
Any preference for what it should be called and what the default behaviour should be? IMHO the default should be "always write colorspace" because it's least surprising, even if it results in more data, with the environment variable toggling it back to its old behaviour. That would also help us out when we're reading files that come from multiple locations/users etc to pick the right color settings. |
Hi @dgovil, after consulting with some of our pipeline/color experts, it looks like USD would benefit from adding In the meantime, can you please add a |
…_COLORSPACE_METADATA
01398dc
to
6ff0af9
Compare
@JGamache-autodesk , added the environment variable to control the behaviour |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Preflight issue is known and on our side. Ready for merge. |
This changes the behaviour of the texture prim writer to always write the colorSpace attribute, whereas currently they are elided if they match the default.
This is important for us, and other software vendors, who have software that needs to ingest data from a multitude of pipelines with different defaults. This means we currently have to apply heuristics to figure out the default for a given texture, but it would be most ideal to be able to just always write out the intended color space into the file.
I think this would be a beneficial default for Maya USD in general, because even in a film studio, we might share assets between shows that have different OCIO defaults, so it's beneficial to know that information up front as much as possible.