ocean wave

   2726   10   2
User Avatar
Member
2 posts
Joined: Jan. 2022
Offline
Hi, greetings
I'm trying to make a model just like gif file bellow, making the waves is easy and I have no problem with it but I don't know how to make flat part in gradient way.
I'll be thankful if you help me for making this model.
Edited by moritz-h86 - Jan. 17, 2022 23:06:30

Attachments:
ocean waves.gif (5.3 MB)

User Avatar
Member
2531 posts
Joined: June 2008
Offline
There is a vex function called lerp(). Basically you group half of the area and mix in the displacement points for the group.
Edited by Enivob - Jan. 18, 2022 09:37:30

Attachments:
lerp.gif (270.9 KB)
ap_half-wave_tube.hiplc (185.2 KB)

Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
236 posts
Joined: March 2013
Offline
Or, you can make a simple volume box, and ramp it's density along that axis.
You can plug it into the ocean setup, and it uses it as a mask to mult down the effect.
Very handy way of fading down the waves naturally as it's multing down the spectrums.
I'm not lying, I'm writing fiction with my mouth.
User Avatar
Member
236 posts
Joined: March 2013
Offline
Ooh you may be doing like above, just using the mountain or a noise.
You can make a wrangle that takes the relative bounding box of the axis your water is traveling down,
and use that in a ramp, then you have freedom to adjust the falloff.

Attachments:
lerp_water.JPG (157.9 KB)

I'm not lying, I'm writing fiction with my mouth.
User Avatar
Member
331 posts
Joined: April 2018
Online
Also easily doable without any VEX needed

Edited by eikonoklastes - Jan. 20, 2022 05:32:16
User Avatar
Member
236 posts
Joined: March 2013
Offline
Indeed, well, it's still using VEX 100% inside though isn't it hehehe.
I'm not lying, I'm writing fiction with my mouth.
User Avatar
Member
331 posts
Joined: April 2018
Online
tinyhawkus
Indeed, well, it's still using VEX 100% inside though isn't it hehehe.
Undeniably. But Houdini is ultimately being compiled into machine code, and yet here we are, clicking on screen, like a bunch of animals...
User Avatar
Member
236 posts
Joined: March 2013
Offline
The new suite of attrib SOPs are great, really removes the need to get dirty with VEX.
I'm not lying, I'm writing fiction with my mouth.
User Avatar
Member
2 posts
Joined: Jan. 2022
Offline
eikonoklastes
Also easily doable without any VEX needed

tinyhawkus
Ooh you may be doing like above, just using the mountain or a noise.

You can make a wrangle that takes the relative bounding box of the axis your water is traveling down,
and use that in a ramp, then you have freedom to adjust the falloff.

Thank you for replying, can you please share the script? it's not working for me, I followed your instruction and didn't work, there is properly something wrong with my model.
User Avatar
Member
331 posts
Joined: April 2018
Online
moritz-h86
Thank you for replying, can you please share the script? it's not working for me, I followed your instruction and didn't work, there is properly something wrong with my model.
Sure thing. Here's a scene, attached below.

And if you need to quickly see what was changed in a node, you can always click the Search and Filter button, and choose Parameters with Non-Default Values:
Edited by eikonoklastes - Jan. 24, 2022 01:27:13

Attachments:
Noise Mask.hiplc (199.6 KB)

User Avatar
Member
466 posts
Joined: Aug. 2014
Offline
eikonoklastes
And if you need to quickly see what was changed in a node, you can always click the Search and Filter button, and choose Parameters with Non-Default Values
Thanks! I didn't notice this button. Very useful.
  • Quick Links