POV-Ray : Newsgroups : povray.general : How do you get more than one ripple... : Re: How do you get more than one ripple... Server Time
13 Aug 2024 09:32:27 EDT (-0400)
  Re: How do you get more than one ripple...  
From: Hendrik Knaepen
Date: 23 Sep 1998 16:20:43
Message: <360949F9.13DC597@skynet.be>
Patrick Dugan wrote:

> I have a cylinder that I am trying to display two ripple points in.
> As
> though there are two points
> from which the ripples originate.   I have tried the code below but
> only the
> last defined normal takes
> effect.   Is there any way to apply 2 ripples (or more) to one object?
>
>    cylinder {<0,0,0> <0,0,0.3>, 2.4
>       texture{Soft_Silver}
>       normal { average normal_map {[ ripples 0.8 scale 0.04 translate
> <-1,0,0> ]}}
>       normal { average normal_map {[ ripples 0.8 scale 0.04 translate
> <
> 1,0,0> ]}}
>    }

I'm not sure, but I think you can make the ripples using an average of
two (or more) wood-patterns with (I think) sine_wave and a little
turbulence.  If you use the wood-pattern, you can exactly set the
position of the ripples, because that pattern consists of concentric
circles around the origin, and the ripples' origin is a random point (at
least as far as I remember).
Hope this works.

ZK

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
     Hendrik Knaepen (hen### [at] skynetbe)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
          Idee Software -- Vlaamse ShareWare
            E-Mail: ide### [at] inamecom
         WWW: http://www.surf.to/ideesoftware
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Bezoek ons voor gratis Nederlandstalige spellen!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Post a reply to this message

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