POV-Ray : Newsgroups : povray.advanced-users : Starting and ending an action on specified frames. : Re: Starting and ending an action on specified frames. Server Time
30 Jul 2024 02:18:51 EDT (-0400)
  Re: Starting and ending an action on specified frames.  
From: Christoph Hormann
Date: 21 Nov 2000 13:43:45
Message: <3A1AC262.885414A7@schunter.etc.tu-bs.de>
Rob Verweij wrote:
> 
> Hi again,
> 
> How can I accomplish the following?
> 
> I have a 240 frames animation. In it I have several lights. I'm using
> one of those lights to simulate the bright flash of an explosion which
> starts at frame 100 and dies out a couple of frames later. I've studied
> the clock features (including the My_Clock one) but still haven't found
> a solution. Can anyone help me out?
> 
> Rob Verweij.

I'm not very experienced in animations, but how about:

#if ((clock >= 240/100) & (clock <= 240/105))

  light_source { 
    [position]
    color rgb (240/105 - clock)*10  // or whatever
  }
#end

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

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