POV-Ray : Newsgroups : povray.animations : Multi stage animations Server Time
24 Nov 2024 17:32:44 EST (-0500)
  Multi stage animations (Message 1 to 6 of 6)  
From: Paul Blake
Subject: Multi stage animations
Date: 17 Mar 1999 19:33:48
Message: <36f049ec.0@news.povray.org>
Please can you offer some help on this problem, I have explored allmost all
resouces available to me.
here is a simple animation which will rotate a ball on first the X axis and
then the Y axis, no problem so far.
I want to create a multi stage animation with more than just 2 stages for
example:

Stage 1, rotate ball on the X axis
Stage 2, rotate ball on the Y axis
Stage 3, rotate ball on the Z axis
Stage 4, rotate ball on combinations of the ubove

once i have grasped the method of creating animations with more than two
sequence of events i will be able to create more complex animations.

Please! Please! help

Thanks in advance

Paul


Here is a simple scene that i created with the help of the povray
documentation.

#include "colors.inc"
camera
{ location  <0.0, 0.5, -4.0>
  direction 1.5*z
  right     4/3*x
  look_at   <0.0, 0.0,  0.0> }

light_source
{ 0*x // light's position (translated below)
  color red 1.0  green 1.0  blue 1.0  // light's color
  translate <0, 4, -10> }

sphere { 0.0, 1
texture {pigment {radial frequency 8}}

//First stage of the animation
//Rotate X Axis 360 deg.
#if ( clock<1 )
rotate < clock*360, 0 ,0 >

//Second stage of animation
//Rotate y Axis 360 deg.

#else
rotate < 0, 0, (clock-1)*360 >

#end
}


Post a reply to this message

From: Ken
Subject: Re: Multi stage animations
Date: 17 Mar 1999 21:59:54
Message: <36F06B7F.7D9B78D9@pacbell.net>
Paul Blake wrote:
> 
> Please can you offer some help on this problem, I have explored allmost all
> resouces available to me.
> here is a simple animation which will rotate a ball on first the X axis and
> then the Y axis, no problem so far.
> I want to create a multi stage animation with more than just 2 stages for
> example:
> 
> Stage 1, rotate ball on the X axis
> Stage 2, rotate ball on the Y axis
> Stage 3, rotate ball on the Z axis
> Stage 4, rotate ball on combinations of the ubove
> 
> once i have grasped the method of creating animations with more than two
> sequence of events i will be able to create more complex animations.
> 
> Please! Please! help
> 
> Thanks in advance
> 
> Paul
> 
> Here is a simple scene that i created with the help of the povray
> documentation.
> 
> #include "colors.inc"
> camera
> { location  <0.0, 0.5, -4.0>
>   direction 1.5*z
>   right     4/3*x
>   look_at   <0.0, 0.0,  0.0> }
> 
> light_source
> { 0*x // light's position (translated below)
>   color red 1.0  green 1.0  blue 1.0  // light's color
>   translate <0, 4, -10> }
> 
> sphere { 0.0, 1
> texture {pigment {radial frequency 8}}
> 
> //First stage of the animation
> //Rotate X Axis 360 deg.
> #if ( clock<1 )
> rotate < clock*360, 0 ,0 >
> 
> //Second stage of animation
> //Rotate y Axis 360 deg.
> 
> #else
> rotate < 0, 0, (clock-1)*360 >
> 
> #end
> }

In the news group povray.announce-frequently-asked-questions is a complete
list of Pov related on line tutorials. Some of these are relaed to animation
and this topic is covered quite well. There is also a new tutorial not on the
list yet that might really interest you. It si lcated at the link below.

http://www.puzzlecraft.com/cm/ClockMod.html


You can link to the tutorials faq with this link:

http://www.povray.org/cgi-bin/dnewsweb?cmd=article&group=povray.announce.frequently-asked-questions&item=7

-- 
Ken Tyler

mailto://tylereng@pacbell.net


Post a reply to this message

From: Paul Blake
Subject: Re: Multi stage animations
Date: 17 Mar 1999 22:09:31
Message: <36f06e6b.0@news.povray.org>
Thanks
I am reading with great intrest about the clockmod include and macro files,
it still seems rather complex at the moment but i am going to look at the
included scene files which should give me a better understanding of how to
use the files.


