Jump to content

smooth out a sawtooth wave


beeemtee

Recommended Posts

Hi,

i have a sawtooth wave from a fraction op and i would like to drive a displace along normal with it in bump only mode. i would like to ask that how is it possible to smooth out the jump from near 1 to 0?

thanks

bmt

Link to comment
Share on other sites

Hiya,

without knowing the specifics your case, here's a couple of ideas:

- Multiply the sawtooth wave with something that's 1 everywhere else, but falls rapidly to 0 at 1.0 (or at the end of your period)

e.g. a complement of your sawtooth curve raised to a large power.

See attachment, curves in the image are 1) the sawtooth 2) the complement of (the same ^ 20) 3) the product of the earlier two.

The downside of this is that getting the bottom of the slope smooth as well is a bit trickier.

- Use your sawtooth value to index into another curve. Maybe something sin-based, or perhaps a ramp for manual control.

spline vop? smooth? Too sleepy to think this thru atm :)

- As a last resort - multisample. Take a couple of more samples with small deltas in your u-coordinate or whatever, and take an average.

I think the result will be piecewise linear, so you probably need many samples to get nice highlights.

eetu.

post-2678-124864094699_thumb.png

soft_fraction.hipnc

Link to comment
Share on other sites

Hey,

thanks eetu, good thoughts help a lot!

my conclusions: smooth only smooths the inner values of it's range. with spline in theory one can build a lot kind of curves, in this case i wasn't able to get what i want. after tweaking seven keys with no acceptable results, i gave up.

the solution i reached is more like your first idea. first i solarized the fraction and applied the power after that. then i took the complementer, smoothed it to get rid of the discontinuity around zero. multiplying this with the original fraction gives a fairly decent result with rather good controls.

thanks again!

bmt

ps: inspecting your vop's output in the motion view is a very good idea. thanks for that also!

post-2183-124865958136_thumb.png

soft_fract.hipnc

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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.

×
×
  • Create New...