Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: particle size - power curve distribution?

Started 2 months ago by rxgeez
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)...
Site: CGSociety - Society of Digital Artists  CGSociety - Society of Digital Artists - site profile
Forum: Maya Dynamics  Maya Dynamics - forum profile
Total authors: 2 authors
Total thread posts: 2 posts
Thread activity: no new posts during last week
Domain info for: cgsociety.org

Other posts in this thread:

marcinm replied 2 months ago
I think bias function is all you need in this case. Something like this: Code: global proc float bias(float $val, float $b) { if ($b>0) { return pow($val,log($b) / log(0.5)); } else { return 0; } }

 

Top contributing authors

Name
Posts
rxgeez
1
user's latest post:
particle size - power curve...
Published (2009-10-18 08:26:00)
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...
marcinm
1
user's latest post:
particle size - power curve...
Published (2009-10-18 09:25:00)
I think bias function is all you need in this case. Something like this: Code: global proc float bias(float $val, float $b) { if ($b>0) { return pow($val,log($b) / log(0.5)); } else { return 0; } }

Related threads on "CGSociety - Society of Digital Artists":

Related threads on other sites:

Thread profile page for "particle size - power curve distribution?" on http://forums.cgsociety.org. This report page is a snippet summary view from a single thread "particle size - power curve distribution?", located on the Message Board at http://forums.cgsociety.org. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity