POV-Ray : Newsgroups : povray.binaries.animations : Walking penguin gif animation 500kb Server Time
31 Oct 2024 23:28:38 EDT (-0400)
  Walking penguin gif animation 500kb (Message 1 to 5 of 5)  
From: RusHHouR
Subject: Walking penguin gif animation 500kb
Date: 22 Aug 2006 06:40:01
Message: <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?

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

//RusHHouR


Post a reply to this message


Attachments:
Download 'pippiarlogo.gif' (540 KB)

Preview of image 'pippiarlogo.gif'
pippiarlogo.gif


 

From: Chris B
Subject: Re: Walking penguin gif animation 500kb
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

From: Chris B
Subject: Re: Walking penguin gif animation 500kb
Date: 22 Aug 2006 07:29:49
Message: <44eaeaad$1@news.povray.org>
> And I need the clock to go from 0-1 four times.
> Can this be done, and if so; how?

Oh yes, and to get 0-1 four times from a value of MyClock that goes from 0-4 
you can use:

#declare PointInCycle = mod(MyClock,1)

which gives you the remainder after an integer division by 1.

Regards,
Chris B.


Post a reply to this message

From: RusHHouR
Subject: Re: Walking penguin gif animation 500kb
Date: 22 Aug 2006 09:50:01
Message: <web.44eb0aebf6935b6f47d3ae5e0@news.povray.org>
"Chris B" <c_b### [at] btconnectcomnospam> wrote:
> [very helpful contents]

Chris, you have helped me several times before, and once again I owe you
thanks. If I ever get a descent web page for my animations you will be
credited, I'll give you that. :)

About the fence poles, hehe, you should have seen them in scale 1! ;)
Firstly, however,  I will start with sorting out the rendering issue, then
it will be much easier to adjust the details in one scene ...instead of
four.

Well, now I have to check if this have made me any wiser!


Post a reply to this message

From: RusHHouR
Subject: Re: Walking penguin gif animation 500kb
Date: 22 Aug 2006 13:35:01
Message: <web.44eb3f7ef6935b6f47d3ae5e0@news.povray.org>
And so, here's the probable final version:
The "pole slide" is at least somewhat smaller. ;)
So is the image size, compromised with quality of course... :/

http://img56.imageshack.us/img56/84/pippiarlogo4fg3.gif

Cheers! :)
//RusHHouR


Post a reply to this message


Attachments:
Download 'pippiarlogo4.gif' (342 KB)

Preview of image 'pippiarlogo4.gif'
pippiarlogo4.gif


 

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