POV-Ray : Newsgroups : povray.animations : Shed version 2 : Re: Shed version 2 Server Time
26 Apr 2024 06:55:05 EDT (-0400)
  Re: Shed version 2  
From: Klewlis
Date: 19 Feb 2017 09:45:01
Message: <web.58a9ae03e97123ee5f9209890@news.povray.org>
"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.


Post a reply to this message

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