Search Unity

Better Water Pro 3

Discussion in 'Made With Unity' started by Reanimate_L, Apr 14, 2011.

  1. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    Well iam kinda bored and deciding to messing around with Pro water3, and this is what i got
    $Clipboard-2.jpg $Clipboard-3.jpg
    - better refraction
    - better underwater effect (and it works in built too)
    And for side note, iam not a programmer so maybe the performance not optimized enough (sorry)

    Here's the webplayer http://dl.dropbox.com/u/17532280/WebPlayer/Water_test/WebPlayer/WebPlayer.html

    And btw how to make the underwater effect so it can get the depth value from water script automatically? Right now i had to set the undewater color fade manualy to match the water depth value.

    Here's the package for prowater3
    http://dl.dropbox.com/u/17532280/prowater3_mod.unitypackage

    NOTE:
    For the underwater effect you have to assign the script manualy to the main camera, i change the script so it works like the old underwater effect so it can works in built.
     
    Last edited: Apr 14, 2011
  2. defjr

    defjr

    Joined:
    Apr 27, 2009
    Posts:
    436
    Looks really great. Are you planning to share this? :)
     
  3. bigkahuna

    bigkahuna

    Joined:
    Apr 30, 2006
    Posts:
    5,434
    I'm not sure I'm seeing what you may have changed. Looks like the settings were tweaked, but that's about all, what am I missing?
     
  4. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    well i'm changing the depth comparison from the water shader for the refraction and adding screen space fog for the underwater shader

    here's the depth comparison for the refraction
    Code (csharp):
    1.  
    2. half drefr = normalize(LinearEyeDepth (tex2Dproj(_CameraDepthTexture, UNITY_PROJ_COORD(i.ref)).r)-i.ref.z);
    3. half dref = normalize(LinearEyeDepth (tex2Dproj(_CameraDepthTexture, UNITY_PROJ_COORD(uv2)).r)-uv2.z);
    Well at least the water shader looks better now, IMO :p

    @earl : yup i'm planing to share the package if you guys need it
     
    Last edited: Apr 14, 2011
  5. bigkahuna

    bigkahuna

    Joined:
    Apr 30, 2006
    Posts:
    5,434
    @rea - Definitely would like to see what you've done. I spent some time tweaking the asset a while back but a few persistent issues have kept me from using it in earnest.
     
  6. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    Package added, check the first post.
    @bigkahuna : can you help me about the underwater effect depth?
     
  7. cupsster

    cupsster

    Joined:
    Apr 14, 2009
    Posts:
    363
    looks realy nice.. congrats :)
     
  8. bigkahuna

    bigkahuna

    Joined:
    Apr 30, 2006
    Posts:
    5,434
    @rea - I'll take a look at it tonight.
     
  9. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    @Cupsster : Thanks, it's still the builtin prowater3 actually, i'm just changing couple lines of codes :)
    @bigkahuna : Thank you
     
  10. RoyS

    RoyS

    Joined:
    Jan 12, 2009
    Posts:
    664
    Great job, Rea. I even sent the link to my partner who is not into game development and told him 'hey, you gotta look at this'. Very nice!
     
  11. Gub

    Gub

    Joined:
    Mar 24, 2011
    Posts:
    27
    Wow! Not even a bad framerate! Those waves are the mesh, right?
     
  12. Artimese

    Artimese

    Joined:
    Nov 22, 2009
    Posts:
    794
    Omfg we're all going to drown! Good job, but I dont see a very noticable difference, water 3 has a lot of parameters and if you spend a lot of time on it, you could get almost any good looking water, but its a start.
     
  13. bigkahuna

    bigkahuna

    Joined:
    Apr 30, 2006
    Posts:
    5,434
    I've started to look at your project but I'm afraid your issue isn't all that clear to me, what exactly are you trying to do? After playing with this for a while I'm remembering why I chose to stick with the community water shader instead, the water3 asset is not exactly easy or intuitive to tweak to get settings that look good. I remember spending the better part of a day before I was happy with the end result. The other issue I have is the gap between the water's surface and the underwater effect, if the camera happens to be between the two the result is not pretty, and I see that you have the same issue with your demo. I think I still have that project I spent time tweaking but it's on a different machine. I'll try your mods on that project tomorrow and see what happens.
     
  14. xfingerx

    xfingerx

    Joined:
    Feb 12, 2011
    Posts:
    4
    very nice!
     
  15. gustavolsson

    gustavolsson

    Joined:
    Jan 14, 2011
    Posts:
    339
    Really nice scene! I don't have pro so I can't compare it to the default pro 3 water though :/

    There is a bug in the Water3 script where it does not return the correct water height! Check out my post here on how to fix it: http://forum.unity3d.com/threads/77417-Unity-3.2-is-Available!?p=502340&viewfull=1#post502340

    Also, the underwater effect does not use the water height method! immFX proposed a fix to this here: http://forum.unity3d.com/threads/77417-Unity-3.2-is-Available!?p=502738&viewfull=1#post502738

    Hope it helps!
     
  16. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    OMG...how did i miss those fix o_O.....thank you sir :D
     
  17. Teejay5

    Teejay5

    Joined:
    Feb 26, 2010
    Posts:
    106
    Whoa, this scene is BEAUTIFUL! :eek:
    Thanks for the unity package!
     
  18. Teejay5

    Teejay5

    Joined:
    Feb 26, 2010
    Posts:
    106
    wait, is the scene that's in the webplayer included in the package? if not, could you include it please?
     
  19. CraigSnedeker

    CraigSnedeker

    Joined:
    Jul 9, 2010
    Posts:
    30
    Stunning.............!
     
  20. rosa89n20

    rosa89n20

    Joined:
    May 13, 2011
    Posts:
    2
    Can I ask what Image Effect you used? This so beautiful !!! :DD
     
  21. Yippie

    Yippie

    Joined:
    May 4, 2009
    Posts:
    227
    I wanna jump right in XD
     
  22. Mark981

    Mark981

    Joined:
    Sep 20, 2012
    Posts:
    44
    Link is broken,guys FIX THE LINK!!!!!!!!!!!!!!
     
  23. Mrchili

    Mrchili

    Joined:
    Aug 9, 2012
    Posts:
    1
    Hey man! Could you post a link on mediafire instead? The dropbox does'nt work!
     
  24. davidflynn2

    davidflynn2

    Joined:
    Jul 13, 2012
    Posts:
    23
    Any way you can fix the link it realy looks good and I have been looking all over for an underwater effect that looks good and how to do it. The link appears to be broken.
     
  25. eelstork

    eelstork

    Joined:
    Jun 15, 2014
    Posts:
    221
    I know this is old. Worse, I'm about to comment off topic.

    Love the test scene, really quirky and fun setup.