Page 1 of 1

Mix Displacement in mix material

Posted: Sat Jun 06, 2015 12:16 pm
by thomastraum
Hey,

I am not sure how to mix displacement materials, here is a screen of my shader: https://www.dropbox.com/s/wih48f5cq89zt ... 1.PNG?dl=0
Really basic, just trying to mix two displacements (grass and rock) together, all with image textures. Do they need to be 32 bit?

Its been discussed here but the answer from Aoktar is unclear to me. http://render.otoy.com/forum/viewtopic. ... splacement

Many thanks for any help,
Thomas

Re: Mix Displacement in mix material

Posted: Sat Jun 06, 2015 1:11 pm
by aoktar
That's correct input pin for displacement. But displacement don't support anything else single image texture input. That's why doesn't works.
Solution1: Use a C4D's layer shader with some mixing of images and connect layer it to displacement
Solution2: Use just a imagetexture

Re: Mix Displacement in mix material

Posted: Sun Jun 07, 2015 3:56 pm
by thomastraum
HI Aoktar,

thanks for the clarification. Is this a limitation of the plugin or also present in Octane standalone? For example when working on landscapes you might want to mix two displacement maps which are both tiled using an UV transform together with an alpha map defining where to put the grass and where the put the rocks (which is not tiled). We wanted to use Octane on this project but cant now, because we can't mix them as explained.

Thanks,
Thomas

Re: Mix Displacement in mix material

Posted: Mon Jun 08, 2015 9:54 pm
by aoktar
thomastraum wrote:HI Aoktar,

thanks for the clarification. Is this a limitation of the plugin or also present in Octane standalone? For example when working on landscapes you might want to mix two displacement maps which are both tiled using an UV transform together with an alpha map defining where to put the grass and where the put the rocks (which is not tiled). We wanted to use Octane on this project but cant now, because we can't mix them as explained.

Thanks,
Thomas
Displacement is very limited on Renderer. But also can be some problems with rendering of C4D layer shader. On my tests, i can see that can't be rendered well on some setups. This is a limitation on C4D sdk with my method.

Re: Mix Displacement in mix material

Posted: Mon Mar 07, 2016 7:25 pm
by aggiechase37
Got the solution.

Bodypaint to define where you want which texture to go. From bodypaint, file and save as texture to psd. From here go into Photoshop. You'll use the original psd as the mix amount, and make a separate version of the psd. Here you will use the black and white map to make a mask, where the white is replaced by your displacement image, and the black corresponds a black mask. Take this new image and use it as the texture in the displacement node, that plugs into the displacement slot on the mix material node.

Re: Mix Displacement in mix material

Posted: Sat Aug 17, 2019 5:45 pm
by jackief
Hello, I am having this same problem now 4 years later. I notice that using C4D layer shader does not work on final output but does work in live viewer. That being said is my only option for displacement an image texture still? Thanks! Love the plugin.

Re: Mix Displacement in mix material

Posted: Sat Aug 17, 2019 6:35 pm
by aoktar
You can use baking Texture node for old versions. With 2019.1 you don't need extra tricks. Displacement will accept any nodes.

Re: Mix Displacement in mix material

Posted: Sun Aug 18, 2019 4:27 pm
by jackief
aoktar wrote:You can use baking Texture node for old versions. With 2019.1 you don't need extra tricks. Displacement will accept any nodes.
Aoktar, Thanks for the reply! The amount of involvement you have in the forums is amazing, that is real dedication.

I found a solution for that works for versions older than 2019. You can use the mix texture node, then plug it into a baking texture node, then plug that into the displacement and it will work. (credit for this fix goes to Lester Banks)

Hope this can help someone in the future.