POV-Ray : Newsgroups : povray.animations : Shed version 2 : Re: Shed version 2 Server Time
25 Apr 2024 04:00:09 EDT (-0400)
  Re: Shed version 2  
From: Klewlis
Date: 19 Feb 2017 10:35:01
Message: <web.58a9b9fee97123ee5f9209890@news.povray.org>
"Klewlis" <nomail@nomail> wrote:
> "Bald Eagle" <cre### [at] netscapenet> wrote:
> >
> > So 0 to 0.1 will be Clock1, which goes from Clock*10 = 0 to Clock*10 = 1
> > Then the next range block gets rendered from 0.11 to 0.2
> > (Clock-0.1)*10 = 0 to (Clock-0.1)*10 = 1
> >
> > Just an idea - I honestly haven't played with Chris Colefax's ClockMod macros,
> > so I can't say if that's any easier / better.
>
> #switch (frame_number)
>     #range (1, 35)
>         #declare b=b+1;
>         object { SunLight
>             rotate x*(b/2)
>         }
>     #break
>     #range (36, 60)
>         object { SunLight
>             rotate x*(b/2)
>         }
>     #break
>     #range (61, 282)
>         #declare b=b+1;
>         object { SunLight
>             rotate x*(b/2)
>         }
>     #break
> #end
>
> Do you see anything wrong with this code?  It doesn't appear to be working. The
> idea is that the shadows movement gives the perception of time passing, but no
> movement during camera transitions.  I also tried it without the #break at the
> end of each range.  POV-Ray isn't issuing any complaints about the code.

OK, I suspect the problem is in the fact that I am running the animation from an
..ini file.  This would be the same problem I had with the #while command.

Ken


Post a reply to this message

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