How to mix two displacement maps?

Forums: How to mix two displacement maps?
Houdini Integrated Plugin

Moderator: juanjgon

How to mix two displacement maps?

Postby Admin_KeenSWH » Sun Jul 03, 2022 9:41 am

Admin_KeenSWH Sun Jul 03, 2022 9:41 am
Hey magicians, I want to mix grass and rocks materials within one shader based on a vertex float attribute that I got, and those grass/rock materials mix nicely except displacement maps. Is there a way to mix two displacement maps within one shader? I tried using Material Mixer node and Mix Texture node but with no luck. Any help would be much appreciated!

Image

Here's what I tried but it didn't work:
Image

Thanks in advance!
MY CONFIG:
OS: Win 10
Video Card: 2070 RTX
VRam: 8Gb
Geforce Driver: 516.69
OctaneRender Standalone 2021.1.4
OctaneRender Houdini plugin version 2021.1.5.0 (May 18 2022)
Houdini FX Version 19.0.622
Admin_KeenSWH
Licensed Customer
Licensed Customer
 
Posts: 14
Joined: Mon Mar 29, 2021 11:23 am

Re: How to mix two displacement maps?

Postby galleon27 » Sun Jul 03, 2022 4:11 pm

galleon27 Sun Jul 03, 2022 4:11 pm
You can't mix two displacement maps using Displacement node. You need to use Vertex Displacement and Vertex Displacement mixer.

Screenshot 2022-07-03 180959.jpg
Win 10 64bit // GTX 4090 + GTX 3090 // 5900x // 64GB // SideFX Houdini // C4D
User avatar
galleon27
Licensed Customer
Licensed Customer
 
Posts: 240
Joined: Wed Jul 15, 2015 11:55 am
Location: Serbia

Re: How to mix two displacement maps?

Postby Admin_KeenSWH » Sun Jul 03, 2022 7:40 pm

Admin_KeenSWH Sun Jul 03, 2022 7:40 pm
galleon27 wrote:You can't mix two displacement maps using Displacement node. You need to use Vertex Displacement and Vertex Displacement mixer.


Oh this looks good! But can I got a couple of questions.

1. Can I feed my usual grayscale displacement maps into Vertex Displacement node?
2. It looks like I should subdivide my geometry hugely to get result hires enough which loads GPU a lot. Attaching the comparison between vertex displacement vs. usual displacement.

Could you please share a scene so I could check it?
Attachments
Screenshot 2022-07-03 215900.png
MY CONFIG:
OS: Win 10
Video Card: 2070 RTX
VRam: 8Gb
Geforce Driver: 516.69
OctaneRender Standalone 2021.1.4
OctaneRender Houdini plugin version 2021.1.5.0 (May 18 2022)
Houdini FX Version 19.0.622
Admin_KeenSWH
Licensed Customer
Licensed Customer
 
Posts: 14
Joined: Mon Mar 29, 2021 11:23 am

Re: How to mix two displacement maps?

Postby galleon27 » Mon Jul 04, 2022 7:28 am

galleon27 Mon Jul 04, 2022 7:28 am
1. Can I feed my usual grayscale displacement maps into Vertex Displacement node?

You can use displacement maps.

2. It looks like I should subdivide my geometry hugely to get result hires enough which loads GPU a lot. Attaching the comparison between vertex displacement vs. usual displacement.

Just turn on auto-bump and you'll be good. If you need more details, you will have to subdivide the geometry. I suggest to read the manual to learn the differences between the two. https://docs.otoy.com/StandaloneH_STA/S ... cement.htm
Attachments
displacement.zip
(64.44 KiB) Downloaded 68 times
Win 10 64bit // GTX 4090 + GTX 3090 // 5900x // 64GB // SideFX Houdini // C4D
User avatar
galleon27
Licensed Customer
Licensed Customer
 
Posts: 240
Joined: Wed Jul 15, 2015 11:55 am
Location: Serbia

Re: How to mix two displacement maps?

Postby Admin_KeenSWH » Mon Jul 04, 2022 9:36 am

Admin_KeenSWH Mon Jul 04, 2022 9:36 am
Thanks for the response and providing this info.

But for some reason the scene opens with errors. Can you please check screen in the attachment?
p.s. My config is in the signature.
Attachments
Screenshot 2022-07-04 113522.png
MY CONFIG:
OS: Win 10
Video Card: 2070 RTX
VRam: 8Gb
Geforce Driver: 516.69
OctaneRender Standalone 2021.1.4
OctaneRender Houdini plugin version 2021.1.5.0 (May 18 2022)
Houdini FX Version 19.0.622
Admin_KeenSWH
Licensed Customer
Licensed Customer
 
