Page 1 of 1

Conceal Layer option - Ornatrix work around

PostPosted: Wed Mar 06, 2024 12:40 am
by neonZorglub
Conceal Layer option (from version 2023.1.2 - 10.14 and 2024.1 Alpha3 - 15.04 )

A special option 'Conceal Layer' has been added to all Octane materials using a Material Layer.

The main purpose is to provide a work around to a display issue in 3dsMax viewport, when using Ornatrix hair objects.

Ornatrix display the hair using the assigned material, while also displaying selection areas, custom elements (rgb painted channels, etc) and can blend those elements with the Overlay Opacity parameter.

When the assigned material uses multi materials, this display is incorrect.

ConcealLayer_1_disabled.png

ConcealLayer_2_enabled.png


Most Octane materials have a Material Layer slot, that is a sub material.
The new option 'Conceal Layer' will hide this sub material from 3dsMax requests and make the material behave like a material with no sub materials.
This fixes the Ornatrix display issue, and still allows to use Material layers.

The drawback is that will hide the Material Layer from the Slate material editor.
Also, with the Compact material editor, the Material Layer is still accessible, but when opening an existing layer, the parent material name will be incorrect.
So it is preferable to disable 'Conceal Layer' when editing materials.


Sample:
ornax_Octane_mtl_mx20.zip
(640.41 KiB) Downloaded 19 times

-Load ornax_Octane_mtl_mx20.max
-Note that the hair are displayed in the 3dsMax viewport using the 'color_squares_mtl' Octane Diffuse material

-Select the 'Fur Ball' node
-Select the Ox Edit Guides modifier
-Set Guide Channels / Current Channel to 'Vertex(0): colR'

-Note that the painted hair colors are now displayed in the 3dsMax Viewport (blended with 'color_squares_mtl').

-Adjust the 'Overlay Opacity' to see more or less of 'color_squares_mtl' and custom elements (painted hair colors)
-Disable / Enable the Conceal Layer option of 'color_squares_mtl'.
Note that when Conceal is enabled, the display shows both the hair custom elements and the octane material colors (but with a different mapping as when rendered with Octane),
and when disabled, the display shows only the octane material colors, correctly, as it will be renderer with Octane.


ConcealLayer_3_disabled_selection.png

ConcealLayer_4_enabled_selection.png

ConcealLayer_5_disabled_selection_paintColors.png

ConcealLayer_6_enabled_selection_paintColors.png



Reference:
ornax_arnold_blendMtl_Bug_mx20.zip
(605.23 KiB) Downloaded 19 times

This sample, ornax_arnold_blendMtl_Bug_mx20.max, not using Octane Render or materials illustrate that the issue do not comes from Octane:

Reproductioni steps:

-Load ornax_arnold_blendMtl_Bug_mx20.max
-Note that the hairs are displayed in the viewport using the blue and yellow 'wave_mtl'

-Select the 'Fur Ball' node
-Select the Ox Edit Guides modifier
-Set Guide Channels / Current Channel to 'Vertex(0): colR'

-Note that the painted hair colors are now displayed in the 3dsMax Viewport (blended with 'wave_mtl').

-Open the Compact material editor
-Note that the currently assigned material ('wave_mtl') is a simple 'Physical Material'
-Assign the second material ('blend_mtl') to the Fur ball

-Note that the viewport do not show the hair vertex colors anymore.

Reason:
The 'blend_mtl' has sub materials. (and note that 'wave_mtl' don't have sub material)
When a material containing sub materials is applied to the hair object, the resulting viewport display doesn't seems to use the 'Overlay Opacity' anymore.
(it behaves like 'wave_mtl' with 'Overlay Opacity' set to 0)

Re: Conceal Layer option - Ornatrix work around

PostPosted: Sat Mar 09, 2024 8:09 am
by andrey.krivulya
Hey @neonZorglub

Thank you very much!

Will test it and let you know soon.

Re: Conceal Layer option - Ornatrix work around

PostPosted: Mon Mar 11, 2024 8:34 am
by andrey.krivulya
Fixed! Thank you very much!

I recorded a small tutorial =)



Thank you and have a great day
Best regards,
Andrew.

Re: Conceal Layer option - Ornatrix work around

PostPosted: Mon Mar 11, 2024 1:04 pm
by HHbomb
Thanks andrey.

Re: Conceal Layer option - Ornatrix work around

PostPosted: Wed Mar 13, 2024 10:59 am
by remKa
Thanks NeonZorglub for your hard work :)

It would be nice though if someone in your team could do videos like Andrey did (thanks Andrey !).

Re: Conceal Layer option - Ornatrix work around

PostPosted: Tue Mar 19, 2024 12:42 am
by neonZorglub
remKa wrote:Thanks NeonZorglub for your hard work :)

It would be nice though if someone in your team could do videos like Andrey did (thanks Andrey !).


Glad to see that this feature can be useful !
Yes, we usually do videos for this kind of things, but this was kind of last minute update before release, and Andrew was very fast !
Thanks Andrew !