question

Edward Conry avatar image
Edward Conry asked ·

Shader custom AOV

Hello, Can I make a shader a custom AOV? I have a hair shader that I want to have it's own AOV pass. I've made a custom AOV in the shader settings and in the node under shader I plug in the hair shader but I didn't get any results. I followed this link

https://support.solidangle.com/display/A5AFMUG/Custom+Motion+Vector+AOV+with+Motion+Vector+shader

that's motion vector shader. I was wondering if it's possible with any shader?
shadersaov
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Edward Conry avatar image
Edward Conry answered ·

I got it to work with LPE's. ("C'hair".*) is the key

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Saul Freed avatar image
Saul Freed answered ·

same confusion here... I am trying to create a custom aov with a utility shader Lambert mode on everything in my scene.. it works when u plug an AO shader into the custom AOV.. The utility shader however, returns solid frames on color mode.. can produce normal and all the other modes but color lambert.. no..

am i missing something ... a specific LPE? should i plug the Utility shader through an aiWrite aov?

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Edward Conry avatar image
Edward Conry answered ·

Yeah I wanted to plug in any shader a get RGBA information from the shader. The hair shader works by making a custom AOV and add C'hair.* to an AOV LPE.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

rachid Hadj Abderrahmane avatar image
rachid Hadj Abderrahmane answered ·

if you apply aiStandardSurface to the hair, then you get all AOV working, where is the problem?
can you post a test scene with just a sphere +hair ?

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Edward Conry avatar image
Edward Conry answered ·

Yeah I got it work with the hair shader but what about ai Standard surface custom AOV? That's what we are talking about. @rachid Hadj Abderrahmane

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

rachid Hadj Abderrahmane avatar image
rachid Hadj Abderrahmane answered ·

add a cutom AOV, "RGBA_hair" without quotes
for hair albedo use :C<RS'hair'>A
for hair Indirect use C<RS'hair'>[DSVOB].*
for hair Direct C<RS'hair'>L
for hair itself C<RS'hair'>.*
Unfortunately hair Specular does not work with this LPE's C<RS[^'hair']>.*

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Edward Conry avatar image
Edward Conry answered ·

Yeah I don't know how it worked before or even now. I only got it to work with a hair shader and LPE. When I render the AOV Shader it's a matte or doesn't have shading properties. If you find the answer let me know. @Sylvain Salame

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Sylvain Salame avatar image
Sylvain Salame answered ·

I don't understand how you got it to work. @Edward Conry

I'm using Arnold 5 (3.0.1) with Maya 2018.

Prior to Arnold 5 you just needed to plug any shaders in the custom AOV and it worked! I'm doing the exact same here but it doesn't work, I just get black, it feels related to the LPE system, but I still can't figure it out...

Only works with an aiUtility Lambert/flat but that's not what I want.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.