Jump to content
Sign in to follow this  
Spunj

C4D Formula Effector - Multiple sine waves

Recommended Posts

So I'm creating current lines for the surface of a cartoonish river in C4D. I'm using the formula effector on a mospline which works perfectly, however I need more waves in the line. The default formula in the formula effector creates one wave no matter how long the spline is. I need multiple waves. I am a complete idiot when it comes to this kind of math, but I assume I just need to add a bit of extra math in there to make it work. Basically I am looking for a sine wave that has multiple waves, rather than the one you get with the default formula. I can't use a formula spline, because I need to use a falloff that allows the line to start out straight and then get a wavy animation half way (ish) through the spline.

 

Any math geniuses out there have a simple solution?

 

Thanks,

 

 

-Spunj

Share this post


Link to post
Share on other sites

Of course as usual I have been trying to figure it out for quite a while and didn't do it correctly until after I made this post. I figured it out. Now, perhaps some more difficult math, is there some math I can add that will make the sizes of the waves random so it isn't quite such a symmetrical sine wave?

 

 

-Spunj

Share this post


Link to post
Share on other sites

You can copy the formula and add up the results based on different values. Otherwise there's a noise() function as well plus of course you can always feed in the results of e.g a vibrate tag or add more effectors/ deformers. The Random Effector set to Turbulence or Shader Effector with a Noise will give great flexibility.

 

Mylenium

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...