AcademySoftwareFoundation / MaterialX

MaterialX is an open standard for the exchange of rich material and look-development content across applications and renderers.
http://www.materialx.org/
Apache License 2.0
1.87k stars 353 forks source link

Definition Proposal : Allow interpretation option for input color for <image> nodes #933

Closed kwokcb closed 2 years ago

kwokcb commented 2 years ago

Proposal

Allow for color blending as part of <image> node definition.

Affected nodes:

<image> and definitions using this node definition.

Existing

Currently there is a "default color" which is used for unmapped areas or if an image cannot be found.

Change proposed

This would propagate to be exposable on definitions using the base <image> including tiledimage.

dbsmythe commented 2 years ago

What would be used to control the blend amount? The alpha of the image? What if the texture doesn't have an alpha channel? Can you elaborate on "The color input is connectable and allow to have a geometry semantic / geometry property to allow for geometric blending"? I assume by this you mean the "default" color input? What do you mean by "geometric blending"?

Note: my gut instinct is that the node should remain simple and unchanged, and that any additional functionality be created using a new supplemental node type with a nodegraph implementation.

jstone-lucasfilm commented 2 years ago

@kwokcb I would agree with Doug here, and it seems preferable for <image> to remain the simplest possible primitive, with any additional blending operations being implemented as graph-based nodes containing this primitive.

jstone-lucasfilm commented 2 years ago

I'll close out this issue for now, but it's worthwhile to discuss graph-based mechanisms for handling this functionality in the future.

kwokcb commented 2 years ago

Sorry for the delay in updating this.

It makes sense to keep as simple as possible and make this a new graph / nodedef.

@dbsmythe for your queries: