Autodesk / maya-usd

A common USD (Universal Scene Description) plugin for Autodesk Maya
777 stars 201 forks source link

Pixar Light Colors Gama Corrected #3792

Open Viewgob opened 6 months ago

Viewgob commented 6 months ago

Hello: When we create a PxrRect light and give it a color of 1 .6 .4, duplicate it as usd data and the view the USD data for the light, the colors have been shifted to 1 .32 .133. A simple, non Pixar point light with the same color outputs at 1 .6 .4:

// USD Layer identifier: anon:0x7ff36c0359d0:anonymousLayer1 // Real Path: // #sdf 1.4.32 // // def RectLight "PxrRectLight" ( // prepend apiSchemas = ["ShapingAPI", "ShadowAPI"] // kind = "assembly" // ) // { // color3f inputs:color = (1, 0.325037, 0.13320851) // token visibility = "inherited" // } // // def SphereLight "pointLight1" ( // prepend apiSchemas = ["ShadowAPI"] // kind = "assembly" // ) // { // color3f inputs:color = (1, 0.6, 0.4) // float inputs:diffuse = 1 // float inputs:intensity = 1 // float inputs:radius = 0 // color3f inputs:shadow:color = (0, 0, 0) // bool inputs:shadow:enable = 1 // float inputs:specular = 1 // bool treatAsPoint = 1 // token visibility = "inherited" // } //

After speaking with Pixar on their forums they suggested setting PIXMAYA_LINEAR_COLORS=1 but it doesn't seem to have an effect. I see this in the terminal so I'm pretty sure it's recognizing the env var:

#########################################################################
#  PIXMAYA_LINEAR_COLORS is overridden to 'true'.  Default is 'false'.  #
#########################################################################

Is there some other place we can look to see where or why the color is being modified? Thank you!

Rocky Linux 8.9 Maya 2023.2 Maya USD 0.25 Pxr USD 22.05b Renderman For Maya 26.1

santosg87 commented 6 months ago

thanks you for reporting this! we will investigate and discuss possible next steps with the team.