Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

CREST - Open Source Unity Ocean Renderer

Discussion in 'General Discussion' started by JamesArndt, Aug 30, 2018.

  1. Mauri

    Mauri

    Joined:
    Dec 9, 2010
    Posts:
    1,859
  2. FirstTimeCreator

    FirstTimeCreator

    Joined:
    Sep 28, 2016
    Posts:
    739
    Yes but i dont want a reflection, I want the surface of the mesh lit via the shader with both point and spot lights.

    It should be possible for them to implement this because the ocean surface is physical with a material and surface shader.

    Using a reflection isnt good enough nor is it realistic enough. I want the ocean to be lit by things such as a light house light as well as lights on the boats such as headlamps and lighting around the boats exterior.

    I'm going to post something pretty soon that is going to blow your mind ;).

    Within the next few days. What I will post will be one of the coolest things you have seen using this asset.
     
  3. FirstTimeCreator

    FirstTimeCreator

    Joined:
    Sep 28, 2016
    Posts:
    739
    It's a shame this wasn't made with shader graph or amplify - then I would probably be able to add the lighting in myself.

    Unfortunately my skill with editing shaders manually isn't up to par for a task like this with a shader this complex.

    Eh Im going to see if I can dig into their surface shader and see what I can come up with. Honestly it shouldn't be to difficult to implement basic light support for point lights on the foam as well as the surface.

    Honestly not sure why they didn't think of this when they made the shader.
     
    Last edited: May 15, 2019
  4. FirstTimeCreator

    FirstTimeCreator

    Joined:
    Sep 28, 2016
    Posts:
    739
    Well I now know for a fact it is possible, I have it working with lights hitting the surface by modifying the shader, now the only issue is its only rendering where the light is hitting the surface.

    This is probably going to take me abit but by golly, Im going to figure it out.
     
  5. FirstTimeCreator

    FirstTimeCreator

    Joined:
    Sep 28, 2016
    Posts:
    739
    Well... shucks.

    This ocean system is using a Frag/Vert shader. So I am doing some research into how to add a lighting model to it.

    https://www.alanzucconi.com/2015/07/01/vertex-and-fragment-shaders-in-unity3d/
     
    Vincent13122 likes this.
  6. blogsabout

    blogsabout

    Joined:
    Aug 20, 2014
    Posts:
    48
    Have anyone experienced that your ocean turns pink when opening the file after it has been closed down?
    It was looking so gorgeous and I can see the settings are the same and enabled...but now pink?
     
  7. JohnRidgway

    JohnRidgway

    Joined:
    Aug 29, 2019
    Posts:
    1
    Does anyone know how I can switch out custom OceanWaveSpectrums on the fly while it's running, no matter what I do I can't seem to find the right context to alter the _spectrum value during runtime in the Gerstner script.
     
  8. herolang

    herolang

    Joined:
    Mar 25, 2015
    Posts:
    3
    tks to author,its great for my study.
     
  9. mcyber4

    mcyber4

    Joined:
    Oct 24, 2019
    Posts:
    14
    Great! But why is the build looking different than in the editor? What did I forget? Thanks
     
  10. Rayeloy

    Rayeloy

    Joined:
    Feb 12, 2017
    Posts:
    28
    Hi, I'm using this incredible asset, but I need the player to float on the sea waves realistically. To do this, I know I could just add a SimpleFloatingObject and a rigidbody, but I'm using my own custom character controller, physics and collisions, so I wanted to get the current water height at the player position to move the character to that y position. I don't need x and z displacement. Does anyone know where can I get this water height from?
     
  11. mcyber4

    mcyber4

    Joined:
    Oct 24, 2019
    Posts:
    14
    How to view definitions etc. in visual studio?
     
  12. vahag_im

    vahag_im

    Joined:
    Nov 10, 2017
    Posts:
    12
    Hi there.

    We're going to use this awesome asset in our project, but we've faces with an issue. Seems lifetime of the boat tail foam in general is the same as the ocean waves'. Have anyone tried to create longer tail waves (e.g. for tankers, cargos).

    Thanks in advance.
     
  13. mcyber4

    mcyber4

    Joined:
    Oct 24, 2019
    Posts:
    14
    With Vulkan the underwater view is not always correct. Thanks for a fix.
    How to add the ocean material to a mesh?
    Thanks
     
    Last edited: Dec 3, 2019
    JamesArndt likes this.
  14. OP3NGL

    OP3NGL

    Joined:
    Dec 10, 2013
    Posts:
    260
    i got 2 question...
    1. will this work with oculus quest?
    2. how do i make a tidal/tsunami wave since u can make a vacumn funnel shape?
     
  15. Harekelas

    Harekelas

    Joined:
    Feb 3, 2015
    Posts:
    824
    Hi, I just started using Crest with legacy render pipeline (meaning no scriptable render pipelines) in Unity 2019.3.2f1
    And I got some questions:
    1. The underwater camera doesn't seem to work correctly. I've used the Ocean-Underwater material for the ocean renderer, and added the underwater curtain geom gameobject and the underwater meniscus gameobject under my main camera:
    upload_2020-7-6_15-2-46.png

    But there is no underwater effect when camera gets under the water surface:
    upload_2020-7-6_15-3-30.png

    And the Ocean_UnderwaterCurtain material is pink:
    upload_2020-7-6_15-3-57.png

    This issue will go away if I manually click the Compile shader with debug info(D3D11) in editor, but I can't let players do that at runtime, so really need to know how to fix it.

    2. I noticed the water is not interactive with directional light, when I rotate the light to facing upwards or shut down the light, the water still looks the same, I have day-night cycle in my game so how does Crest achieve day-night visual cycling?
     
unityunity