Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

[RELEASED] UniStorm 5.2 - AAA Volumetric Clouds, URP Support, Weather, Sky, Atmospheric Fog, & More!

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

  1. franky_li

    franky_li

    Joined:
    Aug 8, 2016
    Posts:
    163
    Sun starts disappearing before reaching horizon. Any suggestions to fix that?
     

    Attached Files:

  2. franky_li

    franky_li

    Joined:
    Aug 8, 2016
    Posts:
    163
    I also have the problem that fog doesn't work with LUX water
     
  3. nu51313932

    nu51313932

    Joined:
    Oct 28, 2016
    Posts:
    81
    Hello BHS.
    I want to change to cloud moving direction. now it moves from right to left. how to make it move from left to right instead?

    m_CloudsMaterial.SetFloat("_uCloudsMovementSpeed", (float)CloudSpeed*-1)

    Is it okay to add *-1 like this? will it effected another part of Unistrom System
     
    Last edited: Feb 19, 2023
  4. khushalkhan

    khushalkhan

    Joined:
    Aug 6, 2016
    Posts:
    107
    @BHS it might be unity issue but fire rain is colliding with environment collider & rain snow etc particles are not colliding with env, which seems wrong snowing inside rooms.. any idea what to tweak as i tried to copy settings from fire rain to snow etc but it not work
     
  5. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,687
  6. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,687
    Yes, this is because UniStorm's fog is a post-processing effect that can't render over transparent objects like water. The best fix I have for this is to use both UniStorm's fog and Unity's fog, as Unity's fog can render over transparent objects.

    This script will take the current color from UniStorm's fog and apply it to Unity's fog. The only drawback to this is that it doesn't take the color around the sun into account like the UniStorm Fog does. However, this still offers better results than not combining the two fog options.

    Code (CSharp):
    1. using System.Collections;
    2. using UnityEngine;
    3.  
    4. namespace UniStorm
    5. {
    6.     public class UnityFogModifier : MonoBehaviour
    7.     {
    8.         private void Start()
    9.         {
    10.             StartCoroutine(Initialize());
    11.         }
    12.  
    13.         IEnumerator Initialize ()
    14.         {
    15.             //Wait to initialize the Unity fog setting until after UniStorm has initialized
    16.             yield return new WaitUntil(()=> UniStormSystem.Instance.UniStormInitialized);
    17.             RenderSettings.fogMode = FogMode.ExponentialSquared;
    18.             RenderSettings.fog = true;
    19.         }
    20.  
    21.         void Update()
    22.         {
    23.             //Set Unity's fog color to the current UniStorm fog color
    24.             RenderSettings.fogColor = UniStormSystem.Instance.m_UniStormAtmosphericFog.BottomColor;
    25.         }
    26.     }
    27. }
    LuxUniStormFogPartlyCloudy.png
    LuxUniStormFogStormy.png
     
    DarkRides likes this.
  7. Anikki

    Anikki

    Joined:
    Dec 23, 2012
    Posts:
    8
    For anyone who runs into a crash when building a player on URP 12.1.10 with Unity 2021.3.18f or later (havent tested earlier versions), the crash can be fixed by removing the UniStorm RenderFeatures.

    The crash reporter will says this:
    Code (text):
    1. Obtained 2 stack frames
    2. RtlLookupFunctionEntry returned NULL function. Aborting stack walk.
    3. <Missing stacktrace information>
    The relevant bits of the crash log are attached.
     

    Attached Files:

    Last edited: Feb 25, 2023
  8. khushalkhan

    khushalkhan

    Joined:
    Aug 6, 2016
    Posts:
    107
    @BHS instead of finding audio mixer in resource folder by name would not be great if we have a serialized reference in unistorm inspector for audio mixer so that we can pass our own audio mixer as my game already have one, of course i have to follow the rules of how the audio mixer of unistorm is structured (master/weather etc)
     
  9. drsalvation

    drsalvation

    Joined:
    May 2, 2014
    Posts:
    19
    Hey guys, working with Linux (I really am trying to make Linux work, I kinda don't want to go back to windows), but I'm seeing some odd issues with the Sun, it's being rendered on top of solid objects like the player...
    I'm worried there may be other graphical glitches like these in linux, but I'm wondering if anyone else has experienced this same issue, and if so, how was it resolved?
    (This isn't an issue in Windows)

    EDIT:
    I saw someone with a similar issue in the previous page
    Removing o.vertex.z = 1.0e-9f; from Unistorm Sun.shader and Unistorm Moon.shader seems to work, but I'm not sure if I should be doing this or not.
     

    Attached Files:

    Last edited: Mar 10, 2023
    weiboyuan likes this.
  10. LuiBroDood

    LuiBroDood

    Joined:
    Mar 13, 2019
    Posts:
    63
    is it possible to change the skybox during certain weathers ?

    like behind the clouds ?

    i have really nice sandstorm skybox images
     
  11. TheLLspectre

    TheLLspectre

    Joined:
    Nov 12, 2016
    Posts:
    2
    Hello ! @BHS

    This is asset is so lovely ! Damn !

    But...

    I'm still facing a huge issue... With our gorgeous friends, URP and Quest 2.

    I tried lot of adjustement inside settings from Unity or Unistorm. I read all issues and post from this forum (page 116, 117, 118), issues tracker, unity issues.

    And after three days I quit ...

    So, if someone have a magix tricks, set or everything else... I'd take it.

    On Unity 2021.3.10f
    To Android plateform
    To Oculus Quest 2 with openGLES 3

    I read something with the blit command, and it's seems to be that. Because i'm facing to the OpenGL Plugin Error in the headset.


    For now, the best i've found is to comment the Start() from UniStormClouds.cs

    So i revert
    all the cloud's generation. And i can use Unistorm without this feature.

    I'm gonna use this like that for now and I keep a github branch to test something if needed.

     

    Attached Files:

  12. ViaLobo

    ViaLobo

    Joined:
    Dec 21, 2022
    Posts:
    1
    Ok it seems like noone else ha this problem but... what are the parameters to ChangeWeatherInstantly? it says it needs a weather type - but there is no static types... i dont want to create custom weather i just want to "make it rain"...
     
  13. sirleto

    sirleto

    Joined:
    Sep 9, 2019
    Posts:
    100
    Hello @BHS

    unistorm seems to be the fastest clouds renderer today on unity and still beautiful, thanks for the good work!

    i am trying to find out some basic details about unistorm that seem not to be documented anywhere.
    i am using unity 2021.2.17 on direct x 11, your Standard Demo on Built-in Render Pipeline.

    1. how can i get unistorm to react ASAP to changes in the editor, e.g. weather cloud speed and turbulence, weather type: fog height, sun intensity, etc. etc. anything besides time and sun revolution seems not to be realtime / near realtime. whatever i change in playmode via sliders seems not to be applied until i leave and restart play mode. or maybe i need to change weather (back and forth once) or wait N seconds or anything?

    2. Couds Shadows under Unistorm Volumetric Clouds seems not applied, i can not see any different between it being on or off. i seem to be able to see the screenspace effect on camera though. am i only confused, or why are there two ways for this? the mesh renderer is disabled per default inthe Standard Demo.

    3. how can i change cloud types? e.g. strato cummulus, alto stratus, cirrocumulus, cumolonimbus, etc. can i achive this in some way? by ac ombination of settings including cloud profile and cloud height? itsnot clear if cloud height is the lower start of the cloud, or the upper height of the cloud. it is also not clear if its visible in the lower quality settings, or only on ultra with enough samples set for near and far.

    4. generally its not clear what near samples does, far samples clearly show a difference between 10 (default) and 30, 50, 100. near samples (default 100) seem not to make any difference between the slider values of 100 to 200.

    5. how can i make clouds "thicker" in regard to allowing more or less light to come through. somecloud types are thin and thus bright even from below, others are heavy and perhaps when mostly cloudy darkening the scene a lot but also dark them selves onthe under side.

    6. the volumetric clouds look beautiful, but i dont understand if they are volumetric in such a way that we can fly through them with a airplane, oronly the renderingseems volumetric (path traced?) instead of flat (2D)? what do i need to configure / place / adjust to be able to fly through them?

    thanks for your help and greetings from switzerland,
    sirleto
     
  14. wechat_os_Qy0wOJiBqRSxX6DqwErDqbDOE

    wechat_os_Qy0wOJiBqRSxX6DqwErDqbDOE

    Joined:
    Feb 17, 2023
    Posts:
    2
    Hello @BHS
    For anyone who runs into a crash when building a player on URP 12.1.10 with Unity 2021.3.16f or later (havent tested earlier versions), the crash can be fixed by removing sun and moon of the UniStorm RenderFeatures.

    The crash reporter will says this:
    Code (text):
    1. Obtained 2 stack frames
    2. RtlLookupFunctionEntry returned NULL function. Aborting stack walk.
    3. <Missing stacktrace information>
     
    Last edited: Apr 24, 2023
  15. wechat_os_Qy0wOJiBqRSxX6DqwErDqbDOE

    wechat_os_Qy0wOJiBqRSxX6DqwErDqbDOE

    Joined:
    Feb 17, 2023
    Posts:
    2
    Do you resolve it?
     
  16. franky_li

    franky_li

    Joined:
    Aug 8, 2016
    Posts:
    163
    Hi @BHS
    I have an error with Unity 2021.3.24f1 PC SRP
    upload_2023-4-29_11-24-1.png
     
  17. nu51313932

    nu51313932

    Joined:
    Oct 28, 2016
    Posts:
    81
    Hello BHS. How to decrease the size of the area when the moon light affeceted to the cloud. (Decrease the area to highlight the cloud)

    upload_2023-5-2_2-22-28.png

    And i have 2 problem need your help.
    1. there is the white out line around any of object when the Unistrom time is about 6-7 PM (after sunset)
    2. the sun have the out line. I wan to remove it.(you used to teach me the way to do it by changing the color of the sun material but it doesn't work)
    (you should fix the problems becasue it is the bug of the addon)
    if i can't fix these problem. I have to modify something of your asset and re-make as my own asset. (I don't wanna steal, lol)
     
    Last edited: May 3, 2023
  18. CunningGrayFox

    CunningGrayFox

    Joined:
    Jan 7, 2014
    Posts:
    24
    Hey everyone,

    Maybe someone can point me in the right direction. I've been working on a URP scene and with default Unity lighting and fog it looks pretty decent but when I add UniStorm I just can't get the parameters right. You can see with the Unity fog and lighting I can achieve a very light fog which cools the scene down but the directional light still provides a good amount of visibility and warmth; you can also see the mountains fairly well in the background. In the UniStrom example everything is extremely warm to the point of over saturation and the fog is so thick you can barely see the mountains; the houses in the foreground also lose the kind of foggy effect they have.

    I've tried cooling down the tones on the celestial bodies, fog, and atmosphere elements. This did cool the scene down but also created poor visibility. I've tried playing with the fog settings in the gameobject and on the render pipeline and nothing seems to thin out the fog in the distance or add the foggy effect to closer objects.

    I really want to make this work because of all the additional elements included with UniStorm that would be great to add in the scene but stylistically I'm having a lot of trouble getting the right vibe.

    Any help is greatly appreciated.
     

    Attached Files:

  19. dequevedo

    dequevedo

    Joined:
    May 31, 2013
    Posts:
    8
    Is it possible to fly through clouds?? Or are they always fixed above the camera?
     
  20. OMGTOASTER

    OMGTOASTER

    Joined:
    Nov 3, 2014
    Posts:
    24
    Hello!

    I am really enjoying this asset so far! However, I am running into an issue with a WebGL build (using URP of course). While in the editor everything appears fine, in the build it looks like the fog appears much closer, and the skybox is completely black. Changing the far clipping plane to a smaller value does seem to have a better effect for the fog, though the skybox remains black. I suspect the problem is with WebGL depth texture precision not being enough, at least with my current settings, though I could be wrong. Ideally, I would like to keep the larger values I had with the far clipping plane (well over 2000, max 5000), as it seems to be fine in the editor. Any suggested modifications I could make to the shader or render feature?

    Thanks!
     
  21. katerd

    katerd

    Joined:
    Dec 9, 2019
    Posts:
    1
    Was getting a crash on build with 2021.3.25f1 - turns out the
    if you go into UniStormSunShaftsFeature.cs, add an Obsolete tag to the sunTransform. This is a bit of hack.. but it'll prevent this field from being analyzed by the shader pre-compilation stuff Unity added recently, and you can keep the sun/moon shaft render features! This seems like a bug on Unity's side...

    Code (CSharp):
    1. [Obsolete] // fix to prevent crash on build
    2. public Transform sunTransform;
     
    dequevedo likes this.
  22. Vagabond_

    Vagabond_

    Joined:
    Aug 26, 2014
    Posts:
    1,108
    Hi @BHS

    i constantly get this error with Unity 2022.2.20f1 and UniStorm 5.3 ( also was getting the error with previous Unity versions )... How can get this fixed ?

    Thanks !

    upload_2023-5-20_13-30-49.png