Page MenuHomeFeedback Tracker

Rain doesnt fade away smoothly
Closed, ResolvedPublic

Description

(See 1st comment)

When rain intensity increases, the rain volume increases smoothly too, however when rain intensity decreases, the sound volume decreases in stages with noticeable thresholds in between. Also the rain intensity changes too often.

Details

Legacy ID
1928364855
Severity
None
Resolution
Fixed
Reproducibility
Always
Category
Engine
Steps To Reproduce

Listen to the rain on dedicated server.

Event Timeline

Killzone_Kid edited Additional Information. (Show Details)
Killzone_Kid set Category to Engine.
Killzone_Kid set Reproducibility to Always.
Killzone_Kid set Severity to None.
Killzone_Kid set Resolution to Fixed.
Killzone_Kid set Legacy ID to 1928364855.May 7 2016, 6:17 PM

Changed from sound to engine since this is not a sound problem.

On dedicated server, it seems the weather is now depends on server. So if I do something like 10 setrain 1 on client now it will obey for 5 seconds then it will sync back to current server rain value. Because client can still influence weather on client I think there is a conflict when trying to gradually decrease rain for example.

running 10 setrain 0 on client won't work, because in 5 seconds it will be back to server value. But if I execute it on server instead it will decrease on client in stages, I guess 5 sec thresholds. I've done this earlier and executed

60 setrain 0 on server. on Client the rain jumped from whatever value it was to
0.39 then to 0.25 then to 0.18 then to 0.03 with what seemed to be 5 sec interval. This is what this ticket is about.

To conduct your own experiment start

oneachframe {hintsilent str rain};

on client so you can see how it changes in real time then

use setrain on server with various interval and rain value.

for some reason the problem is only with reducing the rain, increase happens ok.

To add, setOvercast and forceweatherchange will ignore overcast duration.

For example

217692 setOvercast 1; forceWeatherChange; will behave as if it was
0 setOvercast 1; forceWeatherChange;

sadovsf added a subscriber: sadovsf.May 7 2016, 6:17 PM

"seems the weather is now depends on server" - Yes weather is now synchronized from server to clients.

"forceweatherchange will ignore overcast duration" - Yes because force weather change is forcing weather to change now.
Documentation of command:

    Forces saved wanted settings for weather to be actual

About sound. I'am trying to find problem now, so please be patient ;-)

Ok, so from my point of view problem is in sound so i will change department ;-)

As I stated above the problem is not with sound. Sound is just an indicator that rain changes intensity in stages rather than doing it smoothly.

The rain value changes in steps as I tried to explain this above. This is why sound is also changes in steps. Uneven rain value change is the cause not the sound. I hope I explained this ok :)

This has been fixed and rain sound still skippes. When i look on data for sound they are smooth but sound isnt so it is in sound ;-)

Ok I will check it again and report back

OK just checked. Still the same, as I reported above, nothing has been fixed, and the rain value still skips as before. Try this:

  1. Start dedicated server
  2. on client execute: oneachframe {hintsilent str rain};

Now you should see hint showing rain value

  1. on server execute: 0 setovercast 1; 0 setrain 1; forceweatherchange;

After microfreeze you have rainy weather and cloudy sky and the hint shows 0.999 something

  1. on server execute 60 setrain 0;
  2. Listen to the rain and observe rain value in the hint. You can easily see how it start changing in steps and so is rain sound

Conclusion: Rain sound changes with the rain value like it should. If rain value changes abruptly and so is the sound, so sound is not the cause.

I know i just fixed part where rain value was skipping and it sits still on my pc in changes... Be patient

LOL ok, no probs

Today's dev build fixed skipping both in value and sound. So this issue is resolved, thanks.

However there is another minor issue. The rain reaches its maximum sound volume in 0 - 0.25 interval and in about 0.8 - 1 it actually gets quieter. Should it be linear or exponential? One thing is for sure it should not get quieter the stronger it gets.

Fixed awhile ago, closing