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
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

[RELEASED] UniStorm 4.0 - AAA Procedural Volumetric Clouds, Weather, Sky, Cloud Shadows, & More!

Discussion in 'Assets and Asset Store' started by BHS, Jan 27, 2012.

  1. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,218
    Increasing your Near Clipping Plane by even 0.05 should be enough to resolve that. It's somewhat of a limitation with Unity and low near clipping plane distances. Unity's shadows have similar issues. Another solution could be to just use a second camera to render UniStorm and its components.
     
  2. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,218
    Are you referring to your scene or one of the screenshots? Shadows do cast at night, the brightness can even be controlled for each moon phase. Just ensure the moon's shadows are enabled.
    NightShadows.png
     
  3. Sam512

    Sam512

    Joined:
    Jan 13, 2019
    Posts:
    178
    I saw in the screenshot of course
     
  4. Super_apple

    Super_apple

    Joined:
    Mar 14, 2011
    Posts:
    30
    Hello, this plugin is very nice!

    I want to ask one question :

    How can I modify the cloud moving direction???
     
  5. Super_apple

    Super_apple

    Joined:
    Mar 14, 2011
    Posts:
    30
    showInfo.jpg



    I just rotate the gameObject which named "UniStorm Volumetric Clouds" ,Is It right ?
     
  6. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,218
    No, in order to rotate the cloud dome, it has to be rotated from within the shader. I can send you the updated shader first thing tomorrow. I will add a wind direction feature with the next update so this can be controlled from with the UniStorm editor.
     
  7. Super_apple

    Super_apple

    Joined:
    Mar 14, 2011
    Posts:
    30
    OK , Thank you very much!

    can you send me the "updated shader" to me tomorrow?
     
    Last edited: Jul 18, 2019
  8. neshius108

    neshius108

    Joined:
    Nov 19, 2015
    Posts:
    107
    @Super_apple fyi, careful posting your email in the wild like that. You're going to receive lots of spam ;)
     
  9. Super_apple

    Super_apple

    Joined:
    Mar 14, 2011
    Posts:
    30
    THKS ,I delete my email Adress .But How can I get the new shader?
     
  10. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,218
    I started a conversion with you through the Unity forums and sent you the updated shader for wind direction.
     
  11. Alex3333

    Alex3333

    Joined:
    Dec 29, 2014
    Posts:
    342
    So much time has passed again. will sync for PUN 2 ?? every time you write what you are doing, but there are weeks and nothing - ((
     
  12. neshius108

    neshius108

    Joined:
    Nov 19, 2015
    Posts:
    107
    @BHS: Pinging you again about the custom shader/look for clouds (and maybe auroras)? Is that planned along the way? If so, when? Just to have an estimate :D

    I am thinking of a toon shader but if there was a way to just have a way to apply any shader, that'd be super!
     
  13. Sam512

    Sam512

    Joined:
    Jan 13, 2019
    Posts:
    178
    Just bought the asset. Shadows look so soft at night. How can I make the night darker? Rain doesn't look impressive like EnviroSky. Will you improve it perhaps?
    (Unity 2018.3.14f1)
     
    Last edited: Jul 23, 2019
  14. Harekelas

    Harekelas

    Joined:
    Feb 3, 2015
    Posts:
    810
    So great to see volumetric clouds and acurate constellations are added to this awesome asset! Unistorm always has the best weather atmosphere and weather transition. Instant buy after seeing this update.
    Also got a question, can I get the correct constellation positions according to my latitude and longitude settings? And the sunrise and sunset time, moon phases, moonrise and moonset time, are they also acurate concerning the coordinates settings?
     
  15. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,218
    My apologies for the delay. I'll try to get something together sometime this week.
     
    Alex3333 likes this.
  16. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,218
    UniStorm's cloud shader is required for the system to function properly, unless you were to implement the shader yourself. Auroras have already been added with the current version and can be customized for each weather type. Toony clouds are possible by using the included toony cloud profile on each of the weather types.
     
  17. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,218
    Increase the moon's shadow intensity and set the shadow type to hard shadows. To make night darker, use darker ambient colors and a darker moonlight color. You can change the rain particle effect to whatever you like by changing the particle effect within weather types.
     
  18. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,218
    Thanks, it's great to hear you like the update. I plan on adding latitude and longitude settings with a future updated. Currently, the positions are not based off of longitude and latitude.
     
    Last edited: Jul 24, 2019
  19. Harekelas

    Harekelas

    Joined:
    Feb 3, 2015
    Posts:
    810
    Great to hear. Any ETA of this update?
     
  20. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,218
    I don't have an ETA for this feature just yet. I'm working on a new biome feature first. After this is finished, I will begin working on the latitude and longitude feature.
     
  21. Nitrox32

    Nitrox32

    Joined:
    May 9, 2017
    Posts:
    109
    I'm considering buying. Can the time weather be saved across scene changes?
     
  22. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,218
    Yes, the scene changes shouldn't matter.

    An example of saving can be done like this (it doesn't have to use PlayerPrefs):
    Code (CSharp):
    1.  
    2. void Save ()
    3. {
    4.    PlayerPrefs.SetInt("UniStorm Hour", UniStormSystem.Instance.Hour);
    5.    PlayerPrefs.SetInt("UniStorm Minute", UniStormSystem.Instance.Minute);
    6.    PlayerPrefs.SetInt("UniStorm Temperature", UniStormSystem.Instance.Temperature);
    7.    PlayerPrefs.SetString("UniStorm Weather", UniStormSystem.Instance.CurrentWeatherType.WeatherTypeName);
    8.    PlayerPrefs.SetInt("UniStorm Month", UniStormSystem.Instance.Month);
    9.    PlayerPrefs.SetInt("UniStorm Day", UniStormSystem.Instance.Day);
    10.    PlayerPrefs.SetInt("UniStorm Year", UniStormSystem.Instance.Year);
    11. }
    12.  
    An example of loading (also doesn't have to use PlayerPrefs):
    Code (CSharp):
    1.  
    2. void Load ()
    3. {
    4.    UniStormManager.Instance.SetTime(PlayerPrefs.GetInt("UniStorm Hour"), PlayerPrefs.GetInt("UniStorm Minute"));
    5.    UniStormSystem.Instance.Temperature = PlayerPrefs.GetInt("UniStorm Temperature");
    6.    UniStormManager.Instance.SetDate(PlayerPrefs.GetInt("UniStorm Month"), PlayerPrefs.GetInt("UniStorm Day"), PlayerPrefs.GetInt("UniStorm Year"));
    7.  
    8.    string LoadedWeatherTypeName = PlayerPrefs.GetString("UniStorm Weather");
    9.    //To allow weather to be assigned using a string, look through each weather type for a matching Weather Type Name
    10.    foreach (WeatherType WT in UniStormSystem.Instance.AllWeatherTypes.ToArray())
    11.    {
    12.       if (WT.WeatherTypeName == LoadedWeatherTypeName)
    13.       {
    14.          //Apply the weather type to UniStorm once found
    15.          UniStormManager.Instance.ChangeWeatherInstantly(WT);
    16.       }
    17.    }
    18. }
    19.  
    There's an included example saving system and scene that allows users to save manually or to autosave with customizable autosave seconds. There's also options to load on start or to load manually.
     
    neshius108 likes this.
  23. Super_apple

    Super_apple

    Joined:
    Mar 14, 2011
    Posts:
    30
    Hello,I want to ask one question:

    It is possible to generate cloudes from target area? for example only from the green area? will you please give me some hints?

    I just want the clouds only generate from Horizon。 Thanks! loresclouds11.04146 拷贝.png
     
  24. Sam512

    Sam512

    Joined:
    Jan 13, 2019
    Posts:
    178
    Hello, can you add this constellation into your night star system? And make it look noticeable when stare at the nightsky?
     

    Attached Files:

  25. Alex3333

    Alex3333

    Joined:
    Dec 29, 2014
    Posts:
    342
    )))) ???????
     
  26. sturentzler

    sturentzler

    Joined:
    Jan 8, 2017
    Posts:
    14
    Hi - two questions.

    1. I do a bare bones setup. System and player. When TimeFlow is enabled I can get between 200-300FPS. When TimeFlow is disabled I get 15fps. Is there a way to get more FPS when TimeFlow is disabled??? (see pics)

    2. In the playable demo there is a setting for LOW quality. Where can the quality setting be set (such as low - medium - high -- or is that dropdown communicating with the Player Quality Settings?

    Question #1 is more important (trying to keep the sky forever night and need decent FPS without time flowing).

    Thank you (anyone) for their insight.
    time1.PNG timeflowe.PNG
     
  27. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,218
    The editor scale issue is being fixed with 4.1.1.

    The issues regarding initialization looks like it might be related to missing a Cloud Profile in one of your weather types. Double check that there are no missing slots with your weather types and that each of them have a cloud profile. A guide on this can be found here: https://docs.google.com/document/d/...mWX9rubGw8qjkZ4b4/edit#heading=h.uwckymw7cojo

    If you are having an error related to starting weather type, ensure that you have a weather type applied to the starting weather type slot.

    Also, test the included demo scenes. If they are all working correctly, then your errors are most likely related to something with the setup of your UniStorm system within your scene.
     
  28. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,218
    Hey there,

    That would require modifying the VolumetricClouds shader directly. The variables _uHorizonFadeStart and _uHorizonFadeEnd are responsible for the clouds' fading amount along the horizon.
     
  29. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,218
    Hey there,

    I can certainly look into adding more constellations with future updates.
     
  30. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,218
    Hey there,

    1) Very strange, that shouldn't be happening. Are you receiving any errors? Here's the frame rate for my bare bones setup on High with Time Flow disabled. The time setting shouldn't matter so there must be something happening causing those 77 ms.
    UniStormFPS.png

    2) Updating the quality settings of UniStorm can be handled by using UniStorm.UniStormManager.Instance:
    Code (CSharp):
    1. //Cloud Quality
    2. UniStormManager.Instance.UpdateCloudQuality(UniStormSystem.CloudQualityEnum);
    3.  
    4. //Cloud Type - 2D or Volumetric
    5. UniStormManager.Instance.UpdateCloudType(UniStormSystem.CloudTypeEnum);
    These are working by disabling certain feature directly. To switch Quality Settings, see Unity's example here: https://docs.unity3d.com/ScriptReference/QualitySettings.SetQualityLevel.html

    See the DemoUIExample script to see code examples of the Demo UI system.
     
  31. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,218
    I've tested quite a few versions of Unity with UniStorm and have not encountered this issue. What version of Unity are you using? Maybe I will be able to recreate the issue. You can also just drag the UniStorm System prefab into your scene.
     
  32. Alex3333

    Alex3333

    Joined:
    Dec 29, 2014
    Posts:
    342
    Good day. You missed my message and did not reply to it. network no longer wait?
     
  33. Sam512

    Sam512

    Joined:
    Jan 13, 2019
    Posts:
    178
    Draco Constellation if you don't know the name
     
  34. xxxgashekxxx

    xxxgashekxxx

    Joined:
    Jun 16, 2017
    Posts:
    6
    Hi BHS,

    Sorry for the delay, been a terrible month; like literally the worst hah :)

    I've tested this with cloud shadows enabled and disabled, and both volumetric and 2d clouds with the same result; I've also tried it with every quality setting on the clouds.
    My PC is an i7 8700k with a GTX 1070 and 16GB of DDR4.
    No errors in the project, and I have the same FPS issues in the editor and builds.
    I admittedly have only used Unistorm in VR, but did not have frame rate issues with the previous version. I also tried creating a new project and imported basically just Unistorm and VRTK, and created a very simple test scene with no trees or vegetation and experienced the same poor frame rates with noticeable stutter.
     
  35. Aji1

    Aji1

    Joined:
    Jul 17, 2014
    Posts:
    18
    I try Updated from Unistorm 2.4 to 4.0.
    The following code can no longer be used
    Please tell me the new code

    UniStormSystem.yearCounter
    UniStormSystem.monthCounter
    UniStormSystem.hourCounter
    UniStormSystem.minuteCounter

    UniStormSystem.currentRainIntensity

    UniStormSystem.isSpring
    UniStormSystem.isSummer
    UniStormSystem.isFall
    UniStormSystem.isWinter

    UniStormSystem.weatherString

    UniStormSystem..ChangeWeatherInstant (0)

    And did plantGrowSystem disappear?

    thank you.
     
  36. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,218
    Strange, maybe it's related to Unity 2019.2. I will download it right now and figure out what's going on. UniStorm has worked perfectly fine with very other version of Unity, even 2019.1.
     
  37. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,218
    No worries! Thanks for the updated information. I will look into this and release an update if needed. Do you know if the Render Clouds Command Buffer is being applied to one camera or both? Also, you are using multi-pass, correct?
     
  38. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,218
    To access UniStorm now, all you have to do is use:
    Code (CSharp):
    1. UniStorm.UniStormSystem.Instance.VariableName
    A lot of the API has been updated and moved to the UniStorm.UniStormManager.Instance to make things easier. These can all be found here: https://docs.google.com/document/d/...mWX9rubGw8qjkZ4b4/edit#heading=h.wdi1uoeswdyw

    Also, I've updated the plant growth system, but haven't had a chance to add it to the Asset Store version of UniStorm. I'll send it to you in a message.
     
  39. combatsheep

    combatsheep

    Joined:
    Jan 30, 2015
    Posts:
    100
    Hi, BHS.

    It's impossible to choose Celestial tab in Unity2019.2.
    Can I fix it at Editor C#?
    UniStorm4.1_bug.jpg

    Unity2019.2
    macOS Mojave
    UniStorm4.1
     
  40. combatsheep

    combatsheep

    Joined:
    Jan 30, 2015
    Posts:
    100
    The tab button could be displayed temporarily.;)

    TabNumberProp.intValue = GUILayout.SelectionGrid(TabNumberProp.intValue, TabButtons, 5, GUILayout.Height(28), GUILayout.Width(90 * Screen.width / 200)); //Original is Screen.width / 100

    @UniStormEditor.cs
     
  41. sturentzler

    sturentzler

    Joined:
    Jan 8, 2017
    Posts:
    14

    Not getting an error, and still happens. Did fresh importing on both a mac and pc. Strange. Thank you for the pointing to the how to set the quality setting. Don't know what to do about the initial problem.
     
  42. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,218
    So, I looked into this and cannot recreate it. I've used the exact same version of Unity (version 2019.2.0f1) and prefab object and everything looks as it should. There's no errors or editor issues and I tested all of the tabs and settings.

    Could you possibly send me your project, just with UniStorm, so I can have the issue present and find a solution? You can just send it via a private message.
     
  43. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,218

    Yes, this is an issue related to using 4k monitors. I am working on an update to address this and a couple of other minor bugs.

    This can be fixed by replacing all instances of:
    Code (CSharp):
    1. GUILayout.Width(90 * Screen.width / 100));
    With:
    Code (CSharp):
    1. GUILayout.Width(90 * Screen.width / Screen.dpi));
     
    combatsheep likes this.
  44. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,218
    That is strange. The Time Flow setting only controls a small portion of code that calculates the time and date. What version of Unity are you using? Maybe it's an issue with a specific version of Unity. Can you please send me the project with just UniStorm and a scene that has the issue present so I see what's happening? It could also be a weird issue with a combination of settings you have.
     
  45. combatsheep

    combatsheep

    Joined:
    Jan 30, 2015
    Posts:
    100
    Thanks BHS!
    Much better than mine.:)
     
  46. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,218
    You're welcome!
     
  47. sturentzler

    sturentzler

    Joined:
    Jan 8, 2017
    Posts:
    14

    Thank you for your help. I'll make a new project and send to you with screen shots. How best to send? Link to the zip file?
     
  48. neshius108

    neshius108

    Joined:
    Nov 19, 2015
    Posts:
    107
    Heya!

    I am now playing around with the clouds but I see when I first start the game:

    upload_2019-8-16_18-19-56.png

    Here are my settings (I tried playing around with them):

    upload_2019-8-16_18-20-18.png

    How can I fix it?
    The problem is related to the clouds (all profiles behave the same), as the issue disappears when I disable their gameobject.

    Let me know!
     
  49. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,218
    Strange, it looks like something isn't initializing correctly. Are you receiving any errors and have you properly setup your camera and player with UniStorm? It is normal for the clouds to initialize with some pixelation, but it shouldn't last more than a few frames.
     
  50. neshius108

    neshius108

    Joined:
    Nov 19, 2015
    Posts:
    107
    No error that I can see.

    upload_2019-8-17_1-11-17.png

    I manually set those.
    What else can I check?
     
unityunity