POV-Ray : Newsgroups : povray.animations : How to make the animation in pov-ray work : Re: How to make the animation in pov-ray work Server Time
26 Jun 2024 14:16:32 EDT (-0400)
  Re: How to make the animation in pov-ray work  
From: Adam van Kuik
Date: 1 Jan 2004 15:25:55
Message: <3ff48253@news.povray.org>
How do I change anything in the "command line"?  How do I turn the animation
on?

"Andrew" <ast### [at] hotmailcom> wrote in message
news:3ff47c0a$1@news.povray.org...
> Try something like this:
>
> //*************
> //This stays still
> box {<-1, -1, -1>,<1, 0, 1> texture {pigment {color rgb 0.5}
> finish {ambient 0.1 diffuse 0.9}}}
>
> //This moves and changes colour
> sphere {<-0.5 + clock, 0.15, -0.5 + clock>,0.15 texture
> {pigment {color rgb <1, 0.25 + (clock * 0.5), 0.75 - (clock
> * 0.5)>} finish {ambient 0.1 diffuse 0.9 specular 0.8
> roughness 0.0001}}}
>
> camera {location <0,5,-3> look_at <0,0.5,0>}
>
> light_source {<10,10,-10> color rgb 1}
> //*************
>
> Render using (e.g.) +KFF50 in the "command line".
>
>
> This will produce a sphere which moves steadily from <-0.5,
> 0.15, -0.5> to <0.5, 0.15, 0.5> throughout the 50 frames of
> the animation, changing colour as it does so.  The variable
> "clock" runs by default from 0 in the first frame to 1 in
> the final frame, and will therefore allow movement or colour
> change or whatever else you wish.
>
> HTH.
>
>


Post a reply to this message

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