I'm loving the blue noise sampler on surfaces in 3D. In the default "uniform importance" mode it's working great! Thanks for sharing this great implementation of a great algorithm.
I'm struggling to get the weightFunction working correctly for adaptive importance. Wondering if you could give some pointers?
For example, I'm trying to create sampling of this rectangle with more samples toward the center and decreasing "smoothly" toward the edges.
Your weight function seems fine to me. It might be related to the bounds of p0.Length(). It should not be greater than 1. You may need to scale it accordingly.
I'm loving the blue noise sampler on surfaces in 3D. In the default "uniform importance" mode it's working great! Thanks for sharing this great implementation of a great algorithm.
I'm struggling to get the weightFunction working correctly for adaptive importance. Wondering if you could give some pointers?
For example, I'm trying to create sampling of this rectangle with more samples toward the center and decreasing "smoothly" toward the edges.
I tried using this as my weightFunction:
But the result is clumpy: