You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I wanted to check the formula you used in CloudSeed to generate the early reflection taps. In MultitapDiffuser::Update(), there is a formula double tapCountFactor = 1.0 / (1 + std::sqrt(count / MaxTaps));. But it seems both count and MaxTaps are integer, so the division is done in integer land and returns 0 most of the times. Maybe casting count to double beforehand would give a more expected result?
The text was updated successfully, but these errors were encountered:
Hi, I wanted to check the formula you used in CloudSeed to generate the early reflection taps. In
MultitapDiffuser::Update()
, there is a formuladouble tapCountFactor = 1.0 / (1 + std::sqrt(count / MaxTaps));
. But it seems bothcount
andMaxTaps
are integer, so the division is done in integer land and returns 0 most of the times. Maybe castingcount
todouble
beforehand would give a more expected result?The text was updated successfully, but these errors were encountered: