question

Bardur Mikladal avatar image
Bardur Mikladal asked ·

Cryptomatte AOV- Layer Shader?

Good day

Is there a way to get a matte/cryptomatte of a layer shader?
To aid me in post production, i would like be able to select my "Wireframe" mask - which i use in a layered shader. As you can see in the attached image.

What would be the best way to achieve some kind of easy way to extract a matte of the wire, in the AOVs - without having to do two render passes. Is it somehow possible to achieve with cryptomatte material AOV? (See example)

Thanks :)

aovcryptomattemaxtoalayermattes
layer-shader.jpg (1009.1 KiB)
crypto.png (89.3 KiB)
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.

Mads Drøschler avatar image
Mads Drøschler answered ·

If you for some reason want to seed different id's inject some kind of driver.
I use Object ID here, but you can also generate your own ids in DCM and you can also sort ids on wirecolor.

You can do the same thing for the actual wires. create sets like you want.

I setup an AOV write called "go" and connect it to the AOV panel, then call "go" in a custom AOV.

Note that your first id cant be ObjID 1, it has to be 2, as 1 is used for background, that will cause all items with id to be invisible, or non pickable, since id 1 is used for background as well.
So in this case the ids for the spheres are 2,3 and 4.


aaaaaa.png (448.6 KiB)
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.

Thank you for both of the replies/methods.

This one - using a custom AOV was the answer i was looking for.
What i did is feed the same Arnold Utility wire frame, which i use on my shader - into a "AOV Write RGB" and just plugged the Layer Shader into the Passthrough.

And doing the rest you said - by setting up a custom AOV using the AOV Write RGB.
Boom! a Wireframe AOV :D
This will give me that extra post-production option i was looking for :D

Thanks again

1 Like 1 · ·
itworks.png (448.4 KiB)
Mads Drøschler avatar image
Mads Drøschler answered ·

You can use wireframe OSL shader and set a uv modifier to face.
Stick it to some practical AOV channel. I picked Emission here.



zzz.png (284.3 KiB)
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.