POV-Ray : Newsgroups : povray.newusers : Can't Get Clock to Run to 2 Server Time
26 Nov 2024 12:45:35 EST (-0500)
  Can't Get Clock to Run to 2 (Message 1 to 6 of 6)  
From: CFM
Subject: Can't Get Clock to Run to 2
Date: 3 Jun 2004 19:00:02
Message: <web.40bfad1e340593d668c1f7530@news.povray.org>
What I want to do is allow the sphere I created to roll from left to right,
then to sharply curve back toward the left and moving backward into the
background along the z plane. However, I can't get it to work. What is
wrong with the following POV-ray programming language that needs to be
corrected? If there's nothing wrong with that, then what did I do wrong?

#include "colors.inc"
camera {
  location <0,3,-6>
  look_at <0,0,0>
}
light_source {<20,20,-20>color White}
plane {
  y,0
  pigment {checker color White color Black}
}
#if (clock<=1)
sphere {
  <0,0,0>, 1
  pigment {
    gradient x
    color_map {
      [0 Blue]
      [.5 Blue]
      [.5 White]
      [1 White]
    }
    scale .25
  }
  rotate <0,0,-clock*360>
  translate <-pi,1,0>
  translate <2*pi*clock,0,0>
}
#else
//(if clock is >1, we're on the second phase)
//we still want to work with a value from 0 - 1
#declare ElseClock=clock-1;
sphere {<0,0,0>,1
  pigment {
    gradient x
    color_map {
      [0 Blue]
      [.5 Blue]
      [.5 White]
      [1 White]
    }
    scale .25
  }
  rotate <0,0,ElseClock*360>
  translate <-2*pi*ElseClock,0,0>
  rotate <0,45,0>
  translate <pi,1,0>
}
#end


Post a reply to this message

From: Mike Williams
Subject: Re: Can't Get Clock to Run to 2
Date: 3 Jun 2004 21:32:06
Message: <A62DxIAYD9vAFwwL@econym.demon.co.uk>
Wasn't it CFM who wrote:
>What I want to do is allow the sphere I created to roll from left to right,
>then to sharply curve back toward the left and moving backward into the
>background along the z plane. However, I can't get it to work. What is
>wrong with the following POV-ray programming language that needs to be
>corrected? If there's nothing wrong with that, then what did I do wrong?

It works fine for me. You can't possibly have forgotten to type
"Final_Clock=2" in the command line or ini file could you? Without such
a directive the clock doesn't know that it should run to 2.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: CFM
Subject: Re: Can't Get Clock to Run to 2
Date: 4 Jun 2004 13:35:00
Message: <web.40c0b2948161adc4158ac5ba0@news.povray.org>
> It works fine for me. You can't possibly have forgotten to type
> "Final_Clock=2" in the command line or ini file could you? Without such
> a directive the clock doesn't know that it should run to 2.

Looks like I did forget. Thanks for the clear-up!

BTW, I changed the number of frames from 20 to 100, and the movie that plays
back is still just as fast as with 20: Too fast. Is there not much of a
difference between 20 frames and 100 frames?


Post a reply to this message

From: Ross
Subject: Re: Can't Get Clock to Run to 2
Date: 4 Jun 2004 14:48:09
Message: <40c0c3e9$1@news.povray.org>
"CFM" <nomail@nomail> wrote in message
news:web.40c0b2948161adc4158ac5ba0@news.povray.org...
> > It works fine for me. You can't possibly have forgotten to type
> > "Final_Clock=2" in the command line or ini file could you? Without such
> > a directive the clock doesn't know that it should run to 2.
>
> Looks like I did forget. Thanks for the clear-up!
>
> BTW, I changed the number of frames from 20 to 100, and the movie that
plays
> back is still just as fast as with 20: Too fast. Is there not much of a
> difference between 20 frames and 100 frames?
>

20 frames would be less than a second worth of video. 100 frames would be
about 4 seconds worth of video. assuming something near 25 frames per
second. i think some encoders offer an option to specify how many frames per
second you want.


Post a reply to this message

From: Stephen McAvoy
Subject: Re: Can't Get Clock to Run to 2
Date: 4 Jun 2004 15:13:37
Message: <nei1c016v28nb8eeso894pl2f1bkqukb4c@4ax.com>
On Fri,  4 Jun 2004 13:34:12 EDT, "CFM" <nomail@nomail> wrote:

>BTW, I changed the number of frames from 20 to 100, and the movie that plays
>back is still just as fast as with 20: Too fast. Is there not much of a
>difference between 20 frames and 100 frames?

If you are using TMPGEnc click the settings button (Bottom Right of
the window) and look at the frame rate. Divide the number of Frames by
the frame rate and that will give you the length of the animation in
seconds.
If you are using VideoMach, in Define Output there is a check box that
says "Keep Original Duration" Un-tick it.

Basically if you increase the number of frames by five and keep the
same frame rate the length of the animation should increase by a
factor of five.


Regards
        Stephen


Post a reply to this message

From: Stephen McAvoy
Subject: Re: Can't Get Clock to Run to 2
Date: 4 Jun 2004 15:20:40
Message: <sri1c09g94pjo08vuumm2hgahsuom9e2m5@4ax.com>
Oh! I forgot to add, in TMPGEnc at the right of the Progress Bar is
the number of frames encoded/Total number of frames. So at the end it
should read 100/100.

Regards
        Stephen


Post a reply to this message

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