PDA

View Full Version : Help with Formula Deformer -> Radial Wave warp


Navstar
01-24-2008, 03:23 PM
I guess I should have paid more attention in trig! I'm trying to get some ripples in a mug of coffee. (Like Jurassic Park)

The default Formula gives me: Sin((u+t)*2.0*pi)*0.2

How do I control the phase, amplitude, frequency and decay of the wave warp?

What I'd ideally like is a controllable random function (Like C4D Vibrate, or AfterEffects' wiggle() expression) to control the amp/freq.

I'd appreciate any helpful pointers.

What I want (After Effects Wave World)
http://i175.photobucket.com/albums/w134/navstar/AdobeAfterEffects8.gif

What I get with C4D formula:
http://i175.photobucket.com/albums/w134/navstar/CINEMA-4DScreenSnapz001.gif

Per-Anders
01-24-2008, 08:24 PM
The frequency is controlled by the function that controls the sine, i.e. what's inside of the brackets, t is time, u is the u part of UV, multiplying this value up (as it is by 2*pi) increases the frequency, multiplying by smaller values would result in a lower frequency and hence bigger waves, sine outputs a sinusoidal curve from -1 to 1 based on it's input (what's in the brackets).

Which leads us to amplitude, whatever you multiply the result of the sine by is your amplitude, in this case it's 0.2, make that value larger to make the waves taller, or smaller to make the waves shorter.

There is no falloff or decay involved in that formula, to add one you would simply take U (distance) and use that to create a falloff, also to attenuate the waves to become larger over distance, one example formula you could use would be this :

Sin( (t - ( sqrt( u ) ) ) * 5.0 * pi ) * 0.2 * ( (1.0 - u>0) * (1.0 - u))

For general amplitude and shape though it should be added that you can just use the orange handles on the formula effector itself in the viewport for instant real-time feedback and control over the size and shape of the result.

Per-Anders
01-24-2008, 08:33 PM
Oh yes, and just as a small correction, if you want something that's got a slightly nicer falloff to it then you could modify the amplitude falloff to be squared thus :

Sin( ( t - sqrt( u ) ) * 5 * pi ) * (1 - u>0) * (1 - u) * (1 - u)

designbytes
01-24-2008, 10:38 PM
ok, Per, now you are just showing off! ;-)

I think we need to start a new C4D contest...."Modeling Per's Brain"

marcorabellini
01-25-2008, 02:21 AM
I've always thought a big ol' list of formulas and how they look would be awsome. There's this and that around the web but a C4D specific thing would totally kick butt. Especially for those of us who've been more than a couple years out of high school trig.

m

dennishmiller
01-25-2008, 02:49 AM
There is a formulas PDF that was posted at a French C4 site a while back. I have it and could post it at my ftp site (unless that would be a problem of ownership??) if anyone wants it. It has diagrams/images and the formulas for hundreds of functions.
d.

I've always thought a big ol' list of formulas and how they look would be awsome. There's this and that around the web but a C4D specific thing would totally kick butt. Especially for those of us who've been more than a couple years out of high school trig.

m

Srek
01-25-2008, 05:14 AM
I think we need to start a new C4D contest...."Modeling Per's Brain"
I fear CINEMA 4D will not be capable to create such a complex shape ;)

williamsburroughs
01-25-2008, 07:01 AM
I fear CINEMA 4D will not be capable to create such a complex shape ;) (the creative process)

Oh come on now, that would be very easy. It can all be summed up in an ancient Zen Koan (modified of course for this thread and so many others in this forum)*:

"We are all so concerned about what happens to us when we are pitching a project, but none of us are ever concerned about what our "Per" face looked like before we began it."

Per illuminates so many mysteries for us all and enables us to do a great many things with our tool. See Four Dee Om.

:)





* We are all so concerned about what happens to us when we die, but no one ever questions what our face looked like before we were born.

georgedrakakis
01-25-2008, 08:53 AM
hi to all,
sorry if i hijack this thread,
but that reminds me an unfinished shader i did some time ago using
gradient in displacement & "things on surface" plugin.
rain_drops (http://www.frenchcinema4d.fr/forum/index.php?topic=20525.0)
unfortunately my animating skills are way below average - and don't have the time to finish it atm, but i can send the scene file for anyone interested.
cheers,
george

Activator
01-25-2008, 11:43 AM
There is a formulas PDF that was posted at a French C4 site a while back. I have it and could post it at my ftp site (unless that would be a problem of ownership??) if anyone wants it. It has diagrams/images and the formulas for hundreds of functions.
d.

This would be great! I think I found the link to the formula pdf you referenced, but the whole site seems to be vapor, (http://www.s-infini.com/c4d/formules.pdf) so I can't see the harm in re-posting here.

dennishmiller
01-25-2008, 02:35 PM
Okay, here's the link:
www.dennismiller.neu.edu/formulas.pdf (c. 8 MB)

I tried to convert it to a Word doc (for copy/paste) but the formulas are all embedded as graphics.
If threre is a better place to upload/store it, just let me know.
Best,
D.


This would be great! I think I found the link to the formula pdf you referenced, but the whole site seems to be vapor, (http://www.s-infini.com/c4d/formules.pdf) so I can't see the harm in re-posting here.

Navstar
01-25-2008, 02:45 PM
Oh yes, and just as a small correction, if you want something that's got a slightly nicer falloff to it then you could modify the amplitude falloff to be squared thus :

Sin( ( t - sqrt( u ) ) * 5 * pi ) * (1 - u>0) * (1 - u) * (1 - u)

Yeah, that's much better! Amazing!

Is there any way to put vibrate functions or slider controls into this formula? In my AE Wave World example, I put [wiggle ()] into my wave generator frequency, amplitude, and height/width controls.

soccerrprp
01-25-2008, 05:00 PM
thanks dennishmiller! I can't believe i never new about that pdf, etc.

Richard

CGTalk Moderation
01-25-2008, 05:00 PM
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.