Shader custom AOV

Shader custom AOV

teddude75
Collaborator Collaborator
3,877 Views
8 Replies
Message 1 of 9

Shader custom AOV

teddude75
Collaborator
Collaborator

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?
0 Likes
Accepted solutions (1)
3,878 Views
8 Replies
Replies (8)
Message 2 of 9

teddude75
Collaborator
Collaborator
Accepted solution

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

0 Likes
Message 3 of 9

Anonymous
Not applicable

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.

0 Likes
Message 4 of 9

teddude75
Collaborator
Collaborator

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

0 Likes
Message 5 of 9

Anonymous
Not applicable

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']>.*

0 Likes
Message 6 of 9

teddude75
Collaborator
Collaborator

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

0 Likes
Message 7 of 9

Anonymous
Not applicable

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 ?

0 Likes
Message 8 of 9

teddude75
Collaborator
Collaborator

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.

0 Likes
Message 9 of 9

sulkybunny
Enthusiast
Enthusiast

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?

0 Likes