POV-Ray : Newsgroups : povray.binaries.animations : Walking penguin gif animation 500kb : Re: Walking penguin gif animation 500kb Server Time
1 Jul 2024 23:29:40 EDT (-0400)
  Re: Walking penguin gif animation 500kb  
From: Chris B
Date: 22 Aug 2006 07:17:36
Message: <44eae7d0$1@news.povray.org>
"RusHHouR" <gee### [at] mailnu> wrote in message 
news:web.44eadec87b13791e47d3ae5e0@news.povray.org...
> Hey, this is my walking "Pippi"!
>
> http://img289.imageshack.us/img289/3618/pippiarlogokt1.gif
> (same as attached)
>
> Thing is I rendered the walk in four different renders with 10 frames 
> each.
> 1) right foot forward
> 2) right foot back (number one backwards)
> 3) left foot forward
> 4) left foot back (number three backwards)
>
> I've looked at the #if and #else section in the documentation but once 
> again
> I prove not to be the sharpest tool in the box... Can the #if/#else 
> command
> be used to divide the same scene into four different sets of clocks? And I
> need the clock to go from 0-1 four times. Can this be done, and if so; 
> how?
>

Hi,

You could do a search and replace of 'clock' with 'MyClock' then #declare 
MyClock = 4*clock;

You could then use nested #if, #else, #end statements to do the job in a 
single animation:

#if (MyClock<1)
  ...
#else
  #if (MyClock < 2)
    ....
  #else
    .... etc. ....
  #end
#end

You could also use #switch, #range, #break and #end which would probably be 
a little neater:

#switch (MyClock)
  #range (0,1)
     ....
  #break
  #range (1,2)
    ....
  #break
  ....   etc. ....
#end


> Hope to make this thread a bit more lively if nothing else... :)
>
> //RusHHouR
>

Yes it certainly does :-)

p.s. The separation of the posts is about six times your penguin's stride, 
yet he covers the distance in just two paces giving him the appearance of 
gliding forward. So you may consider making it a six pace animation or 
investing in Ice skates.

Regards,
Chris B.


Post a reply to this message

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