beeemtee Posted July 26, 2009 Share Posted July 26, 2009 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 Quote Link to comment Share on other sites More sharing options...
eetu Posted July 26, 2009 Share Posted July 26, 2009 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. soft_fraction.hipnc Quote Link to comment Share on other sites More sharing options...
beeemtee Posted July 27, 2009 Author Share Posted July 27, 2009 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! soft_fract.hipnc Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.