POV-Ray : Newsgroups : povray.windows : Animation question.... : Re: Animation question.... Server Time
28 Jul 2024 20:19:51 EDT (-0400)
  Re: Animation question....  
From: Ken Cecka
Date: 5 Nov 1997 20:34:14
Message: <34612d58.0@aussie.org>
The clock variable works just like you would expect.  Here's a sample scene
to spin a box.  If I overlook something, I'm sorry.  I'm just typing it out
here, not testing it.  To render the scene, you have to use command line
parameters or an ini file to tell pov you are rendering an animation, and
how many frames you want.  You can set command line parameters in POV for
Windows by going to the render menu, and Edit Settings/Render.  There is a
box near the bottom labeled Command line options.  If you want to do a 30
frame animation of this scene, type +KFF30 in the box.  Next time you
render, it will do 30 frames, slowly moving the clock from 0 to 1.  Since
this acts like a percentage, multiplying the clock by 360 in the rotation
(see code below) cause the box to go through one full rotation by the end of
the animation.  Play arround with it a little and you should get the hang of
it.  This idea would work with a text object or whatever.

Ken

---begin scene file---
#include "colors.inc"

camera {
  location <0,5,-5>
}

light_source {
  <-10,10-10>
  color White
}

box {
  <-1,-1,-1>
  <1,1,1>
  pigment {Red}
  rotate <0,clock*360,0>
}
--end scene file--


TechnoMage wrote in message <345F90EE.5C1A8FD8@mindless.com>...
>I am kind of new to animation with pov....
>did one last night, rendered it all by hand (250+ frames)
>and it took me 4.5 hours.....
>to use the clock variable, all that I have to do is put it in the pov
>file right?
>
>if someone has an example of a simple, animation sequence, text
>spinning, etc. that they would be willing to let me take a look at, I
>would be most appreciative.
>
>tec### [at] mindlesscom
>"Of all the things that I have lost I miss my mind the most"
>--Jimi Hendrix
>


Post a reply to this message

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