POV-Ray : Newsgroups : povray.general : Waves in arches.pov Server Time
27 Nov 2024 14:28:53 EST (-0500)
  Waves in arches.pov (Message 1 to 5 of 5)  
From: Alessio Sangalli
Subject: Waves in arches.pov
Date: 5 Sep 2008 04:13:36
Message: <48c0ea30$1@news.povray.org>
Hi, I would you "animate" the waves in arches.pov to simulate a 'live' sea?

bye
Alessio


Post a reply to this message

From: Chris B
Subject: Re: Waves in arches.pov
Date: 5 Sep 2008 05:56:21
Message: <48c10245$1@news.povray.org>
"Alessio Sangalli" <ale### [at] manowebcom> wrote in message 
news:48c0ea30$1@news.povray.org...
> Hi, I would you "animate" the waves in arches.pov to simulate a 'live' 
> sea?
>
> bye
> Alessio
>

One very simple technique is to translate the texture at an angle 'into' the 
surface based on the clock variable.
For example, with the plane in Dan Farmers arches.pov you can add a 
translation into the end of the normal definition:

// Define the ocean surface
plane { y, -10.0
   texture {
      T_Chrome_2D
      normal {
         waves 0.05
         frequency 5000.0
         scale 3000.0
         translate <0.1,-5,0.15>*clock
      }
   }
}

This uses a slightly different section of the 3D waves pattern for each 
frame, thereby animating the surface normal.

If you need a cyclic animation with a repeating cycle of images then you can 
also (with a bit of fiddling around) use a rotation to achieve similar 
results but bringing the same section of the 3D texture back onto the 
surface at the completion of the cycle as was used at the start of the 
cycle.

Regards,
Chris B


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Waves in arches.pov
Date: 7 Sep 2008 17:07:18
Message: <48c44286$1@news.povray.org>
Chris B wrote:

> // Define the ocean surface
> plane { y, -10.0
>   texture {
>      T_Chrome_2D
>      normal {
>         waves 0.05
>         frequency 5000.0
>         scale 3000.0
>         translate <0.1,-5,0.15>*clock
>      }
>   }
> }

For the waves pattern, you can also adjust the phase itself.


Post a reply to this message

From: Alessio Sangalli
Subject: Re: Waves in arches.pov
Date: 8 Sep 2008 06:10:26
Message: <48c4fa12@news.povray.org>
Christian Froeschlin wrote:

> For the waves pattern, you can also adjust the phase itself.

Yes, at the end I used the phase:

http://www.manoweb.com/alesan/temp/analemma.avi

It is only a preview, I gladly accept critics, I will put out the source
code asap (now it's a mess due to continuos modifications)

bye!
as


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Waves in arches.pov
Date: 8 Sep 2008 15:02:56
Message: <48c576e0$1@news.povray.org>
Alessio Sangalli wrote:

> It is only a preview, I gladly accept critics

For a quick preview of some animated waves, 40MB is rather large ;)


Post a reply to this message

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