Post a reply to this message

From: Martin Magnusson
Subject: Re: Multi stage animations
Date: 18 Mar 1999 05:30:23
Message: <36F0D0EC.4B995C83@student.uu.se>
Paul Blake wrote:
> 
> Please can you offer some help on this problem, I have explored allmost all
> resouces available to me.
> here is a simple animation which will rotate a ball on first the X axis and
> then the Y axis, no problem so far.
> I want to create a multi stage animation with more than just 2 stages for
> example:
> 
> Stage 1, rotate ball on the X axis
> Stage 2, rotate ball on the Y axis
> Stage 3, rotate ball on the Z axis
> Stage 4, rotate ball on combinations of the ubove

I usually use a #switch statement to make the different "stages" of the
animation - something like this (and I usually let each clock unit be
equivalent to one second):

#switch (clock)
  #range (0, 1)
  /* First part */
    #declare Clock = clock; 
    /* Everything in the scene uses Clock in stead of clock,
     * so that I can play around with the clock value. */
    #declare BallRot = <Clock*200, 0, 0>
    /* Rotate the ball 200 degrees during the first second */
  #break
  #range(1, 2)
    #declare Clock = clock - 1;
    /* Clock again runs from 0 through 1 */
    #declare BallRot = <1*200, Clock*150, 0>
    /* The ball was rotated x*200 before, now rotate it 150 degrees
     * around the y axis. */
  #break
  /* ...part 3 inserted here... */
  #range (3, 4.1) 
  /* You should make the end of the interval a bit larger, otherwise
   * the final frame may not be rendered correctly. */
  #break
#end

You could also have a look at the scene files for my entries in the IRTC
animation rounds - Four Seasons in the Oct-Jan '98 round, and Revenge od
the Dragon Lord in the Apr-Jul '98 round.

Good luck!

-- 
Martin Magnusson
Mar### [at] studentuuse
http://www.geocities.com/SoHo/9946/


Post a reply to this message

From: Paul Blake
Subject: Re: Multi stage animations
Date: 18 Mar 1999 08:47:00
Message: <36f103d4.0@news.povray.org>
I must be doing something right i was actualy looking at the switch range
and break operators for making multi stage animations but i could not get
them working, with your example i can build on that and develope the
techniqe further, once again thanks for your help


Post a reply to this message

From: Josh English
Subject: Re: Multi stage animations
Date: 12 Apr 1999 18:29:45
Message: <37126596.49205F00@spiritone.com>
This reply is probably too late, but check out

http://www.spiritone.com/~english/animaker/animaker.html

which is on my website and I use a variation of the #switch statement. The
thing works and hoepfully it explains it well enough. I haven't touched the
project for a while but if you are stuck, maybe it will help

Paul Blake wrote:

> Please can you offer some help on this problem, I have explored allmost all
> resouces available to me.
> here is a simple animation which will rotate a ball on first the X axis and
> then the Y axis, no problem so far.
> I want to create a multi stage animation with more than just 2 stages for
> example:
>
> Stage 1, rotate ball on the X axis
> Stage 2, rotate ball on the Y axis
> Stage 3, rotate ball on the Z axis
> Stage 4, rotate ball on combinations of the ubove
>
> once i have grasped the method of creating animations with more than two
> sequence of events i will be able to create more complex animations.
>
> Please! Please! help
>
> Thanks in advance
>
> Paul
>
> Here is a simple scene that i created with the help of the povray
> documentation.
>
> #include "colors.inc"
> camera
> { location  <0.0, 0.5, -4.0>
>   direction 1.5*z
>   right     4/3*x
>   look_at   <0.0, 0.0,  0.0> }
>
> light_source
> { 0*x // light's position (translated below)
>   color red 1.0  green 1.0  blue 1.0  // light's color
>   translate <0, 4, -10> }
>
> sphere { 0.0, 1
> texture {pigment {radial frequency 8}}
>
> //First stage of the animation
> //Rotate X Axis 360 deg.
> #if ( clock<1 )
> rotate < clock*360, 0 ,0 >
>
> //Second stage of animation
> //Rotate y Axis 360 deg.
>
> #else
> rotate < 0, 0, (clock-1)*360 >
>
> #end
> }


Post a reply to this message

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