Skip to content

Preserve color space when saving Arnold textures#39

Open
fidifis wants to merge 1 commit intodaz3d:masterfrom
fidifis:master
Open

Preserve color space when saving Arnold textures#39
fidifis wants to merge 1 commit intodaz3d:masterfrom
fidifis:master

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