Alpha Gain parameter not working with Arnold

Alpha Gain parameter not working with Arnold

litote
Advocate Advocate
4,270 Views
17 Replies
Message 1 of 18

Alpha Gain parameter not working with Arnold

litote
Advocate
Advocate

I am rendering sprite particles in Arnold and am trying to adjust the alpha of the particle image I used to make the sprite more transparent. In Hardware Render 2.0 you can do this by adding the "alpha map" (I am using a PNG) to the Transparency field an adjusting Color Balance-Alpha Gain parameter that is below it.

 

But If I use an aiStandard material for rendering in Arnold and put the alpha map in the Refraction-Opacity parameter to create the alpha transparency, I find the Alpha Gain has no effect on adjusting it as it does with Maya Hardware 2.0 renderer.

 

Is there a way?

0 Likes
Accepted solutions (2)
4,271 Views
17 Replies
Replies (17)
Message 2 of 18

mspeer
Consultant
Consultant

Hi!

 

I am a bit confused by your explanation, but for Opacity in Arnold in general:

 

1. Shape node, Arnold tab disable Opaque

2. In Arnold material use Geometry -> Opacity

0 Likes
Message 3 of 18

litote
Advocate
Advocate
Geometry -> Opacity? Do you mean Refraction-Opacity?
0 Likes
Message 4 of 18

mspeer
Consultant
Consultant

Hi!

 

No. Tab Geometry, then Attribute Opacity.

0 Likes
Message 5 of 18

litote
Advocate
Advocate
Tab Geometry? Where exactly?
0 Likes
Message 6 of 18

mspeer
Consultant
Consultant

Hi!

 

In Arnold material like aiStandardSurface.

0 Likes
Message 7 of 18

litote
Advocate
Advocate

I see no "Geometry" tab in the aiShader. I see only rollouts... Matte, Diffuse, Specular etc. The only Opacity parameter I see is in the Refraction rollout. Where are you seeing it exactly?

0 Likes
Message 8 of 18

mspeer
Consultant
Consultant

Hi!

 

It looks like you are still using Arnold 4 which doesn't have aiStandardSurface material.

So Opacity is to be found at an other place. (i can't test this anymore)

 

Please read the Arnold for Maya User Guide for more details.

0 Likes
Message 9 of 18

litote
Advocate
Advocate

I upgraded to Arnold 5. The same control ha no effect either.

0 Likes
Message 10 of 18

mspeer
Consultant
Consultant

Hi!

Please upload the scene-file + texture(s) for particles.

0 Likes
Message 11 of 18

litote
Advocate
Advocate

Hello,

 

I have attached the scene as a zip file. It includes the texture file.

 

The Color Balance-Alpha Gain and Alpha Offset attributes in the Geometry-Opacity parameters where I added the alpha map (click on arrow next to Opacity slider in the aiStandardSurface shader tab) have no effect. They did work with Maya's Mental Ray and Hardware 2.0 renderers, but not for the aiStandardSurface shader in Arnold 5.0.0.2 (MtoA 2.0.0.1).

0 Likes
Message 12 of 18

mspeer
Consultant
Consultant

Hi!

 

Alpha Gain only affects Alpha Out, but you are using Color Out.

Check in Node Editor or Hypershade.

Message 13 of 18

litote
Advocate
Advocate

Hello,

 

What connection do I need to alter in the node graph? I have attached the screenshot of the current graph.

 

Thanks

0 Likes
Message 14 of 18

mspeer
Consultant
Consultant

Hi!

Out Color+ ----------->------------ +Opacity

0 Likes
Message 15 of 18

litote
Advocate
Advocate

Did you look at the image of the node setup I attached? Is it correct? I have the map I added to the Geometry-Opacity field linked from Out Color to Opacity but the Alpha Offset has no affect.

0 Likes
Message 16 of 18

Stephen.Blair
Community Manager
Community Manager
Accepted solution

Alpha Gain and Alpha Offset apply to the alpha value output by the MayaFile node.

 

alpha_gain.png



// Stephen Blair
// Arnold Renderer Support
Message 17 of 18

mspeer
Consultant
Consultant
Accepted solution

Hi!

 

"from Out Color to Opacity but the Alpha Offset has no affect"

 

Correct, Alpha Offset has no effect on Out Color.

Alpha Offset has only effect on Out Alpha.

 

So use Out Alpha.

Message 18 of 18

litote
Advocate
Advocate

Thanks for taking the time to post this screenshot Stephen. I couldn't get the output to connect to the Opacity as I didn't realize you had to twirl it open and connect to the RG and B. Presumably you use the Alpha Gain in the Color Balance rollout to adjust the alpha?

0 Likes