Poisson Disk Sampling Generator for Unity3D - RazorYhang/PoissonDiskGeneratorForUnity GitHub Wiki

Welcome to the PoissonDiskGeneratorForUnity wiki!

Intro.

This Unity C# script generates Poisson Disk sampling for general purpose.

The algorithm in this script follows paper: "Fast Poisson Disk Sampling in Arbitrary Dimensions." Robert Bridson. ACM SIGGRAPH 2007

About Poisson disc and supersampling: https://en.wikipedia.org/wiki/Supersampling#Poisson_disc

How to use:

  1. set parameters. ( minDist / k / sampleRange )
  2. call Generate(). It will return the list contains sample points.
  3. You can test and view the samples with PoissonDiskResultHelper.cs.