question

Eden Exposito avatar image
Eden Exposito asked ·

Custom AOV per Vertex Color

Hello,

I want to create a custom AOV per Vertex Color, but I don't know if this is possible by now...

In next screenshot shield colors: red, green and blue are assigned by Vertex Color tag. It would be great If It's possible to create a custom AOV by color. By now I can add a new material by selection tag and use cryptomatte, but If I want to change something I need change (or reassign) these new materials.

With AOV per Vertex Color all will be cleaner...

Anyone know a better option?

shadersaov
vertex.png (522.8 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.

Eden Exposito avatar image
Eden Exposito answered ·

Finally I solve using multiple vertex color tags (RGB) per faces selection and aov_write_rgb.

Thanks for your help!

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 ·

In this case why don't you just use per face assignment !
For each selection assign a flat Shader with appropriate color
Llike flat shader with red color connected to aov_write_ rgb an so on..you end up with 03 separated color, I did a test and all work fine, except the beauty ( you have to render it separately)

here is a test scene separatedcolor.zip


separatedcolor.zip (181.9 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.

Eden Exposito avatar image
Eden Exposito answered ·

Thanks for your responses

Rachid, you use 3 vertex color tag, I need use only one because when I try to use vertex map in Substance Painter to generate ID map I only get info stored in first vertex map tag.

With Peter solution I can use vertex color in shader, the problem now is how to isolate every color to generate a clean mask and then assign it to AOV (this is not problem)

You can see a better explanation in this threat https://answers.arnoldrenderer.com/questions/4276/isolate-color-to-mask.html

Thanks


id.png (44.8 KiB)
id.png (44.8 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.

rachid Hadj Abderrahmane avatar image
rachid Hadj Abderrahmane answered ·

Here is it
cpv.zip
But I'm not using aov_write_rgb


cpv.zip (136.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.

Peter Horvath avatar image
Peter Horvath answered ·

The Vertex Color tag is supported as well, just create a Vertex Map shader, drag & drop the Vertex Color Tag and connect it to an aov_write_rgb shader.

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.

Eden Exposito avatar image
Eden Exposito answered ·

Thanks for your response,

Seems that "Export vertex color" is not available in C4toA and due that (I think) that C4D is not passing that info to Arnold...

Vertex Color seems to be a new feature in C4D R19 and is not the same tag that "Vertex Map", maybe a developer like @Peter Horvath can give us more info about that..


export.png (353.9 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.

rachid Hadj Abderrahmane avatar image
rachid Hadj Abderrahmane answered ·

Forgot to mention that you have to check "Export vertex Color"

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 ·

Try to replicate this setup in c4D, it should work, arnold is the same.


cpv-aov-setup.jpg (253.3 KiB)
cpv-aov-blue.jpg (47.6 KiB)
cpv-aov-red.jpg (38.2 KiB)
cpv-aov-green.jpg (44.8 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.

Eden Exposito avatar image
Eden Exposito answered ·

Seems that not work...

I see red AOV all black...

Colors are applied to object by "Vertex Color" tag...


vertex.png (522.8 KiB)
red.png (166.4 KiB)
red2.png (58.4 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.

rachid Hadj Abderrahmane avatar image
rachid Hadj Abderrahmane answered ·

Try this
Create 03 custom avo, name them : red, green, blue
Create 03 userDataColor name them : red, green , blue
connect each userDataColor to the corresponding custom aov (userDataColor red to custom avov red )
add your cryptomatte aov
Hope this help

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.