Closed Roceh closed 2 months ago
I do note that both the linear and the custom curves with realtime reflections (and logarithimic if you apply the above change) are MUCH louder (i assume as the full reflections lengths are being taken into account unlike the values below rMin) so much so that I have to reduce the recflection mix to 0.1 otherwise i get distortion.
The amount of distortion is proportional to the number of bounces set in the steam audio settings.
The generated reflection audio can also be heard beyond the max fall off point, which given its bounced its way to the audiolistener does not make sense as the total bounced path should be longer than direct line and therefore no reflected sound should be generated (with Use Distance Curve For Reflections).
My suspicion is that each calculated bounce is adding to the generated reflection audio rather than the total length of the bounced path.
System Information
Issue Description Incorrect falloff for realtime reflections for SteamAudioSource when using curve logarithmic falloff
Steps To Reproduce Steps to reproduce the behavior:
The cause I believe is that the EvaluateDistanceCurve has the follwing code for Logarithmic curve
I think at the very least it should be like the linear mapping maybe?
or perhaps mapping the actual log curve.
The linear and custom falloff seems ok.