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.
  2. Dismiss Notice

Volumetric cloud settings

Discussion in 'High Definition Render Pipeline' started by asnow0000, Nov 27, 2021.

  1. asnow0000

    asnow0000

    Joined:
    Nov 26, 2019
    Posts:
    2
    Greetings,

    I have two issues.

    The first one is that when I adjust the wind speed both on the visual environment override it does not appear to effect the volumetric clouds. I increased the wind speed to 10^6 mph with no result (clouds not moving at all) as well.

    The second issue is that I am trying to create a weather system which operates by containing a list of values then it assigns the values to the volumetric clouds override to act as separate weather conditions and to smoothly transition between different weather conditions. This system would theoretically allow for easy transitions between cloud formation types (overcast, stormy, clear, etc..). However, I cannot find how to access the variables in the overrides.

    An example of what I am trying to do.
    (code that will increment or decrement X to hit the target cloud density, this would serve to smoothly transition one weather event into another)

    go = gameObject.GetComponent<Volume>().volumetricClouds;
    go.densityMultiplyer = X;


    As a result of this code, the volumetric cloud density would increase or decrease.

    another example would be
    (code that work around the wind variable)

    (code that increments (A) by 0.0025/sec)

    go.cloudMapOffset = new Vector3 (A , 0 ,0);


    the result of this code would be the volumetric cloud map translating in the X direction by the amount of A like wind.
     
    Last edited: Nov 27, 2021
  2. asnow0000

    asnow0000

    Joined:
    Nov 26, 2019
    Posts:
    2
  3. Skyler_Hawkins

    Skyler_Hawkins

    Joined:
    Aug 18, 2016
    Posts:
    32
    Could you go more into details of how you got access to the VolumetricCloud override. I’ve been trying to switch back and forth via script with the Preset to build a weather system like the one up are talking about, but couldn’t find away.

    I’ve read through all the documentation and still couldn’t get it to work.
     
  4. glatteinfo

    glatteinfo

    Joined:
    Nov 17, 2019
    Posts:
    19
    hey there,

    I am trying to achieve the same: allow for easy transitions between cloud formation types (overcast, stormy, clear, etc..).

    and yes, I can transition their density over time by creating different profiles and then transitioning in between their weights. However, that does not result in smooth transitions (i.e. a cloud expands/gets bigger) but rather blends in new clouds that are bigger. Is actual transitioning of existing clouds i.e. their size not possible or do I do something wrong?
     
  5. zeropointblack

    zeropointblack

    Joined:
    Jun 8, 2020
    Posts:
    190
    This is a great question. lets get some developer input.

    also, hows the wind issue? I managed to get wind working, once, but it just wont work anymore. no idea what happened.



    EDIT: the wind seems to be working, but the catch is it's one of those "play only" features. OOPS?!

    ALSO, i think someone misplaced a decimal, because in order to get a cloud moving at about 50 miles an hour you have to use numbers in the thousands. but im sure it said kilometers per hour in the documentation.
     
    Last edited: Oct 30, 2022