Jump to content

Ocean match with flip


bifrost

Recommended Posts

Hey guys! How is it going?

So I have been working on a way to mix and match flip fluids and infinite ocean geo. I thought the biggest problem that I would run into would be matching the displacement. Turns out that process was pretty simple. Instead I got stuck into a very petty issue. So whenever I am meshing my particles, the height doesn't match up. It's either a bit up or down. Any ideas how can I fix this? Or is this just a resolution thing?

Thanks!

Link to comment
Share on other sites

One option is to stitch the flip simulation to the ocean surface at the seams in a post process.

The first thing is make sure you're only keeping the top surface side and deleting away the underside so you don't wind up with overlapping surfaces later. Easiest way to do this is to write out the surface volume along with your flip simulation and sample that volume using your newly created mesh. The underside faces will turn black and you can delete them that way. 

Next you want to create a 0-1 ramp from the center of your flip mesh to the edge so the edge is white and the center of your sim is black. You can use that ramp to blend to the normals and point position of the ocean geo. They will match at the very edge and slowly deviate into the simulation towards the center. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...