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:21:23 EDT (-0400)
  Re: Starting and ending an action on specified frames.  
From: Chris Colefax
Date: 21 Nov 2000 18:14:21
Message: <3a1b01cd@news.povray.org>
Rob Verweij <rg.### [at] worldonlinenl> wrote:
> 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?

The Automatic Clock Modifier macros allow you to keyframe values like this
very simply:

#include "autoclck.mcr"
#declare ExplosionBrightness = (From (99/240, 0) To (100/240, 1) To_Using
(110/240, 0, "Decel"));

#if (ExplosionBrightness > 0)
   light_source {rgb ExplosionBrightness*<3, 2.5, 2> location ... }
#end

The macro file package can be downloaded from:

   http://www.geocities.com/ccolefax/clockmod.html


Post a reply to this message

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