Search Unity

Easy Water 2.0 - Mobile Compatible [RELEASED]

Discussion in 'Assets and Asset Store' started by Grespon, May 3, 2012.

  1. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
    Hi Denko86,
    It depends. Which device are you using?
     
  2. DavidRDev

    DavidRDev

    Joined:
    Jul 19, 2012
    Posts:
    47
    iPad 2 and up to iPad Air
     
  3. Stiangul

    Stiangul

    Joined:
    Jan 7, 2014
    Posts:
    12
    does this work with Unity3d free version?
     
  4. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
    Yes it works.
     
  5. Rynar

    Rynar

    Joined:
    Jan 14, 2014
    Posts:
    1
    We are also having issues with the latest Easywater on mobile. We use EasyWater12_C2TBDO. Works great in editor, but not on the devices. We are testing on iPhone4S, 5, iPad2, iPad mini, etc.

    It sounds similar to the problem Denko86 is having. At certain angles, the water seems to disappear. Rotate a bit, and it sort of fades in. Not a culling issue, but looks like the specular/gloss is being affected on the entire plane and not the normal maps.

    I remember an older EasyWater (before 2.0) worked on iPhone4S with the same features we are using now.
     
  6. MrScary

    MrScary

    Joined:
    Dec 8, 2007
    Posts:
    94
    +1 What's the deal on this?
     
  7. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
    Denko86, Rynar, MrScary,

    Ok guys, you won. I'll check it out soon :)
     
  8. Assault

    Assault

    Joined:
    Aug 21, 2012
    Posts:
    60
    Hi. I am looking for a mobile optimized yet good looking water asset for a project.

    How well does Easy Water work on Android devices?
     
  9. DeadNinja

    DeadNinja

    Joined:
    Jun 3, 2013
    Posts:
    39
    Just bought this asset and in just few minuts of tweaking have a good looking scene working on my galaxy note 2 (water 11).

    $rig.png

    But have an issue with a shadows. Is there any way to plane with your water shader receive unity shadows?
     
  10. MrScary

    MrScary

    Joined:
    Dec 8, 2007
    Posts:
    94
    Grespon, any update on the iOS fixes? Thanks :)
     
  11. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
    I didn't have time to update yet, but I'm writing down all the fixes. I hope being able to do it soon.
     
  12. Navid

    Navid

    Joined:
    Sep 3, 2012
    Posts:
    39
    Any updates ?
    I´ve same problems with galaxy s2+s3 ..
     
  13. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
    I'm returning to my home until Feb. 18, where I have my PC. I've been trying to work on a Mac for 5 months and I hate it so much.. It makes me very unproductive.

    So, I'll soon be fixing these bugs..

    Navid, can you tell me the GPUs inside your tested devices? I'm aware that Mali-400 are not supporting Easy Water. I tried to fix this but it seems to be a Mali's limitation since there's a lot of similar cases around the net. Anyway I have some ideas and I'll be testing next week.
     
  14. Navid

    Navid

    Joined:
    Sep 3, 2012
    Posts:
    39
    It´s Mali-400 :-(
    look forward to next version :)
     
  15. MrScary

    MrScary

    Joined:
    Dec 8, 2007
    Posts:
    94
    what's the latest here.. have you had a chance to look at this?
     
  16. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
    I need to finish another project until friday. I plan to work on Easy Water in the weekend.
     
  17. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
    Version 2.92 is ready.

    Some News:

    - Almost all shaders (15) were reworked to suppport CubeMap reflection.

    - All new shaders are pragma 2.0 now. It means more compatibility with mobiles, when they don't support pragma 3.0. (I didn't test it on iOS yet because I worked on my PC. If someone test it on iOS, please let me know :) if some bug is spotted I'll debug on my Mac)

    - All the old shaders, with reflection-by-texture style, are inside the folder Shaders_Old.

    - All the new shaders need the Animate360 script to animate the waves. The speeds must be typed in the script's Inspector.

    I hope you like it. Suggestions are welcome.
     
    Last edited: Mar 5, 2014
  18. insiderrr

    insiderrr

    Joined:
    Feb 24, 2014
    Posts:
    50
    I just bought this asset, when i try to import this in unity it is not possible because i don't have the lastest version. I tried to update Unity but it tells me i have the latest version. Do you know what is wrong ?

    my version : 4.3.2f1
    I need version 4.3.4

    i have unity pro
     
  19. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
    Weird. Try downloading version 4.3.4 and installing again?
     
  20. MrScary

    MrScary

    Joined:
    Dec 8, 2007
    Posts:
    94
    Yeah it installs fine to 4.3.4. Download it from here (not check for updates):

    http://unity3d.com/unity/download

    Grespon, still haven't had a chance to test on iOS devices, but should get to it today.. thanks
     
  21. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
    Thanks, MrScary, no rush :)
     
  22. MrScary

    MrScary

    Joined:
    Dec 8, 2007
    Posts:
    94
    I got it working on iOS with the latest. Thanks for your help Grespon.

    For others that might run into the same problem I saw.. water fading out at certain camera angles on iOS devices/mobile.. Chances are you have the water on a quad like we did. Ours is a huge quad. It works fine on PC.. but for whatever reason the precision goes to crap on mobile. (and it's not the shader because I tried increasing the precision on everything) Subdivide your water surface (or use a Unity plane like in the EasyWater sample) and it will start working correctly.
     
  23. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
    Thanks for solving the mistery! Probably a common limitation on mobiles. A quad has only 4 vertices, if it's scaled too much, shaders calculations will use numbers too low for mobile GPUs.
     
  24. Pheneto

    Pheneto

    Joined:
    Feb 5, 2014
    Posts:
    2
    Of interest to the asset. Terrain trees reflection be?
     
  25. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
    You're asking if it reflects the trees? You can apply a realtime reflection in the CubeMap if you have Unity PRO.
     
  26. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
  27. EmeralLotus

    EmeralLotus

    Joined:
    Aug 10, 2012
    Posts:
    1,462
    Awesome game, the globe perspective is great.
    Was this globe perspective done using a shader or was it actually a globe model?
     
  28. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
    I don't know the details of how it was made, but It's a globe model.
     
  29. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
    I'm almost finishing the UNDERWATER EFFECT.

    You can play a demo HERE

    $underwater.jpg
     
    Last edited: Apr 24, 2014
  30. MinhDao

    MinhDao

    Joined:
    Oct 28, 2013
    Posts:
    155
    Cool! Does it compatible with mobile? When does it release?
     
  31. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
    I didn't test on mobiles yet, but I believe it is compatible.

    I don't know exactly when I'll upload to asset store. Now I need to organize the asset and make a demo to be ready to publish. I believe next week..
     
  32. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
  33. Snowdogdev

    Snowdogdev

    Joined:
    Feb 17, 2014
    Posts:
    1
    Hi Grespon.

    I want to check FPS that running on the android device. (Frame rate perfomence Qaulity)

    Note that My device is Galaxy-S2.

    Can you provide Sample APK file for Testing Android device?
     
  34. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
    I've been thinking about making a running demo for android and iOS, but it's not so simple because there are about 30 different shaders in the set with different properties..

    so, by now, I prefer to focus on working on the new features..
     
  35. metaleap

    metaleap

    Joined:
    Oct 3, 2012
    Posts:
    589
    Was just browsing your EWater_CM.shader and came across this gem of a line..

    Code (csharp):
    1.  
    2. float4 viewInvert=float4(float4( ViewDirection.x, ViewDirection.x, ViewDirection.x, ViewDirection.x).x, float4( ViewDirection.z, ViewDirection.z, ViewDirection.z, ViewDirection.z).y, float4( ViewDirection.y, ViewDirection.y, ViewDirection.y, ViewDirection.y).z, 0);
    3.  
    Well that's some insane Cg logic right there :D :D :D
     
  36. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
    Hehe, thanks for point that. It's stupid... it could be replaced by:

    Code (csharp):
    1. float4 viewInvert = float4(ViewDirection.x, ViewDirection.z,  ViewDirection.y, 0);
    I'll do it for the next update.
    Anyway, I think this shader became obsolete with the new included shaders..
     
  37. metaleap

    metaleap

    Joined:
    Oct 3, 2012
    Posts:
    589
    Yeah if you're into swizzling you can also do float4 viewInvert = float4(ViewDirection.xzy, 0); but in practice it doesn't really make a difference :p
     
  38. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
    Version 2.95 is ready!

    New Feature:
    - UnderWater Effect (water ceiling + caustics projector)

    Let me know if you have problems setting up the Underwater Effects!
     
  39. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
    I'm aware that the underwater effect is not working on Dx11 yet. I'm working on it!
     
  40. MinhDao

    MinhDao

    Joined:
    Oct 28, 2013
    Posts:
    155
    Can you upload a tutorial video setup Underwater Effects? I want to know how to use before buy it! Thank you ;)
     
  41. RealSoftGames

    RealSoftGames

    Joined:
    Jun 8, 2014
    Posts:
    220
    Hi i purchased this EasyWater because it was really the cheap easy way to get around purchasing unity pro for such a high price, but i cant get teh underwater effect to work which is really disappointing because it was really the main reason i got it, and how did you manage to make your Water look so real mine just looks like baby rolls of the plane with a blue texture after following your tutorial even still the same result ='/ but their is 3 errors im getting

    'vert': function return value missing semantics 151
    'frag': input parameter 'IN' missing semantics 168
    implicit truncation of vector type 181


    hope this helps to resolve the issue.
     
  42. WooZooHo

    WooZooHo

    Joined:
    Jul 4, 2012
    Posts:
    7
    hi i purchased Easy Water.
    how to use Caustics Projector?
    i need example under water scene.
     
  43. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
    Uh.. ok, guys.. Sorry for the troubles. I'll make a demo scene or a tutorial ASAP!
    I also noticed there's a lot of bugs using Directx11 and I'm fixing.
     
  44. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
    I made some fixes for Dx11 and in the Caustics shader and already uploaded to Asset Store.

    While I don't make a tutorial, let me try to explain how to use the underwater effects:

    The Underwater_1 shader needs to be applied on an object facing down, and the underwater animation script needs to be dragged to the object. Set the speeds and it shall work.

    The Caustics projector is a little more complicated. I can't make it work out of the box because it will depend on the game itself. It maybe be turned on and off if the player is in/out of the the water. Also, it must ignore some elements, for example the water object itself.
     
  45. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
    For anyone willing to see EasyWater in action on Android, I made a small game and can be downloaded here:
    https://play.google.com/store/apps/details?id=com.GresponApps.SeaHunt101

    It uses the Underwater Ceiling effect and the highest quality EasyWater shader, which means it's not supposed to run fine on slow devices.

    I'll be releasing an iPhone version when my ex-wife give me back my iPhone 4S.
     
  46. WooZooHo

    WooZooHo

    Joined:
    Jul 4, 2012
    Posts:
    7
    thank you for quick answer.
    I see how to use.
    'm Not asking to make tutorial.
    if you provide the UnderWater Effects.DIVE IN project, the better.
    thank you.
     
  47. uniphonic

    uniphonic

    Joined:
    Jun 24, 2012
    Posts:
    130
    The Easy Water shaders seem to appear over the top of billboarded trees, even if the billboarded trees are completely in front of the water. Once the trees are closer to the camera than the billboarding threshold (meaning that trees are no longer billboarded), then the trees appear in front of the water.

    To get around the issue, I've found that if I comment out the line in the shader:
    // "Queue"="Transparent-1"
    then the billboarded trees appear in front of the water like they are supposed to.

    What is the line
    "Queue"="Transparent-1"
    supposed to do in the shader, and is it safe to comment it out? Will it reduce performance?

    I've experienced this through several Easy Water updates, and every time I have to comment out that line to make it work with my project. If that line is not necessary, then it would be nice to have it removed, so I don't have to keep commenting it out.

    Thanks in advance for any responses.

    Jacob
     
  48. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
    uniphonic,
    Thanks for the information. It's weird because the reason I put this line is exactly to avoid other objects to appear in front of it.

    It's doesn't change the performance. I need to check out why this happens with billboarded trees anyway.
     
  49. Frogger007

    Frogger007

    Joined:
    Jun 24, 2014
    Posts:
    338
    Has 'EasyWater' transparency and reflections with unity3d free ?
     
  50. Grespon

    Grespon

    Joined:
    Apr 13, 2012
    Posts:
    388
    Yes it has. But remember unity free doesn't support real time reflection, so it's a cubemap reflection but you can't use RenderToTexture stuff. All the demos are runnable in Unity free.