-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure to connect Float Out plugs to Color In plugs with Cycles shader nodes #5553
Comments
Thanks for the clear repro steps. Looks like this just isn't handled at all in the Cycles backend - we have checks for when the connection source is an |
I think the way we'll want to fix this is to add a variant of |
At the same time as doing this, I think we want to move away from using the MaterialX shaders as the default converters for Arnold networks, and use Arnold shaders instead. |
We do this by registering adaptors with ShaderNetworkAlgo and then letting `addComponentConnectionAdapters()` do all the hard work for us. This also means that we are inserting the adaptors appropriately when exporting Cycles shaders to USD via the SceneWriter. Also replaced the old handling for `color.[rgb]->float` connections with the ShaderNetworkAlgo approach. This reduces code complexity, and also means we reuse the adaptors when one source is connected to multiple destinations. Fixes GafferHQ#5553
We do this by registering adaptors with ShaderNetworkAlgo and then letting `addComponentConnectionAdapters()` do all the hard work for us. This also means that we are inserting the adaptors appropriately when exporting Cycles shaders to USD via the SceneWriter. Also replaced the old handling for `color.[rgb]->float` connections with the ShaderNetworkAlgo approach. This reduces code complexity, and also means we reuse the adaptors when one source is connected to multiple destinations. Fixes GafferHQ#5553
Thank you. Just tested 1.5.0.0 and this works as expected now. |
Thanks for testing! |
Version: Gaffer 1.3.7.0-linux
Third-party tools: Cycles
Third-party modules:
Description
Failure to connect Float Out plug to Color/Vector In plug with Cycles shader node. This happens even if the connection is made to individual [r,g,b] [x,y,z] values.
Also seem to happen when using nodes, but not when defining a Cycles Shader Network as an IECoreScene.ShaderNetwork() attribute via an expression.
It is possible however to connect individual [r,g,b] [x,y,z] values from Color/Vector Out plugs to Float In plugs.
Steps to reproduce
See attached gaffer script:
connection_bug.zip
Debug log
Click to Expand
The text was updated successfully, but these errors were encountered: