POV-Ray : Newsgroups : povray.newusers : How to rotate the camera in a circular path? Server Time
30 Jun 2024 14:47:22 EDT (-0400)
  How to rotate the camera in a circular path? (Message 1 to 2 of 2)  
From: gregtom6
Subject: How to rotate the camera in a circular path?
Date: 6 Apr 2011 12:50:01
Message: <web.4d9c988bf7689b73dca78c960@news.povray.org>
Hy everybody!

Yes, I know there's an info about this in the POV-Ray documentation, but that
doesn't work for me.
If I put this code to my file:
camera {  //  Camera Camera02
  location  <     3,      19.8,       5>
  sky       <    0.00000,     0.00000,     1.00000> // Use right handed-system
  up        <        0.0,         0.0,         1.0> // Where Z is up
  right     <    1.87861,         0.0,         0.0> // Right Vector is adjusted
to compensate for spherical (Moray) vs. planar (POV-Ray) aspect ratio
  angle         54.40000    // Vertical      30.600
  look_at   <      1.004,       0.410,       3.675> // Following SuperQ008
  rotate <0,0,clock*360>
}

The animation will consist of the same frame. However the document says that's
work.
In the ini file:
Input_File_Name=nevermind.pov
Initial_Frame=0
Final_Frame=3
Initial_Clock=1
Final_Clock=4

However, if I remove the "*360" string from the coordinate, it works, but that's


Post a reply to this message

From: Alain
Subject: Re: How to rotate the camera in a circular path?
Date: 6 Apr 2011 13:54:00
Message: <4d9ca8b8$1@news.povray.org>

> Hy everybody!
>
> Yes, I know there's an info about this in the POV-Ray documentation, but that
> doesn't work for me.
> If I put this code to my file:
> camera {  //  Camera Camera02
>    location<      3,      19.8,       5>
>    sky<     0.00000,     0.00000,     1.00000>  // Use right handed-system
>    up<         0.0,         0.0,         1.0>  // Where Z is up
>    right<     1.87861,         0.0,         0.0>  // Right Vector is adjusted
> to compensate for spherical (Moray) vs. planar (POV-Ray) aspect ratio
>    angle         54.40000    // Vertical      30.600
>    look_at<       1.004,       0.410,       3.675>  // Following SuperQ008
>    rotate<0,0,clock*360>
> }
>
> The animation will consist of the same frame. However the document says that's
> work.
> In the ini file:
> Input_File_Name=nevermind.pov
> Initial_Frame=0
> Final_Frame=3
> Initial_Clock=1
> Final_Clock=4
>
> However, if I remove the "*360" string from the coordinate, it works, but that's

>
>
>





Remove the initial_clock and final_clock from your ini.

The rotation of the camera assume that you use a "standard" clock whose 
value change in the 0~1 range.


change the *360 by *90.

Personaly, for an animation, I almost never use an ini file, but use the 
command line option:
+kff4
for a 4 frame animation of the currently open scene file.
For a full circle rotation, it's usualy advisable to add +kc. 
cyclical_animation=1 if using an ini file. Otherwise, the first and last 
frames will be identical.
+kff4 +kc



Alain


Post a reply to this message

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