Posts: 14
Joined: Mon Mar 29, 2021 11:23 am

Re: How to mix two displacement maps?

Postby juanjgon » Mon Jul 04, 2022 12:27 pm

juanjgon Mon Jul 04, 2022 12:27 pm
The scene probably comes from an earlier plugin version. Usually, it is safe to ignore these warnings, but some render target settings could be reset to the default values.

Thanks,
-Juanjo
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Re: How to mix two displacement maps?

Postby Admin_KeenSWH » Mon Jul 04, 2022 1:39 pm

Admin_KeenSWH Mon Jul 04, 2022 1:39 pm
juanjgon wrote:The scene probably comes from an earlier plugin version. Usually, it is safe to ignore these warnings, but some render target settings could be reset to the default values.

Thanks,
-Juanjo


Oh I see, ok, thanks for the heads up!
MY CONFIG:
OS: Win 10
Video Card: 2070 RTX
VRam: 8Gb
Geforce Driver: 516.69
OctaneRender Standalone 2021.1.4
OctaneRender Houdini plugin version 2021.1.5.0 (May 18 2022)
Houdini FX Version 19.0.622
Admin_KeenSWH
Licensed Customer
Licensed Customer
 
Posts: 14
Joined: Mon Mar 29, 2021 11:23 am

Re: How to mix two displacement maps?

Postby Admin_KeenSWH » Tue Jul 05, 2022 8:07 am

Admin_KeenSWH Tue Jul 05, 2022 8:07 am
Ok, having downloaded your scene, I did my own tests following your workflow and I still can't understand why it doesn't work for me..

I created Attr. VOP with float attribute cow it has 0 and 1 float values in relevant black/white areas (I double-checked it using visualizers). I plug it to mixing amount and still it doesn't work.. What am I doing wrong?
Attachments
Screenshot 2022-07-05 100706.png
Screenshot 2022-07-05 095538.png
MY CONFIG:
OS: Win 10
Video Card: 2070 RTX
VRam: 8Gb
Geforce Driver: 516.69
OctaneRender Standalone 2021.1.4
OctaneRender Houdini plugin version 2021.1.5.0 (May 18 2022)
Houdini FX Version 19.0.622
Admin_KeenSWH
Licensed Customer
Licensed Customer
 
Posts: 14
Joined: Mon Mar 29, 2021 11:23 am

Re: How to mix two displacement maps?

Postby Admin_KeenSWH » Tue Jul 05, 2022 8:16 am

Admin_KeenSWH Tue Jul 05, 2022 8:16 am
Upd. Ignore - me stupid. I just forgot to add cow to Octane's attribute field on that Grid's geo.
Attachments
Screenshot 2022-07-05 101440.png
MY CONFIG:
OS: Win 10
Video Card: 2070 RTX
VRam: 8Gb
Geforce Driver: 516.69
OctaneRender Standalone 2021.1.4
OctaneRender Houdini plugin version 2021.1.5.0 (May 18 2022)
Houdini FX Version 19.0.622
Admin_KeenSWH
Licensed Customer
Licensed Customer
 
Posts: 14
Joined: Mon Mar 29, 2021 11:23 am

Re: How to mix two displacement maps?

Postby Admin_KeenSWH » Tue Jul 05, 2022 8:36 am

Admin_KeenSWH Tue Jul 05, 2022 8:36 am
Hmm.. the only problem with this approach though is that now I can't seem to make displacement push the geometry outwards - it's very flat looking like a regular bump now.. Can I ask you to check my simple scene in the attachment please?

Maybe I'm somehow misusing the Gradient node attached to Float Vertex Attr?
Attachments
Screenshot 2022-07-05 103131.png
Looks more like a bump :/
Mix_Displacements.zip
(5.77 MiB) Downloaded 65 times
MY CONFIG:
OS: Win 10
Video Card: 2070 RTX
VRam: 8Gb
Geforce Driver: 516.69
OctaneRender Standalone 2021.1.4
OctaneRender Houdini plugin version 2021.1.5.0 (May 18 2022)
Houdini FX Version 19.0.622
Admin_KeenSWH
Licensed Customer
Licensed Customer
 
Posts: 14
Joined: Mon Mar 29, 2021 11:23 am
Next

Return to Houdini


Who is online

Users browsing this forum: No registered users and 13 guests

Tue Apr 16, 2024 7:17 pm [ UTC ]
cron