"Tom York" <alp### [at] zubenelgenubi 34sp com> wrote:
> You can do this directly without all that tedious mucking about with
> waveform tricks and gradients. Scalar functions can be used directly as
> patterns (in POV v3.6.1's manual, this is section 3.5.11.15: "Function as
> pattern").
>
> For your sine example I'm guessing the density would look like this:
>
> density {
> function { 0.5 *(1 + sin(y*4*(2*pi))) }
> color_map {
> [0 color red 1]
> [1 color green 1]
> }
> }
>
Wow, thanks Tom! That looks like exactly what I am looking for!
I went round and round for days through the documentation and never ran into
that one!
Thanks!
Steve
Post a reply to this message
|