Open dictoon opened 5 years ago
@dictoon i think it's only those 3 (glass, metal, plastic), they are marked as deprecated. Removing them will break existing Maya scenes (one can add attributes, but removing them breaks scenes). I have no idea if in Max the scenario is the same. Iterating over the shader graph to find offending shaders (v1) and disconnect the attrs, remap to new (v2) mapping and rewire everything again would be one solution, but for this i would wait until some functionality is in place in order to write v2 shaders (layered closures mostly, volume closures in OSL).
Parameters can be removed from Maya nodes. You have a warning, but scenes don't break. Unknown attributes are skipped.
@est77 great, i'll remove this and add a ticket for a script that rewires shading networks. The parameter never allowed upstream connections anyway so it should be safe.
Parameters can be removed from Maya nodes. You have a warning, but scenes don't break. Unknown attributes are skipped.
That's great! I don't think these shaders can be used in Max, at least not officially, so we should be good there. I'm not sure about Blender though. @jdent02 Will removing deprecated parameters break existing Blender scenes that rely on those shaders?
I don't think so. The parameter would be saved in any existing .blend but I think it just gets ignored if the shader no longer has it.
Thanks for the info Jon. We should test this.
For instance, in
src/appleseed.shaders/src/appleseed/as_metal.osl
we currently have this:But the value of this parameter is now ignored.
There are likely several other shaders that require updating.
Important: We need to make sure that removing these parameters don't break backward-compatibility. If that's not possible, then we should at least make it clear that they are deprecated.