POV-Ray : Newsgroups : povray.general : a function : Re: a function Server Time
19 Nov 2024 01:43:02 EST (-0500)
  Re: a function  
From: Dennis Miller
Date: 26 May 2002 12:04:54
Message: <3cf107a6$1@news.povray.org>
Thanks very nice (that was easy!). Now for a harder question - is there any
way to change a 2D function such as this into a 3D function? I got some very
nice images by animating the function (changing float values over time), but
I would really like to add a third dimension to the scene; would you have
any suggestions on that?
Thanks again for your help. I'll post a few of my favorites to pbi shortly..
D.

"ingo" <ing### [at] homenl> wrote in message
news:Xns### [at] povrayorg...
> in news:3cf01d6a$1@news.povray.org Dennis Miller wrote:
>
> > That's very handy. How would you add some color to that?
> > D.
>
> >>   pigment {
> >>     function {E*sin(A*sin(I*x) + B*cos(J*y))
> >>               + F*cos(C*cos(K*x) + D*sin(L*y))}
>
>        color_map {
>          [0, rgb <1,0,1>]
>          [0.5, rgb <0,1,0>]
>          [1, rgb <0,0,1>]
>        }
>
> >>     //sine_wave
> >>   }
>
> Ingo


Post a reply to this message

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