POV-Ray : Newsgroups : povray.binaries.images : Ocean : Re: Ocean Server Time
28 Sep 2024 18:45:59 EDT (-0400)
  Re: Ocean  
From: Jaime Vives Piqueres
Date: 7 Apr 2016 11:13:32
Message: <5706791c$1@news.povray.org>
El 07/04/16 a las 16:54, clipka escribió:
> Then again, I must concede that this idea crumbles if the peaks
> aren't perfectly sharp after all.

   Well, the function heighfield I'm using is surely having flat
triangles there. For perfectly sharp crests I guess I would have to use
crazy resolutions.

> 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.)
>

   :O ...that's a too advanced approach for me: I barely passed maths at
school.

--
jaime


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.