POV-Ray : Newsgroups : povray.animations : Sphere only rotates 50% Server Time
24 Nov 2024 15:20:26 EST (-0500)
  Sphere only rotates 50% (Message 1 to 2 of 2)  
From: Chuck Roberts
Subject: Sphere only rotates 50%
Date: 18 Aug 1999 14:49:35
Message: <37BB0079.87B2E06B@accn.org>
I'm using POV 3.1g with the Autoclk macro. I have a rotating planet that
only rotates 50% of the way around. I want to make an animation loop so
this will rotate 100% of the way around and then continue. How come this
won't rotate all the way around?

sphere
{<0,0,0> 1
  texture
  {
    pigment
    {
      image_map
      {
        sys "marsflat.bmp"
        map_type 1    // 1=spherical mapping
        interpolate 2 // smooth it
        once          // don't tile image, just one copy
        
      }
      // transform it to unit-size (-1 to +1)
//      translate -0.5*(x+y) // center on the origin
//      scale .7              // make it unit-sized
    }
    finish {ambient 0.3}
  }
  rotate
    From (0, <45, 0, 0>)  //(start_time, <start_values>)
    Using ( "", 1, 1, "")
    To (4, <45, 720, 0> ) //(end_time, <end_values>)
}


Post a reply to this message

From: Chris Colefax
Subject: Re: Sphere only rotates 50%
Date: 18 Aug 1999 21:13:56
Message: <37bb5a54@news.povray.org>
Chuck Roberts <rob### [at] accnorg> wrote :
> I'm using POV 3.1g with the Autoclk macro. I have a rotating planet that
> only rotates 50% of the way around. I want to make an animation loop so
> this will rotate 100% of the way around and then continue. How come this
> won't rotate all the way around?
>
> sphere
> {<0,0,0> 1

>   rotate
>     From (0, <45, 0, 0>)  // (start_time, <start_values>)
>     Using ( "", 1, 1, "")
>     To (4, <45, 720, 0> ) // (end_time, <end_values>)
> }

I would suspect the reason is the 4 you are using in the To () value: this
means the planet will make two full rotations by the time POV-Ray's clock
value reaches four (and it's not too hard to see that works out to one half
rotation at clock = 1...).  If you've used the four because you want to use
other than POV-Ray's default normalised clock, then you will have to change
your command line settings (+KF4, I believe).

To avoid having to do this every time you want to render the animation, I
would usually suggest keeping to the 0 to 1 range and fitting your animation
sequences into this.  If you wanted to think of the animation in, say,
seconds rather than clock units, you could use some simple conversion
constants, eg:

   #declare Sec = 1/4; // Four seconds between clock = 0 and clock = 1

   From (0*Sec, <45, 0, 0>)  To (4*Sec, <45, 720, 0>)


Post a reply to this message

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