Announcement

Collapse
No announcement yet.

Displacement from Ocean texture creates offset on liquid, splashes and Foam

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Displacement from Ocean texture creates offset on liquid, splashes and Foam

    I am working on a boat in stormy water... I have a container with liquid and add a Phoenix ocean texture to get the wave displacements.
    I am not using a Waveforce - my problem is that the displacement adds an offset to my sim so the simple boat geo either intersects or have space between the mesh / particles.
    Here are 2 pictures showing with and without displacement on the container - also some info of my grid and texture settings.


    Attached Files

  • #2
    Hmm when I change the Velocity coherence on the FDOceantexture from 0.5 to 1 it seems to look much better but ofcourse changes my look on the waves alot...

    Comment


    • #3
      Hey,

      You can use the Displacement fade volume option for such cases. In the displacement options of the Phoenix simulator pick the boat as a fade volume. You can find more about how the option works here - https://docs.chaos.com/display/PHX4MAYA/Displacement
      Georgi Zhekov
      Phoenix Product Manager
      Chaos

      Comment


      • #4
        Originally posted by georgi.zhekov View Post
        Hey,

        You can use the Displacement fade volume option for such cases. In the displacement options of the Phoenix simulator pick the boat as a fade volume. You can find more about how the option works here - https://docs.chaos.com/display/PHX4MAYA/Displacement
        Yes I have been playing with that aswell - but for me those settings is for my splashes and Foam... (so they donĀ“t get displaced by the texture when they are in the air..) So I guess I need to find the right Velocity fade setting for that.
        Are there any good way to see what that setting should be.. or is it trial and error...

        But that has nothing to do with my displacement of the liquid.. When I use Velocity coherence on the FDOceantexture lower than 1 I get strange offset - look at my pictures above and you can see that the liquid intersects with the boat on the right side (camera right) and on the left side of the boat there is empty space... If I go from 0.5 to 1 Velocity coherence on the FDOceantexture it looks ok - no space and no intersections. That must be some kind of bug right? Or should I always keep that setting to one ?

        Comment


        • #5
          It's just a coincidence that the velocity coherence doesn't cause the liquid to offset more. In general - the displacement will displace the mesh, so the way to counter this is by suppressing the displacement around the vessel using the vessel as a fade volume and then adjusting the Fade Distance.

          Note that the Splash and Foam that get rendered using a Particle Shader will also get displaced the same way as the mesh and will be affected by the fade volume, just as long as the Simulator is linked into the Liquid Simulator slot of the Particle Shader - this tells the shader to read the displacement of the simulator and apply it to the particles.

          The Vertical Fade, the Fade Above Velocity and the Fade Volume effect on the particles would show up in the viewport preview, so you should be able to preview them even by saving a playblast.

          Cheers!
          Svetlin Nikolov, Ex Phoenix team lead

          Comment

          Working...
          X