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
I just felt I should mention that your implementation of bridson has a bug.
You select the candidate from the annulus using a simple polar coordinate.
Sadly, 'r' isn't uniformly distributed over the annulus. Fortunately, r^2 is.
Selecting with r = sqrt(random(r*r, r2*r2));
will fix the bug.
If you plot an annulus with your existing samples, it'll have a lot of points near 'r'.
if you plot with the fix, the annulus is properly uniformly distributed.
Figure out what he means and fix the problem.
The text was updated successfully, but these errors were encountered:
When you have a circle or ring that you sample in polar coordinates (that is, you pick a random angle and random radius), the points are more bunched together toward the center.
I got this email from someone:
Figure out what he means and fix the problem.
The text was updated successfully, but these errors were encountered: