Search Unity

Assets Pixel Water - GPU animated water

Discussion in 'Works In Progress - Archive' started by tsangwailam, Mar 27, 2017.

  1. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
    Released on Asset Store: http://u3d.as/LZ3

    Greetings. I am working on a pixelated water effect. Welcome any comments.

    !! Now Support Lightweight Render Pipeline in Unity 2019 ||

    1.png


    Pixel Water provided an easy tool for creating water with pixelate style. All effect and animation are running on GPU with optimize performance for mobile and VR devices.

    Highlighted Features

    • All animations and effects calculate in GPU
    • Customizable waves & ripples
    • Customizable pattern without texture
    • Customizable foam effect
    • Specular lighting
    • Reflection map
    • Emission
    • Unlit and multi-light specular shader
    • Optimize for mobile & VR
    • Support Lightweight Render Pipeline in Unity 2019

    WebGL Demo: http://livedocs.digicrafts.com.hk/unity/pixelwater/lighting/

    pattern.png

    wave.png

    ripples.png

     

    Attached Files:

    • foam.png
      foam.png
      File size:
      448.6 KB
      Views:
      1,012
    Last edited: Jun 25, 2019
    theANMATOR2b and alexanderameye like this.
  2. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    7,790
    Looking good. For animated customized waves and ripples what is the suggested polygon resolution (4polys per meter?) to get nice looking animated water, for both smooth and flat shaded visuals?

    A couple animated examples would be nice to see including varying shapes of static objects with animated foam.
     
  3. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
    Here is an example. Full lighting and reflection and use only 20 x 20 mesh grid.


     
    theANMATOR2b likes this.
  4. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
    Add a video to showcase the waves and ripples.

     
  5. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
  6. DwinTeimlon

    DwinTeimlon

    Joined:
    Feb 25, 2016
    Posts:
    300
    Hey there. I bought your water shader a few days ago. Its working fine in the editor but it's not working in a windows build. (It does not crash, but the water is not visible at all). I am using Unity 2017.1 Beta 9 build.

    Any ideas?
     
  7. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
    @DwinTeimlon Which window version are you testing on? we can have a try.

    And did you try 2017 beta 10?
     
  8. DwinTeimlon

    DwinTeimlon

    Joined:
    Feb 25, 2016
    Posts:
    300
    I am using Windows 10. Unity 2017 Beta 10 is currently beeing installed. I report back as soon as I have more info.
    I included the water pixel shaders in the gfx settings (Always included shaders) but it didn't help.
     
  9. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
    @DwinTeimlon I try on a window 10 and it is working. Are you testing it your own scene?
     
  10. DwinTeimlon

    DwinTeimlon

    Joined:
    Feb 25, 2016
    Posts:
    300
    2017 Beta 10 doesn't work either.

    Yep. It's inside a prefab and I am spawning it during runtime.
     
  11. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
  12. DwinTeimlon

    DwinTeimlon

    Joined:
    Feb 25, 2016
    Posts:
    300
    Hi,

    I have just send you a mail with a test project.

    Actually it's fairly easy to reproduce. Jut put an example scene into a prefab. Instantiate the prefab and it will not work anymore inside a build.

    Including the shader in the gfx setting has no impact afaik.
     
    Last edited: Jun 23, 2017
  13. DwinTeimlon

    DwinTeimlon

    Joined:
    Feb 25, 2016
    Posts:
    300
    Thanks a lot for the fast fix! Great support and I also wrote a review ;).
     
  14. turdle2080

    turdle2080

    Joined:
    Oct 11, 2015
    Posts:
    8
    its a neat asset, but it does not seem to be able to handle spot lights properly. i would very much like to use this in my game, but i need the water to be able to reflect light from flashlights.
     
  15. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
    We are checking the problem. It should be working with spot light.
     
    turdle2080 likes this.
  16. peartreegames

    peartreegames

    Joined:
    Mar 15, 2016
    Posts:
    8
    Hey there,

    Great asset! I was having an issue with the rendingQueue (I think?) and built in terrains in Unity. It seems to not go over the terrain asset in the Game view, but does so in the Editor window. If you had any thoughts that would be great!

    Using Unity 2018.2.18f1

    upload_2019-1-29_20-43-13.png
     
  17. peartreegames

    peartreegames

    Joined:
    Mar 15, 2016
    Posts:
    8
    Oh darn it, it's the camera! It works fine with a perspective camera, but not Orthographic....
     
  18. peartreegames

    peartreegames

    Joined:
    Mar 15, 2016
    Posts:
    8
    For anyone else, the issue was simply lowering the clipping plane and moving the water closer to the edge of the ground. hah
     
  19. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
    Sorry for late reply. The problem about the edge is too close? Not related to the shader?
     
  20. peartreegames

    peartreegames

    Joined:
    Mar 15, 2016
    Posts:
    8
    No worries! Yes, the problem was the water needs to be closer to the camera than the terrain for the orthographic camera to place the water on top of (intersect) the terrain. So the issue is not the shader. Unfortunately there is an issue that the foam does not work with an orthographic camera it seems though. But that may not be a simple fix, so for now I'll go without the foam (although foam does look great!)
     
  21. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
  22. fiveampsoftware

    fiveampsoftware

    Joined:
    Feb 9, 2015
    Posts:
    33
    @DwinTeimlon do you happen to know how to fix it? (getting the shader working in the build) We're encountering the same issue
     
  23. DwinTeimlon

    DwinTeimlon

    Joined:
    Feb 25, 2016
    Posts:
    300
    Please contact the support directly, they send me a new file which I am probably not supposed to share. Wondering why it never made into an updated version. Probably forgot about the issue.
     
  24. fiveampsoftware

    fiveampsoftware

    Joined:
    Feb 9, 2015
    Posts:
    33
    FYI - we ran into this again on another game of ours. But the shader doesn't work with ortho graphic cameras - but it works on perspective