POV-Ray : Newsgroups : povray.general : Seeking Anim advice : Re: Seeking Anim advice Server Time
14 Aug 2024 05:19:12 EDT (-0400)
  Re: Seeking Anim advice  
From: Josh English
Date: 8 Oct 2001 13:44:54
Message: <3BC1E5C5.60BBCAC@spiritone.com>
"Bob H." wrote:

> "Chaps" <cha### [at] yahoocom> wrote in message
> news:3bc17f7a$1@news.povray.org...
> >
> > To do what you say, I think that I would write something like:
> >
> > #declare Fondation_appear = 0.15
> > #declare Fondation_disappear = 0.55
> >
> > #if ((clock > Fondation_appear) & (clock < Fondation_disappear))
> >     #debug "Including Fondation\n"
> >     #include Fondation.inc
> > #end
>
> Naahhh.  #switch with #range is so much easier to use for such a thing.  :-)
> Have a look at the Doc about those.
>
> Bob H.

Actually, if each piece is going to appear for only a limited time, Chaps
solution is better. It allows for a greater flexibility.
For instance, the foundation might be visible at first, then the frames of the
walls, which might be view able while the exterior shows up,  then when the
interior walls go up, the frame can disappear, and the foundation would still
be visible.

If an item is static and going to appear, then disappear, and not move, then
testing the clock value is much more efficient in coding then switch
statements.


--
Josh English
eng### [at] spiritonecom
The POV-Ray Cyclopedia http://www.spiritone.com/~english/cyclopedia/


Post a reply to this message

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