Community
Arnold for 3ds Max
Rendering with Arnold in 3ds Max using the MaxtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to define outAlpha connection in materialx

4 REPLIES 4
Reply
Message 1 of 5
joey.skeys
323 Views, 4 Replies

How to define outAlpha connection in materialx

nodes that are defined with output color3 could have an alpha output in maya, e.g MayaFile, how to define outAlpha connection in materialx?

Tags (1)
Labels (1)
4 REPLIES 4
Message 2 of 5
Stephen.Blair
in reply to: joey.skeys

MtoA does not send a MayaFile node to Arnold.

MayaFile is converted to an image node, possibly with other shader nodes (such as color_correction).

file.outAlpha becomes a connection to the "a" channel of the image node output

Your materialx document should use only Arnold nodes.



// Stephen Blair
// Arnold Renderer Support
Message 3 of 5
joey.skeys
in reply to: Stephen.Blair

My bad, MayaFile is not a good example.

let's say, what if I connect the alpha output of AiImage to a float plug. It seems we can only have fixed type output of a specific node and the output of AiImage is color3, what to do if I use the alpha channel(in MaterialX).

Message 4 of 5
Stephen.Blair
in reply to: joey.skeys

If you connect the alpha output of AiImage, then image.a is connected. For example:

standard_surface
{
 name aiStandardSurface1
 base aiImage1.a
 base_color aiImage1
}


image
{
 name aiImage1
 filename "noicon.pic"
 missing_texture_color 0 0 0 1
}


// Stephen Blair
// Arnold Renderer Support
Message 5 of 5
joey.skeys
in reply to: Stephen.Blair

Okay, I see. And then, is there any way to denote such kind connection in materialx? From what I know, output of AiImage could be color4, maybe I should put a rgba_to_float node in between?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report