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

Preserve color space when saving Arnold textures #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Fidifis
Copy link

@Fidifis Fidifis commented Aug 8, 2022

When saving a scene with textures the change of the fileTextureName attribute causes color space to change to the default value which is sRGB. With this fix, a correct color space is preserved.

Maya version: 2020
How to replicate the bug:

  1. Launch DazToMaya window
  2. Click Auto-Import
  3. Click Convert Materials (Arnold is selected)
  4. Click Save Scene with Textures...
  5. Write file name and save
  6. In hypershade (or anywhere else) look at any texture that should have raw color space

What we can see: All textures have sRGB color space (depends on Maya settings, but sRGB is the default).
Expected: sRGB or RAW depending on the texture.

What is fixed in this pull request: Textures preserve their original color space and we can see in the texture node that it has the correct color space.

When saving a scene with textures the change of the fileTextureName attribute causes color space to change to the default value which is sRGB. With this fix, a correct color space is preserved.
@danielbui78 danielbui78 self-assigned this Sep 14, 2022
@danielbui78 danielbui78 added the enhancement New feature or request label Sep 14, 2022
@danielbui78
Copy link
Contributor

Code reviewed, will plan to merge after I do some basic QA tests to confirm fix. Thanks very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants