POV-Ray : Newsgroups : povray.general : animation and media Server Time
1 Nov 2024 23:14:45 EDT (-0400)
  animation and media (Message 1 to 2 of 2)  
From: Thomas Hille
Subject: animation and media
Date: 5 Jul 1999 12:15:20
Message: <3780da18@news.povray.org>
Hi!
I created a scene with a sphere containing a cloud. This works pretty fine.
But now I want to do a little animation with this scene. But the cloud ist
static. That looks a little stupid. How can I make the cloud changing? I
tried Phase, but that only affects the color_map. Anybody an idea?

Thomas

Here the code for the sphere I use:
-----
sphere { < 0, 0, 0>, 1.5
        pigment {
                color rgbf<1, 1, 1, 1>
        }
        finish {
                ambient 0
                diffuse 0
        }
        interior {
                media

                        scattering { 1, rgb < 1, 0.125, 0.125 > }
                        intervals 5
                        samples 1, 10
                        confidence 0.9999
                        variance 1/1000
                        density {
                                spherical
                                ramp_wave
                                color_map {
                                        [0.0 color rgb <0, 0, 0>]
                                        [0.3 color rgb <0.5, 0, 0>]
                                        [1.0 color rgb <1, 0.5, 0.5>]
                                }
                                turbulence 1
                        }
                }
        }
        hollow
        translate < 0, 0, -1 >
}
-----


Post a reply to this message

From: Alex Vandiver
Subject: Re: animation and media
Date: 5 Jul 1999 13:24:03
Message: <3780EA1B.84E342C7@tiac.net>
Thomas Hille wrote:

> Hi!
> I created a scene with a sphere containing a cloud. This works pretty fine.
> But now I want to do a little animation with this scene. But the cloud ist
> static. That looks a little stupid. How can I make the cloud changing? I
> tried Phase, but that only affects the color_map. Anybody an idea?

Heya!  For one, you could try messing with the turbulence and rotation.  The
following code works, but isn't stellar:
// All your code the same, except:
density {
  spherical
  ramp_wave
  color_map {
    [0.0 color rgb <0, 0, 0>]
    [0.3 color rgb <0.5, 0, 0>]
    [1.0 color rgb <1, 0.5, 0.5>]
  }
  octaves 6+2*sin(clock*4.2+31)                 // The +31,+64,and+82 are just
  lambda 2+0.5*sin(clock*2.61828182846+64)      // for offset, the clock* are
  turbulence 1+0.25*sin(clock*1.61804488875+82) // to confuse the phase, and
  rotate <clock*16,clock*32,clock*42>           // the rotate just helps.
}


Post a reply to this message

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