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

☁ Weather Maker ☁ AAA Clouds, Sky, Weather, Water, Volumetric Light & More!

Discussion in 'Assets and Asset Store' started by jjxtra, Jun 30, 2016.

  1. StevenPicard

    StevenPicard

    Joined:
    Mar 7, 2016
    Posts:
    718
    I am still using 2018.4 but I am considering trying to move to 2019 but there's obvious concern that some of my currently purchased prefabs may not be compatible. I just wish Unity would quit introducing incompatibility between versions. They just don't care about our investments in the Asset Store and time put into our games. Sorry, that's my little rant for the day. :rolleyes:
     
  2. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    2018.4 would be the new min supported version.
     
    hopeful and StevenPicard like this.
  3. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    Vincent13122 and hopeful like this.
  4. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
  5. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    Weather Maker 5.9.1 is released with MegaSplat and MicroSplat integration!
     
  6. no00ob

    no00ob

    Joined:
    Dec 13, 2017
    Posts:
    55
    I just added this into my project and when I press play I keep on getting this error after the game runs for about 1 second
    Code (CSharp):
    1. ArgumentNullException: Value cannot be null.
    2. Parameter name: _unity_self
    3. UnityEngine.Rendering.CommandBuffer.Dispose (System.Boolean disposing) (at <86888d7bf865490ca0c08194bf6338db>:0)
    4. UnityEngine.Rendering.CommandBuffer.Dispose () (at <86888d7bf865490ca0c08194bf6338db>:0)
    5. DigitalRuby.WeatherMaker.WeatherMakerCommandBufferManagerScript.CleanupCommandBuffer (DigitalRuby.WeatherMaker.WeatherMakerCommandBuffer commandBuffer) (at Assets/WeatherMaker/Prefab/Scripts/Manager/WeatherMakerCommandBufferManagerScript.cs:290)
    6. DigitalRuby.WeatherMaker.WeatherMakerCommandBufferManagerScript.CleanupCameras () (at Assets/WeatherMaker/Prefab/Scripts/Manager/WeatherMakerCommandBufferManagerScript.cs:301)
    7. DigitalRuby.WeatherMaker.WeatherMakerCommandBufferManagerScript.LateUpdate () (at Assets/WeatherMaker/Prefab/Scripts/Manager/WeatherMakerCommandBufferManagerScript.cs:330)
    8.  
    It works fine in all of the demo scenes but in my scene this happens.
     
    dsilverthorn likes this.
  7. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    I've logged a bug with Unity, this should not happen. Calling Dispose on a command buffer that is not null should not throw the error. Immediately after the dispose I null out the command buffer.

    Try pulling a refresh of 5.9.1 and see if it helps.
     
    dsilverthorn likes this.
  8. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    This does not happen in 2017.4 so I know it is a newish bug
     
  9. no00ob

    no00ob

    Joined:
    Dec 13, 2017
    Posts:
    55
    Yep that fixed it thanks!
     
    hopeful and dsilverthorn like this.
  10. no00ob

    no00ob

    Joined:
    Dec 13, 2017
    Posts:
    55
    I wonder why the calculation for dates is only correct in the range March 1 1900 to February 28 2100, Why can't we go beyond? Not a problem to me just curious about it.
     
  11. M0rrigan

    M0rrigan

    Joined:
    May 29, 2015
    Posts:
    29
    Hello Jeff. Buoyancy and rainbows would be a great add. Any chance to get them in the future?
     
    Last edited: Sep 16, 2019
    DrOcto likes this.
  12. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    Weather Maker 5.9.3 is out with a vegetation studio pro extension script. Now your rain/snow/wind will sync to your vegetation studio pro biomes! Simply drag a weather maker weather zone on to the biome and set your profile to the type of weather you want (temperate, snow, dry, etc.)
     
    Vincent13122 likes this.
  13. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    That's a limitation of the algorithm, which is optimized to be reasonably fast. Could go more accurate at the cost of much higher CPU use. Not worth it in my opinion.
     
    no00ob likes this.
  14. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    Rainbows absolutely! Bouyancy I would suggest to use crest ocean, Weather Maker has integration with it. See my fork here: https://github.com/DigitalRuby/crest
     
  15. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    Just had a customer email this wonderful looking forest scene! Uses Weather Maker volumetric fog and likely some post process.

    upload_2019-9-25_11-21-32.png
     
    iddqd, no00ob, M0rrigan and 3 others like this.
  16. SickaGamer

    SickaGamer

    Joined:
    Jan 15, 2018
    Posts:
    1,004
    Does this do HDRP yet?
     
  17. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    No, if/when HDRP is supported I will of course post here and in the discord forums and update the asset description. Assuming Unity has added the necessary hooks, I hope to add HDRP support when it goes out of preview.
     
    dsilverthorn and razzraziel like this.
  18. SickaGamer

    SickaGamer

    Joined:
    Jan 15, 2018
    Posts:
    1,004
    I heard that should be in 2020?
     
  19. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    Could be. LWRP still feels like it is still in preview, so we will see how robust it is :)
     
  20. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    Weather Maker full code documentation is now online at https://unitydocs.digitalruby.com/

    You can peruse everything, in case you are looking for specific functions or just considering a purchase and want to know what you are getting.
     
  21. dsilverthorn

    dsilverthorn

    Joined:
    May 14, 2017
    Posts:
    493
    Jeff,

    I picked up Aura 2 in the new Humble Bundle sale and I'm having trouble getting it to work properly with Weather Maker.
    Weather Maker fog is over-riding the fog and the weather maker sun will not allow color changes through Aura 2.
    If I disable WM and add a light, Aura works, but not getting it to work when WM is active. And I need my Weather Maker.;)

    What setting should I do to help them work together?

    BTW, the humble bundle sale is $15 and includes 15 assets including one year of Unity Learn Premium, Playmaker, the Snaps Art and prototypes, M-Tree, etc. It's their second one, last year was a good one too. Amazing deals- I've done them both and they are supported by the developers- just in case anyone is wondering. Still going for 14 more days.
     
  22. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    1] If you are using Aura 2 probably you want to deactivate the weather maker fog object entirely.

    2] As far as the sun color changes go, those are done by the day/night cycle script, I would need to add an option somewhere to not modify sun color, but this will break the day night cycle if it is dynamic. If you have a static time of day, not an issue.

    Let me know about #2.
     
  23. dsilverthorn

    dsilverthorn

    Joined:
    May 14, 2017
    Posts:
    493
    Thanks Jeff,
    I'm running static time of day. I like the morning sun.:) Let me know what I need to do.
    Nice to know about the time of day cycle though. But I'm not using that yet.

    Thanks!
    I'm not sure if Aura will make it into my project, but want to try it out to see all of my options.

    I'm upgrading to 2018.4.9 because I'm getting some strange bugs and I'm guessing it's a Unity thing.
    Once I'm back up and running I'll try the fog setup.

    David
     
  24. no00ob

    no00ob

    Joined:
    Dec 13, 2017
    Posts:
    55
    Hello I have bit of a problem. My scene looks too dark with the default ambient color strengths so I need to increase them, but by doing so my clouds became washed out white color without any shading just plain white. I know this happens most likely due to the clouds receiving the ambient lighting aswell, but is there anyway around this? upload_2019-10-5_19-46-29.png
    upload_2019-10-5_19-44-50.png
     
  25. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    You'll have to tweak the ambient light multipliers on the cloud profiles you are using. I'd suggest duplicating the profiles and then customizing as needed.
     
    no00ob likes this.
  26. no00ob

    no00ob

    Joined:
    Dec 13, 2017
    Posts:
    55
    Wow what a reply speed... Thanks so much!
     
  27. norby

    norby

    Joined:
    Jul 10, 2006
    Posts:
    274
    Hi jjxtra

    Maybe this has been asked before. Does WeatherMaker work on an oculus quest? If yes how to setup the camera
    Thanks

    Norby
     
  28. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    I don't support Android VR, sorry. Too many devices and configs to test and I have a full time job, do Unity on the side in spare time :)
     
    no00ob and SickaGamer like this.
  29. norby

    norby

    Joined:
    Jul 10, 2006
    Posts:
    274
    ooh oké
    thanks for clarification

    Norby
     
  30. TWalden

    TWalden

    Joined:
    Jun 6, 2019
    Posts:
    2
    Awesome package, it has more than I could ever need for weather :)
    I see you can fly a camera through the volumetric clouds and they'll remain static relative to the world, is there any way to replicate this without moving the camera (like with terrain, moving the terrain past the camera rather than the camera through the terrain)? I tried messing with the coverage, type, and animation velocities, but I only end up making it look like rolling fog since the clouds develop different noise as they move in this way.
     
  31. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    Hmmm. You could try manually setting the cloud noise offset to some value, not sure if it will give you the effect you want...
     
  32. shwa

    shwa

    Joined:
    Apr 9, 2012
    Posts:
    447
    Hi Jeff.
    Weathermaker has been working fine for a while in osx, using opengl. Using a versions of WM from a few months ago.
    I added an asset from the unity store recently, and now the WM sky is grey, and no cloud effects.
    (Problem shows on osx and win standalone builds. In authoring the sky is black until i hit play.)
    The asset i added is: HDG build.
    https://assetstore.unity.com/packages/tools/utilities/hdg-build-organise-your-builds-107362

    I'm speculating there may be a conflict with HDG, but not certain.

    Any idea if there's a simple fix for this?

    Some of the weathermaker Error messages, during authoring:

    NullReferenceException: Object reference not set to an instance of an object
    DigitalRuby.WeatherMaker.WeatherMakerFullScreenCloudsScript.CreateWeatherMapTextures () (at Assets/WeatherMaker/Prefab/Scripts/Clouds/WeatherMakerFullScreenCloudsScript.cs:521)
    DigitalRuby.WeatherMaker.WeatherMakerFullScreenCloudsScript.GenerateWeatherMap (UnityEngine.Camera camera) (at Assets/WeatherMaker/Prefab/Scripts/Clouds/WeatherMakerFullScreenCloudsScript.cs:255)
    DigitalRuby.WeatherMaker.WeatherMakerFullScreenCloudsScript.OnEnable () (at Assets/WeatherMaker/Prefab/Scripts/Clouds/WeatherMakerFullScreenCloudsScript.cs:572)

    NullReferenceException: Object reference not set to an instance of an object
    DigitalRuby.WeatherMaker.WeatherMakerScript.ShouldIgnoreCamera (UnityEngine.MonoBehaviour script, UnityEngine.Camera camera, System.Boolean ignoreReflections) (at Assets/WeatherMaker/Prefab/Scripts/Manager/WeatherMakerScript.cs:512)
    DigitalRuby.WeatherMaker.WeatherMakerSkySphereScript.CameraPreCull (UnityEngine.Camera camera) (at Assets/WeatherMaker/Prefab/Scripts/Sky/WeatherMakerSkySphereScript.cs:75)
    DigitalRuby.WeatherMaker.WeatherMakerCommandBufferManagerScript.InvokeEvents (UnityEngine.Camera camera, System.Collections.Generic.List`1[T] list) (at Assets/WeatherMaker/Prefab/Scripts/Manager/WeatherMakerCommandBufferManagerScript.cs:841)
    DigitalRuby.WeatherMaker.WeatherMakerCommandBufferManagerScript.CameraPreCull (UnityEngine.Camera camera) (at Assets/WeatherMaker/Prefab/Scripts/Manager/WeatherMakerCommandBufferManagerScript.cs:855)
    UnityEngine.Camera.FireOnPreCull (UnityEngine.Camera cam) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Camera.bindings.cs:334)

    NullReferenceException: Object reference not set to an instance of an object
    DigitalRuby.WeatherMaker.WeatherMakerScript.ShouldIgnoreCamera (UnityEngine.MonoBehaviour script, UnityEngine.Camera camera, System.Boolean ignoreReflections) (at Assets/WeatherMaker/Prefab/Scripts/Manager/WeatherMakerScript.cs:512)
    DigitalRuby.WeatherMaker.WeatherMakerSkySphereScript.CameraPreCull (UnityEngine.Camera camera) (at Assets/WeatherMaker/Prefab/Scripts/Sky/WeatherMakerSkySphereScript.cs:75)
    DigitalRuby.WeatherMaker.WeatherMakerCommandBufferManagerScript.InvokeEvents (UnityEngine.Camera camera, System.Collections.Generic.List`1[T] list) (at Assets/WeatherMaker/Prefab/Scripts/Manager/WeatherMakerCommandBufferManagerScript.cs:841)
    DigitalRuby.WeatherMaker.WeatherMakerCommandBufferManagerScript.CameraPreCull (UnityEngine.Camera camera) (at Assets/WeatherMaker/Prefab/Scripts/Manager/WeatherMakerCommandBufferManagerScript.cs:855)
    UnityEngine.Camera.FireOnPreCull (UnityEngine.Camera cam) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Camera.bindings.cs:334)
    UnityEngine.Camera:Render()
    UnityStandardAssets.Water.Water:OnWillRenderObject() (at Assets/Standard Assets/Environment/Water/Water/Scripts/Water.cs:112)

    There's a few dozen more error messages, that keep getting added to, in play mode.

    / thanks.

    / shwa
     
  33. shwa

    shwa

    Joined:
    Apr 9, 2012
    Posts:
    447
    I want to import an older version of WM into a new project.

    Within the asset store in authoring, I'm only seeing the ability to download the latest version, with no import choice of what i already downloaded.

    Where's the import button?

    i sure need coffee.
    / thanks
     
  34. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    I will try on my Mac today and get back
     
  35. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    Can you switch to metal? I dropped Mac opengl support a while ago. I’ll also test metal on my end to make sure.
     
  36. shwa

    shwa

    Joined:
    Apr 9, 2012
    Posts:
    447
    Yes, i can switch to Metal.
    Want to do that carefully, and not break my current project.

    Would prefer to fix the current issue, and then carefully try the shift to Metal later.

    My current project uses Unity 2018.3.12f1

    / thank!
    /shwa
     
  37. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    The only opengl wm I have saved is quite old at this point, so if you can switch to metal that is ideal. I would also recommend Unity 2018.4 or 2019.2.
     
  38. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    Change line 194 of WeatherMakerAtmosphereLookupShader.shader to this and it will work on metal on MAC:

    Code (csharp):
    1. return float4(PrecomputeParticleDensity(rayStart, rayDir), 0.0, 0.0);
    I will post a version refresh on asset store with this fix.
     
  39. shwa

    shwa

    Joined:
    Apr 9, 2012
    Posts:
    447
    I sorted out the issue i was having. OSX. opengl.

    I had changed the name of a bunch of WM folders that were named Resources.

    Renamed them back to Resources, and all is fine now.

    Tx.
    / Shwa
     
  40. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    Glad you got it sorted. Just FYI in a pretty recent update I added resource profiles, so Weather Maker doesn't need resources folders anymore, you just drag in anything you need into the resource profile and it will be included in the build. Weather Maker then has it's own overloaded GetResource method on WeatherMakerScript.
     
  41. shwa

    shwa

    Joined:
    Apr 9, 2012
    Posts:
    447
    Does the latest WM version work in 2018.3.12f1?

    I'm going to test my current project in 2018.4, but likely won't do that for a while, due to some current deadlines.

    Jeff, do you know how i can stop unity standalone builds from automatically including all folders named Resources?
    When i do small builds that don't include WM, all of WM folders with Resources as their title get included in the builds, even though they are not needed.

    Thanks.
     
  42. shwa

    shwa

    Joined:
    Apr 9, 2012
    Posts:
    447
    Hi,

    Which 2018.4 version is the most stable for using WM?

    2018.4.11f1

    2018.4.10f1

    2018.4.9f1

    I see various versions additional versions available here.
    https://unity3d.com/unity/qa/lts-releases

    Going back to 2018.4.4f1 back to July 2019. and earlier.


    Thanks.
    /S
     
    Last edited: Oct 14, 2019
  43. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    Latest Minor version always recommended
     
  44. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
     
  45. lolaswift

    lolaswift

    Joined:
    Jan 10, 2019
    Posts:
    131
    I got a pink sky when running on mobile(iphone x), any idea?
    It actually showed the sky correctly but only for a second, then turned into pink color. :-(
    Is it because of the weather maker shader doesn't work on mobile?
     
    Last edited: Oct 22, 2019
  46. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    Hard to say. What Unity version and what hardware are you running on? Have you tried the bare-bones demo scene blank as a first test? What about error logs, are you able to share any?
     
  47. lolaswift

    lolaswift

    Joined:
    Jan 10, 2019
    Posts:
    131
    The sky turns pink when I select any cloud profile on fullscreeneffect.
    Hardware: iphone x
    702 error messages: Invalid pass number(4) for Graphics Bilt(Material"(Unknown material)")with 1 passes
    And If I don't select any cloud profile, it works but first displays a dark sky, then the right skybox. There is about one second delay.
     
    Last edited: Oct 23, 2019
  48. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    Please try unity 2018.4 and let me know if it behaves differently.
     
  49. lolaswift

    lolaswift

    Joined:
    Jan 10, 2019
    Posts:
    131
    2018.4.11f1(lts) same issue.
     
  50. jjxtra

    jjxtra

    Joined:
    Aug 30, 2013
    Posts:
    1,194
    2019’2?
     
unityunity