POV-Ray : Newsgroups : povray.general : How to create a water scene with ripples or waves? : Re: How to create a water scene with ripples or waves? Server Time
16 Nov 2024 11:15:21 EST (-0500)
  Re: How to create a water scene with ripples or waves?  
From: JK
Date: 22 Aug 1998 18:30:50
Message: <35DF3781.A28674BC@hotmail.com>
K. Tyler wrote:

> Daniel Sullivan wrote:
>
> > Hi there-
> >
> > I'm looking for some sample code for creating a water scene with
> > ripples.
> > The thing I do'nt understand is  how to use waves or ripples inside the
> > pigment or texture statement as no examples are given in the pov 3.1
> > docs.
> > Thanks in advance.
> >
> > Best regards,
> >
> > Ron Hicks
> > http://www.geocities.com/SoHo/1006
> > sig### [at] hotmailcom
>
>     Waves and ripples are generaly used inside a normal statement.
>
> example:
>
> plane{y,0
>   texture{
>     pigment{rgbf<.8,.85,1,.3>}
>       normal{ripples .4 scale 1}
>         finish{ambient .3 diffuse .1 reflection .3}}}
>
> I just did this off the top of my head so if it's not exacly right excuse me.
> The priciple is correct though.
>
> K.Tyler

Ok, that's easy enough, but...
If you just use a rippled normal, you get to see an annoying repetitive pattern
in the surface. Try blending the ripples with some bumps or something. That looks
much better and 'more randomly'.

JK


Post a reply to this message

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