POV-Ray : Newsgroups : povray.beta-test : Confused about "waves" : Re: Confused about "waves" Server Time
31 Jul 2024 04:16:55 EDT (-0400)
  Re: Confused about "waves"  
From: Mike Williams
Date: 14 Sep 2001 02:45:44
Message: <RouPXCAedao7EwVQ@econym.demon.co.uk>
Wasn't it Tony[B] who wrote:
>AMD Athlon-C 1.33GHz, 768MB of SDRAM, 133MHz bus, Win2K w/SP2, POV-Ray 3.5
>Beta.1
>
>I'm trying to make a heightfield, with waves emanating at the center.
>
>height_field
>{
> function 300,300
> {
>  pigment
>  {waves color_map {[0 rgb 0][1 rgb 1]} scale 0.05 translate <1,0,2*clock>/2
>noise_generator 2}
>  }
> }
> translate -<1,0,1>/2 scale <200,20,200>
> pigment {rgb 1}
>}
>
>I tried as you can see to place the ripples which appear at the back of the
>heightfield in the center. I did two animations, one translating -2*clock
>and another translating 2*clock. The result of both was identical. The
>emanation point went further back. Am I missing something or is there a bug
>here?


The thing that's strange is that a function's two dimensions are coded
as x and y, but the object is oriented in the x,z plane.

To move the waves forward in the z direction of the scene you have to
perform a translation in the y direction of the pigment.

I'm not sure what you're trying to do with the clock, but 
translate <1,1,0>/2 produces a static image with the ripples centred,
whereas you seem to be expecting translate <1,0,1>/2 to do that.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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