Ocean Foam

   3140   2   0
User Avatar
Member
2 posts
Joined: Oct. 2018
Offline
Hi All,

Beginner here. I have a scene here with an infinite ocean set up and I want to add foam. I want it to emit along the camera movement, so I set region type to camera. However, it seems like the foam would not generate if the camera is too close or at too low of an angle. I've messed around with Z clipping but doesn't seem to have any effects. Does anyone have any idea?

Attachments:
ocean_foam.hipnc (1.4 MB)

User Avatar
Member
2 posts
Joined: Oct. 2018
Offline
For anyone that's having similar issues, Andrea from ODforce has replied with a solution:

Original reply: https://forums.odforce.net/topic/43110-ocean-foam-camera-emit-h175/?tab=comments#comment-204341 [forums.odforce.net]

“The issue is inside the oceanfoam node. In particular how is calculating the density of the foam. In a wrangle (calc_camera_density) is calculated an attribute called @density. If this attribute is zero, also the foam generated in the following nodes will be zero.

So why the density is zero? Without bothering you will all the mathematical operations… everything is because when you have your camera really low in ocean there are some ”degenerated“ polygons generated internally that have an area of 0.



To fix this, just put a clean node inside the ocean foam tool, after ”clip at near“. See the hip file I have attached.”
Edited by untitledswitch - Aug. 2, 2019 16:26:35

Attachments:
ocean_foam_fix.hipnc (1.6 MB)

User Avatar
Member
4 posts
Joined: Feb. 2016
Offline
Thank you for sharing the solution - This fixed the same problem for me in Houdini 19.5
  • Quick Links