serg2 Posted November 1, 2017 Share Posted November 1, 2017 Hi, Hashers! How to use a random expression to get smoother and less dense graphics? sharp curves and smoothed Example in the picture. UPD1: (update after the explanation of Robert) UPD2 http://gph.is/2zbg8sl RANDOM9B_SWARM.prj RANDOM6.prj 1 Quote Link to comment Share on other sites More sharing options...
Hash Fellow robcat2075 Posted November 1, 2017 Hash Fellow Share Posted November 1, 2017 Part of the answer may be to use the time function to sample to random numbers only at larger intervals, like every 30 frames Quote Link to comment Share on other sites More sharing options...
Hash Fellow robcat2075 Posted November 1, 2017 Hash Fellow Share Posted November 1, 2017 Here is a thread on saving a random value Quote Link to comment Share on other sites More sharing options...
Fuchur Posted November 2, 2017 Share Posted November 2, 2017 It could be working with something like this "Round(Rand() / 10) * 100", if I am not wrong. Like that it would toggle more or less between two values with a more steady value. I did not test it, but Round should be a good starting point. Best regards *Fuchur* Quote Link to comment Share on other sites More sharing options...
serg2 Posted November 2, 2017 Author Share Posted November 2, 2017 Good. Tank you. How to choose ONE random time(instant/moment) in a certain time range? How to switch values at random time? And fix it Quote Link to comment Share on other sites More sharing options...
Hash Fellow robcat2075 Posted November 2, 2017 Hash Fellow Share Posted November 2, 2017 Here is a possible work-around solution... clip4118RandomControl.mp4 Quote Link to comment Share on other sites More sharing options...
serg2 Posted November 2, 2017 Author Share Posted November 2, 2017 Thank you very much, Robert! Years of torture with a random expression completed )) Funny)) - I randomized the time with the same parameter - and it works! AtFrame(Round(GetFrame(),R1),R2) R = R1 = R2 = ..|..|..|..|Shortcut to Model1.Transform.Translate.Y (random change channel) R1 - random time R2 - random amplitude Example: AtFrame(Round(GetFrame(),..|..|..|..|Shortcut to Model1.Transform.Translate.Y),..|..|..|..|Shortcut to Model1.Transform.Translate.Y) But of course I would like more flexible use of random expression in real time (without pre-baking). Thanks all! Quote Link to comment Share on other sites More sharing options...
Hash Fellow robcat2075 Posted November 3, 2017 Hash Fellow Share Posted November 3, 2017 What does the R represent? Quote Link to comment Share on other sites More sharing options...
serg2 Posted November 3, 2017 Author Share Posted November 3, 2017 R - In this case, this parameter R represents the channel of random changes An example is given below: AtFrame(Round(GetFrame(),R1),R2) R = R1 = R2 = ..|..|..|..|Shortcut to Model1.Transform.Translate.Y (random change channel) R1 - random time R2 - random amplitude PRJ file: http://dropmefiles.com/uFaSe Quote Link to comment Share on other sites More sharing options...
serg2 Posted November 3, 2017 Author Share Posted November 3, 2017 This was for the more beautiful behavior of particles in flocks, crowds, swarm, birds.... PRJ file: http://dropmefiles.com/0bc63 http://gph.is/2zbg8sl Quote Link to comment Share on other sites More sharing options...
Fuchur Posted November 3, 2017 Share Posted November 3, 2017 Very cool . Best regards *Fuchur* Quote Link to comment Share on other sites More sharing options...
serg2 Posted November 3, 2017 Author Share Posted November 3, 2017 Thanks, Fuchur! Quote Link to comment Share on other sites More sharing options...
Elm Posted May 4, 2018 Share Posted May 4, 2018 Fantastic! And very clever. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.