PDA

View Full Version : rand stream?


ginodauri
01-23-2011, 05:27 AM
Hi

I really don't understand this random function streams.
Maybe somebody can explain this in practical example.


I had problem where i had particle attribute with random numbers must be same when you rewind and play.

I solve this in creation expression like this:

seed(frame+1);
randAttr1=rand(0,1);
seed(frame+2);
randAttr2=rand(0,1);

Is this best way to do this, or maybe there is better way using streams , or some other way...?

CGTalk Moderation
01-23-2011, 05:27 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.