Community
Arnold General Rendering Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to define a material with both surface and displace shader in MaterialX

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
joey.skeys
199 Views, 2 Replies

How to define a material with both surface and displace shader in MaterialX

Material is defined within a shaderref clause, and in all the examples I can find is to define a surface shader shaderref in material section. Question is how to define a material contains both surface shader and displacement shader? Just put a displacement shaderref below the surface shader?

Labels (2)
2 REPLIES 2
Message 2 of 3
Stephen.Blair
in reply to: joey.skeys

Use the shaderref type to specify that the shader is a displacement shader:

<shaderref name="simple_disp" node="noise" type="displacementshader">


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

place a noise directly in shaderref directly is working, but in maya there is usually a MayaNormalDisplacement node, I've tried to use this node as displacementshader type shaderref, connecting with a nodegraph, didn't work out. Do arnold support this kind connection or there mightbe something wrong in my mtlx document?

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

Post to forums  

Autodesk Design & Make Report