POV-Ray : Newsgroups : povray.animations : How to animate ??????????????? : Re: How to animate ??????????????? Server Time
26 Jun 2024 01:53:22 EDT (-0400)
  Re: How to animate ???????????????  
From: Stephen
Date: 22 Nov 2006 03:50:00
Message: <web.45640ddc86d65c51f1cb1e660@news.povray.org>
"sitha" <nsi### [at] excitecom> wrote:
> Hi,
> Sorry if I dont explain my problem clearly.
> Say I want to create 100 frames of bitmap files from a pov file. In the pov
> file vertex and face indices are fixed. they will not change. I want to
> change each time texture rgb color only. This rgb here I am going to give
> the value from my analsis result for each frame. My question is would it be
> possible to give the rgb changes in one pov file or I should create pov
> files corresponding to the rgb value changes. Bcs now what I did was,
> created 100 0f pov fils corresponding to the rgb value.
>
> Pls help me.

You would think that Pov-Ray was designed for what you want to do :-)
Example: Render using the command line options +kfi1 +kff10

global_settings {
  assumed_gamma 1.0
}

camera {
  location  <0.0, 0.5, -4.0>
  direction 1.5*z
  right     x*image_width/image_height
  look_at   <0.0, 0.0,  0.0>
}

sky_sphere {
  pigment {
    gradient y
    color_map {
      [0.0 rgb <0.6,0.7,1.0>]
      [0.7 rgb <0.0,0.1,0.8>]
    }
  }
}

light_source {
  <0, 0, 0>
  color rgb <1, 1, 1>
  translate <-30, 30, -30>
}

plane {
  y, -1
  pigment { color rgb <0.7*(1-clock*clock),0.5*(1-clock),0.3*clock> } /*
clock modifies rgb */
}
sphere {
  0.0, 1
  texture {
  pigment {
    color rgbf <0.7*clock,0.5*(1-clock),0.3*(1-clock*clock), clock> /* clock
modifies rgbf */
  }
    }
  }

// Stephen


Post a reply to this message

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