Custom AOV per Vertex Color

Custom AOV per Vertex Color

edenexposito
Enthusiast Enthusiast
2,126 Views
10 Replies
Message 1 of 11

Custom AOV per Vertex Color

edenexposito
Enthusiast
Enthusiast

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?

1205-vertex.png

0 Likes
2,127 Views
10 Replies
Replies (10)
Message 2 of 11

Anonymous
Not applicable

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

0 Likes
Message 3 of 11

edenexposito
Enthusiast
Enthusiast

Seems that not work...

I see red AOV all black...

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

1211-red2.png

1210-red.png

0 Likes
Message 4 of 11

Anonymous
Not applicable

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

1212-cpv-aov-setup.jpg

1213-cpv-aov-blue.jpg

1214-cpv-aov-red.jpg

1215-cpv-aov-green.jpg

0 Likes
Message 5 of 11

Anonymous
Not applicable

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

0 Likes
Message 6 of 11

edenexposito
Enthusiast
Enthusiast

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

1216-export.png

0 Likes
Message 7 of 11

peter.horvath6V6K3
Advisor
Advisor

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.

0 Likes
Message 8 of 11

Anonymous
Not applicable

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

0 Likes
Message 9 of 11

edenexposito
Enthusiast
Enthusiast

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.

1226-id.png

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

0 Likes
Message 10 of 11

Anonymous
Not applicable

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

0 Likes
Message 11 of 11

edenexposito
Enthusiast
Enthusiast

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

Thanks for your help!

0 Likes