Search Unity

How to make Ocean in Unity 3D

Discussion in 'World Building' started by bluroy, Jan 10, 2019.

  1. bluroy

    bluroy

    Joined:
    Jan 6, 2019
    Posts:
    2
    Hello everyone,
    I need to create from 0 an Ocean in Unity 3D.
    I'm starting with Unity and I do not understand very well the concept of Shader or where to look for this type of Assets in the store.

    On the other hand, I need information on how to make an ocean (with waves) and with a marine part (diving).
    If someone can pass me useful links (tutorial, guides, ...) I appreciate it.

    Thank you.

    PS: I do not know if this post is in this section, if not, move it please. Thanks again.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    3,684
    Check the asset store... there are tons of great ocean and water assets there.
     
    Antypodish likes this.
  3. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    5,201
    some resources:

    using shader graph editor (no need to write shader code yourself)
    https://blogs.unity3d.com/2018/10/05/art-that-moves-creating-animated-materials-with-shader-graph/

    shader coding basics,
    https://unity3d.com/learn/tutorials/topics/graphics/gentle-introduction-shaders

    quick start wavy mesh
    see example "Normal Extrusion with Vertex Modifier"
    then modify how the vertex are moved to make it look wavy
    https://docs.unity3d.com/Manual/SL-SurfaceShaderExamples.html
    see some helper variables from here https://docs.unity3d.com/Manual/SL-UnityShaderVariables.html
    like _CosTime.x to make your vertices move

    or look for other ready examples
    https://github.com/danielzeller/Lowpoly-Water-Unity
    https://github.com/eliasts/Ocean_Community_Next_Gen
    https://github.com/huwb/crest-oceanrender