Page 1 of 2

Mix 2 materials with displacement

Posted: Wed Jan 24, 2018 4:17 am
by thanulee
Hi, i wanna do some effects like mixing 2 materials, 1 with displacement and one without but idk how to do it since when i use a mix material the only workable displacement is in the mix slot. Any workarounds? thanks

Re: Mix 2 materials with displacement

Posted: Wed Jan 24, 2018 9:59 am
by bepeg4d
Hi thanulee,
since displacement is evaluated before the shaders, you need to apply the same texture mix to displacement map, then use a baking texture node (from v 3.07-R2) to obtain a single displacement texture already masked, and plug it in the displacement node connected with the mix material.
ciao beppe

Re: Mix 2 materials with displacement

Posted: Fri Jan 26, 2018 10:46 pm
by thanulee
Thanks a lot Bepe :) I ll try it 2morrow and if anything i ll get back at u.

Re: Mix 2 materials with displacement

Posted: Sun Jan 28, 2018 5:17 pm
by thanulee
I think i did it proper but it seems that baking texture is giving vertex map some artifacts. Also its very heavy and crashes a lot. Im using latest stable here.
Here is scene: https://www.dropbox.com/s/l17b3mjfrvgdt ... e.c4d?dl=0
Thoughts?
Ty

Re: Mix 2 materials with displacement

Posted: Sun Jan 28, 2018 10:32 pm
by aoktar
You can't use vertexmap in displacement. And keep away to use c4d shaders as you can. Prefer octane things if you crashes. And what's crashes you say?

Re: Mix 2 materials with displacement

Posted: Sun Jan 28, 2018 10:43 pm
by thanulee
In general this scene crashes. Maybe is the vertex map before the displacement as u said.
So whats the way of mixing materials via vertex maps when 1 material has displacement and the other doesnt? ty

btw, vertex map through bake node works in displacement, but i have those artifacts as u see from the baking node. Is this a bug?

Re: Mix 2 materials with displacement

Posted: Sun Jan 28, 2018 10:56 pm
by aoktar
Can i see bugreports or somethings else about crashes?
BUG is something that doesn't work as promised. Vertexmap is a hacked way which is emulated by plugin and requires uvset3. And octane displacement is not supporting uvset2/uvset3. yw

Re: Mix 2 materials with displacement

Posted: Sun Jan 28, 2018 11:07 pm
by thanulee
Open the scene and see thats why i attached it. Try play with vertex map in displacement. It displaces the object but it has artifacts due to baking texture node. And as u will play u will experience crashes.

If u forget this setup though, I ask again: how can i mix 2 materials one with displacement and one without?

Re: Mix 2 materials with displacement

Posted: Sun Jan 28, 2018 11:15 pm
by aoktar
thanulee wrote:Open the scene and see thats why i attached it. Try play with vertex map in displacement. It displaces the object but it has artifacts due to baking texture node. And as u will play u will experience crashes.

If u forget this setup though, I ask again: how can i mix 2 materials one with displacement and one without?
Again: I've answered. You can't use vertexmap in displacement. It's not a matter of baking texture node. You can use baking texture to use octane nodes in displacement, but not vertexmaps. Pls read again my explanation. Also i couldn't get any crashes yet. GL!

Re: Mix 2 materials with displacement

Posted: Sun Jan 28, 2018 11:20 pm
by thanulee
I read it yes ok! But u dont answer to what i ask and to what this thread is about:

How to mix 2 materials one with displacement and one without?

Thats only thing i want to know. I wanted to do this mix with vertex maps and i never intended to use vertex map in displacement. I did it cause read what bepe told me.