Chaos Corona Forum

Chaos Corona for Cinema 4D => [C4D] I need help! => Topic started by: hankusp on 2023-10-13, 21:28:27

Title: ID mask or RGB mask for Corona Hair
Post by: hankusp on 2023-10-13, 21:28:27
Hi
When I render an object with C4D hair and Corona Hair material aplied I do not have hairs in my RGB mask (connected to either Material ID of Hair material or Object ID). I do not also have hairs in my ID maps. I just have "naked" object, without the hair object in my masks.
Is therea  way to make it working in masks?
Title: Re: ID mask or RGB mask for Corona Hair
Post by: hankusp on 2023-10-14, 08:08:33
Anybody could help me? There is no way to do that? How to mask hair object in Photoshop for postproduction then?
Title: Re: ID mask or RGB mask for Corona Hair
Post by: jojorender on 2023-10-15, 05:10:23
Is your mask comp tag on the hair object or the geo?

Title: Re: ID mask or RGB mask for Corona Hair
Post by: hankusp on 2023-10-15, 20:05:05
I've tried both options. I add it to the whole herarchy too (Hair object + geometry together). Nothing works for me...
Title: Re: ID mask or RGB mask for Corona Hair
Post by: Beanzvision on 2023-10-16, 06:48:58
Hi there, can you please share your multipass settings?
Title: Re: ID mask or RGB mask for Corona Hair
Post by: hankusp on 2023-10-16, 09:35:10
yes
Title: Re: ID mask or RGB mask for Corona Hair
Post by: Beanzvision on 2023-10-16, 10:16:24
Thanks, and can you share an image from the VFB multipass?
Title: Re: ID mask or RGB mask for Corona Hair
Post by: hankusp on 2023-10-16, 10:33:04
yes, sure. Thank you for your help.
Title: Re: ID mask or RGB mask for Corona Hair
Post by: jojorender on 2023-10-17, 21:54:54
Not sure I understand what exactly you are trying do...
Masking hairs like this? If so, maybe attached c4d file can help.
Title: Re: ID mask or RGB mask for Corona Hair
Post by: hankusp on 2023-10-18, 09:34:10
Hi
Jojorender - thank you for your help. It looks very strange, but the problem is in my Hair object. I don't know where. If I replace my Hair object by yours (the rest ofmy scene remains unchanged) masking works properly... Well - I don't know what can be wrong in my hair definition
Title: Re: ID mask or RGB mask for Corona Hair
Post by: Beanzvision on 2023-10-18, 10:41:36
Can you share your scene with us?
Title: Re: ID mask or RGB mask for Corona Hair
Post by: burnin on 2023-10-18, 10:51:52
Also, if you changed versions (C4d or corona) during 'work-on-project', move (copy/paste) all your elements to a new scene file.
Oftentimes this helps.
Title: Re: ID mask or RGB mask for Corona Hair
Post by: hankusp on 2023-10-18, 13:44:27
Scene attached.
I did something wrong with hair definition. I don't know where... If I make new hair definition RGB masking works properly.
I'm total newbie to C4D Hair
Title: Re: ID mask or RGB mask for Corona Hair
Post by: Beanzvision on 2023-10-18, 14:57:14
It seems the problem was with the hair material. Not sure what exactly. I created a new one and copied the settings etc. Now it is working.

(https://forum.corona-renderer.com/index.php?action=dlattach;topic=41146.0;attach=189478;image)
Title: Re: ID mask or RGB mask for Corona Hair
Post by: hankusp on 2023-10-19, 18:27:43
-
Title: Re: ID mask or RGB mask for Corona Hair
Post by: hankusp on 2023-10-19, 18:50:33
OK, I've finaly found the bug! :)
The problem is somewhere in Hair materials from Default Corona material library. When I create my own Hair Material and aply all the settings from material from library masking works perfectly well. I can have material ID mask and Object ID mask.
Maybe it makes sense to report this problem with hair library materials to Corona Development Team?
Title: Re: ID mask or RGB mask for Corona Hair
Post by: Beanzvision on 2023-10-20, 10:31:44
I can also confirm the issue is with the hair presets. Thanks for the heads up, I will report it.
(Internal ID=1235312935)