SharkD <mik### [at] gmail com> wrote:
> I would like to create a function for a heightfield that has a nice bell
> curve shape, but can also be normalized between 0 and 1 along each axis.
> I've looked at the normal distribution and beta distribution functions,
> but they can only be normalized along one axis.
Oh. It took me a bit to realize what you meant, but why not just
exp(-x*x-y*y) * (x-1) * (x+1) * (y-1) * (y+1)
This just clamps the edges to zero while keeping the center at 1. Still 'looks'
gaussian.
- Ricky
Post a reply to this message
|