question

Lucas Santos avatar image
Lucas Santos asked ·

How can I add a custom AOV that retains shading?

I have a fall off shader (AKA fresnel/ rim light) that I want to be an AOV.

The AOV doesn't render anything but the solid color that I put in. I think it's because this isn't a material, it's just a texture. But actual materials don't work in custom AOVs.

I tried using the texture while also inputting an LPE to drive the lights but they don't mix. Is it even possible to make a material a custom AOV? Because other than LPEs, shadows, and ambient occlusion, it looks like custom AOVs are only good for creating masks

I followed the tutorial below to get the effect I wanted. Take a look if you want

https://area.autodesk.com/tutorials/using-custom-aovs-to-create-mattes/

Below is what I get. Fall off with no shadows.

rendermtoashaderaovaovs
fo.png (28.0 KiB)
1 comment
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.

I want to help you but i need to get cleared about the issue first. is this what I understood that you have a shader of having facing ratio(fersnel), you need that as a costom aov?

Please correct me if i am wrong.

0 Likes 0 · ·
Slava Sych avatar image
Slava Sych answered ·

You need to use aiWriteColor shader
aiWriteColor
to Beauty - connect you shader
to Input - shader, nodes, textures you want use in AOV

4 comments 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-color.png

I tried this and was not able to get anything.

I put the ramp (with the facing ratio) into the beauty and the standard surface into the input, yet nothing shows up in the AOV I made.

I also tried flipping the beauty and input connections just for good measure and nothing.

0 Likes 0 · ·
write-color.png (250.6 KiB)

Now connect WriteColor to surface shader in you aiStandardSurface1SG

https://dl.dropboxusercontent.com/s/tlwe0qmt4axysin/maya_sWRJuPL3Y3.jpg

after, create name in WriteColor, and now you aov add to render settings aov, and can rendering

https://dl.dropboxusercontent.com/s/z3sbysfuxm41h0k/maya_ftrLMCCZPt.jpg

However you can use Passthrough utillity

https://docs.arnoldrenderer.com/display/A5AFMUG/Passthrough

1 Like 1 · ·

Oh! That did it. Thanks so much. The reason it didn't work the first time was because I had the aiStandardSurface1SG node still connected to the aiStandardSurface1 node and was putting the aiWriteColor1 into the AOVs tab of the SG. Now I put the write color into the SGs surface shader.

I'm going to look into this passthrough though. It seems useful to put a bump on ambient occlusion. So thanks for that too.

0 Likes 0 · ·
Show more comments
Girijashankar Senapati avatar image
Girijashankar Senapati answered ·

7a2afee3-0247-4ea6-a532-81ca687657bc.jpegcheck the image if it works for you.


1 comment 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.

Sorry I should have mentioned that I am using the sampler info node's facing ratio, because then I can edit the ramp I have. I'll attach a picture.

Though I tried your process and was oddly not able to crate the same result. I will post that as well.

0 Likes 0 · ·
Lucas Santos avatar image
Lucas Santos answered ·

Hello. Sorry I forgot to mention that. Yes I have a facing ratio on it. And yes I would like it to be a custom aov, since if it's a custom aov, I can merge it in an exr.

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.