rxgeez
10-18-2009, 08:26 AM
I'm trying to assign particles a random size between two values...then I want to be able to control the ratio of small to large based on a power curve.
i.e.
sizeMin value = 1
sizeMax value = 10
sizeRatio is a 0-1 attribute
when sizeRatio = 0 -- all smaller ones (blue curve in image)
when sizeRatio = .5 -- even distribution of small and large (green curve in image)
when sizeRatio = 1 -- all larger ones (red curve in image)
I'm assuming its a pretty simple pow function....any ideas?
i.e.
sizeMin value = 1
sizeMax value = 10
sizeRatio is a 0-1 attribute
when sizeRatio = 0 -- all smaller ones (blue curve in image)
when sizeRatio = .5 -- even distribution of small and large (green curve in image)
when sizeRatio = 1 -- all larger ones (red curve in image)
I'm assuming its a pretty simple pow function....any ideas?
