If I have a cctv setup that only updates the texture for a cctv camera once every 5 seconds while players are in the room, then the volumetric cloud animations keep resetting on the cctv camera. At the same time on the player camera the clouds play consistently and the two cameras become unsynced.
thanks for any help.
So my solution is to turn the wind global speed to zero in the visual environment, then in the volumetric clouds drive the shape offset via script. Run a coroutine that updates the x value every .1 or .2 seconds or something similar.
This will allow anything that’s on a different update speed, or that starts later, to match the clouds at the time they are active, other players joining a multiplayer game later, cameras(Camera.Render), or probes(HDProbe.RequestRenderNextUpdate).
No more dark clouds casting shadows making the whole scene dark while the reflection probes or other cameras show a bright sunny day.
hey @EricWilliams , while you have a good workaround for now,
I believe it should be easier.
Meaning Volumetric Clouds should be synced on a global time (and not a per camera time).
Activating a camera should show the clouds in the same state independently of the camera refresh rate or whether there’s wind or not.
I logged a bug, you can follow the progress here. (give the link a few hours before going live)
Where can we set this global time parameter? I’m looking to synchronize my clouds over the network.
Indeed, that’s a good point, we didn’t implemented that for volumetrics clouds but it would be actually possible, I’ll track this internally and keep you updated if it’s actually being implemented. 
Thanks for the feedback !
Sorry, I guess I forgot to give an update.
Starting Unity 6000.0.3f1 you can now sync your clouds (either locally or over the network) using the static variable animationData like this
A little later, has this changed again? I don’t really see the purpose of this struct. All members are internal. How am I supposed to set anything here? All the example does is save it at some point and set it to that saved state at a later point.
AFAIK, it hasn’t changed.
The goal of this is to be able to sync cloud data across a network or make sure cloud data are deterministic after a scene reload or something similar, nothing more.
Yeah but how do I sync the cloud data over a network? All fields of AnimationData are internal and I don’t see any other way to construct a AnimationData instance.
// This struct is defined in Unity.RenderPipelines.HighDefinition.Runtime.dll.
// So we can't set any of those internal fields
public struct AnimationData
{
internal Vector2 cloudOffset;
internal float verticalShapeOffset;
internal float verticalErosionOffset;
}
hey, can’t you just save the struct directly without using the internal variable of the struct like it’s done here in the documentation ? If that’s not enough for you, I’d be curious to hear about your use case.
Also, if you really need to get/set separately those you can either modify the hdrp package, it’s a public and open source code or you can also use reflection in C# to access if really needed.
That’s what I’m doing right now but I think it’s not really ideal. If I have 2 clients the only safe animation data to use then will be the one at load time of the scene to ensure they are synchronized. Or in other words the clouds will be the same every game round.
It’s not terrible but, yeah, just not ideal I guess.
yep, you can try to log a bug about it (and drop the case number here), maybe I’ll be able to do it with a report. But I have very little hope to be honest.
However, since HDRP code is public you can change the “internal” to “public” yourself directly and be able to do it, it shouldn’t be much harder than that.