Mix 2 materials with displacement

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

User avatar
thanulee
Licensed Customer
Posts: 712
Joined: Sat Dec 19, 2015 11:00 pm

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
User avatar
bepeg4d
Octane Guru
Posts: 10371
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

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
User avatar
thanulee
Licensed Customer
Posts: 712
Joined: Sat Dec 19, 2015 11:00 pm

Thanks a lot Bepe :) I ll try it 2morrow and if anything i ll get back at u.
User avatar
thanulee
Licensed Customer
Posts: 712
Joined: Sat Dec 19, 2015 11:00 pm

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
Attachments
bake node
bake node
no bake node
no bake node
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

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?
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
thanulee
Licensed Customer
Posts: 712
Joined: Sat Dec 19, 2015 11:00 pm

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?
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

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
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
thanulee
Licensed Customer
Posts: 712
Joined: Sat Dec 19, 2015 11:00 pm

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?
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

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!
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
thanulee
Licensed Customer
Posts: 712
Joined: Sat Dec 19, 2015 11:00 pm

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

Return to “Maxon Cinema 4D”