Hi, I’m starting to play with Yashu’s architectural.mi to automatically “ungamma” the input colors. It’s the first time I touch .mi files, and I’ll parameterize the gamma and process the other colors later, but for now I have done a very simple hard-coded ungamma of the diffuse in the mia_material_roundc phenomenon. It appears to work fine for both input colors and textures, but I’m still getting warnings. So these simple changes appear to work (they render as expected)…
[...]
shader "color_to_vector"
"maya_color_to_vector" (
"color" = interface "diffuse"
)
shader "gamma"
"maya_gamma" (
"value" = "color_to_vector.vector",
"gamma" 0.454 0.454 0.454
)
shader "vector_to_color"
"maya_vector_to_color" (
"vector" = "gamma.outValue",
"a" = "color_to_vector.a"
)
shader "mia_material_tm"
"mia_material" (
"diffuse_weight" = interface "diffuse_weight",
"diffuse" = "vector_to_color",
[...]
but I’m getting this warning for pure colors:
API 0.0 warn 302018: type conflict: “color” is type color, “maya_color_to_vector” returns type vector
and this warning for file textures:
API 0.0 warn 302018: type conflict: “vector” is type vector, “maya_file” returns type color
Any ideas how to fix those before I continue? (I’m using Maya 7.0.1) Thanks.





