POV-Ray : Newsgroups : povray.advanced-users : Starting and ending an action on specified frames. Server Time
30 Jul 2024 04:22:39 EDT (-0400)
  Starting and ending an action on specified frames. (Message 1 to 7 of 7)  
From: Rob Verweij
Subject: Starting and ending an action on specified frames.
Date: 21 Nov 2000 13:33:59
Message: <3A1ABFF3.8F6B0B1@worldonline.nl>
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.


Post a reply to this message

From: Christoph Hormann
Subject: Re: Starting and ending an action on specified frames.
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

From: Sander
Subject: Re: Starting and ending an action on specified frames.
Date: 21 Nov 2000 15:02:50
Message: <MPG.1484f3a2598ef20a9896ad@news.povray.org>
in povray.advanced-users, Christoph Hormann says...

> 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
> 
> 
Should't that rather be:
#if ((clock >= 100/240) & (clock <= 105/240))
  etc.

??

En dan een exponentieel aflopende intensiteit van de lichtbron??
-- 
Regards - groeten,  Sander


Post a reply to this message

From: Christoph Hormann
Subject: Re: Starting and ending an action on specified frames.
Date: 21 Nov 2000 15:38:48
Message: <3A1ADD57.29EDA514@schunter.etc.tu-bs.de>
Sander wrote:
> 
> Should't that rather be:
> #if ((clock >= 100/240) & (clock <= 105/240))
>   etc.

Ooops, sure it should, sorry.

Christoph

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


Post a reply to this message

From: Chris Colefax
Subject: Re: Starting and ending an action on specified frames.
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

From: Rob Verweij
Subject: Re: Starting and ending an action on specified frames.
Date: 22 Nov 2000 03:36:25
Message: <3A1B8562.C428827B@worldonline.nl>
Hey Chris!

Thanx, I already have your ACM macro installed but forgot all about it. In
fact I downloaded all of your stuff more then a year ago (and when upgrades
came available I downloaded them again). Your stuff is cool. I'm no math whiz
and those include and macro files really help a lot.
For this particular animation I'm doing I'm using your Lens-FX and Galaxy
include files as well. It's gonna be cool and I'll upload an image and an
animation into their respective binary group when the complete animation is
done.

Thanks for your reply.

PS.: Although I haven't showed you much, I 'm still working on that
pyrotechniques with POV-Ray stuff we E-mailed about some time ago. Actually
this animation has got something to do with that!

Chris Colefax schreef:

> 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

From: Matt Giwer
Subject: Re: Starting and ending an action on specified frames.
Date: 22 Nov 2000 19:06:24
Message: <3A1C5F80.DD6BC3CE@ij.net>
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?

	Make your own frame counter in a separate file. 

	#fopen counter, frame 

	Index frame and have that run the explosion. That way you can call it
anytime. 

-- 
France sent Inspector Clouseau to assist Lt. Frank Drebbin 
in the investigation of Waco. 
	-- The Iron Webmaster, 305


Post a reply to this message

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