|
![](/i/fill.gif) |
Am 07.04.2016 um 16:26 schrieb Jaime Vives Piqueres:
> El 07/04/16 a las 15:52, clipka escribió:
>> I wouldn't use altitude, just the plain slope.
>>
>> Given that the slope pattern is a lot faster than any proximity
>> pattern, I think it should be worth another try.
>>
>
> But just plain "slope y" shows foam also on "valley" parts of the
> surface, not only on the crests. Or are you suggestion another approach?
From what I see the waves aren't sinusoidal, but have "sharp" peaks, so
a high slope should be the proper indicator.
Then again, I must concede that this idea crumbles if the peaks aren't
perfectly sharp after all.
Let's take a step backward:
What you want is foam at the crests, i.e. near local maxima.
Local maxima can be identified by a zero 1st derivative (aka slope) and
negative 2nd derivative (aka curvature).
It should be possible to analyze the f_ridged_mf() function in order to
construct the 1st and 2nd derivative functions, and use the resulting
functions as a basis for a foam pattern. (If you want to avoid function
analysis, you could still design functions for the slope and curvature
that effectively take samples from the original function.)
Post a reply to this message
|
![](/i/fill.gif) |