POV-Ray : Newsgroups : povray.animations : instant appearance Server Time
24 Nov 2024 12:05:38 EST (-0500)
  instant appearance (Message 1 to 9 of 9)  
From: Rick Adams
Subject: instant appearance
Date: 18 Apr 2000 12:54:26
Message: <benboomREMOVE_THIS_PART-C83EF9.09511318042000@news.povray.org>
I am wondering how to go about having an object appear instantly in a 
POV animation. Specifically, I am working with moving light sources 
(death rays, as it happens :-) that appear at the snout of a ray gun and 
then fly off. Currently I am using some really inelegant ways of doing 
this, such as putting them really far away then translating them into 

ground, but there must be a better way.





Thanks,

RA


Post a reply to this message

From: Mike Weber
Subject: Re: instant appearance
Date: 18 Apr 2000 13:42:29
Message: <38fc9e85$1@news.povray.org>
I would use the clock like this:

#if (clock > .5)
 object(laser)
#endif



--
Mike

wk: mik### [at] pyxiscom  www.pyxis.com
hm: mwe### [at] sciticom  www.geocities.com/mikepweber


"Rick Adams" <ben### [at] xprtnet> wrote in message
news:benboomREMOVE_THIS_PART-C83EF9.09511318042000@news.povray.org...
> I am wondering how to go about having an object appear instantly in a
> POV animation. Specifically, I am working with moving light sources
> (death rays, as it happens :-) that appear at the snout of a ray gun and
> then fly off. Currently I am using some really inelegant ways of doing
> this, such as putting them really far away then translating them into

> ground, but there must be a better way.
>



>
> Thanks,
>
> RA


Post a reply to this message

From: Rick Adams
Subject: Re: instant appearance
Date: 18 Apr 2000 19:00:32
Message: <benboomREMOVE_THIS_PART-C33E4F.15571918042000@news.povray.org>
In article <38fc9e85$1@news.povray.org>, "Mike Weber" 
<mik### [at] pyxiscom> wrote:

> I would use the clock like this:
> 
> #if (clock > .5)
>  object(laser)
> #endif

Thanks!. Very simple; I like that.


Post a reply to this message

From: Bob Hughes
Subject: Re: instant appearance
Date: 18 Apr 2000 22:03:21
Message: <38fd13e9@news.povray.org>
If you want multiple instances the thing to do is use #switch with #range.  These
directives are practically made for
animation.  Example:

#switch (clock)
#range (0.3,0.5) // for a 0 to 1 clock
// do the ray here
#break
#end


Bob

"Rick Adams" <ben### [at] xprtnet> wrote in message
news:benboomREMOVE_THIS_PART-C33E4F.15571918042000@news.povray.org...
| In article <38fc9e85$1@news.povray.org>, "Mike Weber"
| <mik### [at] pyxiscom> wrote:
|
| > I would use the clock like this:
| >
| > #if (clock > .5)
| >  object(laser)
| > #endif
|
| Thanks!. Very simple; I like that.


Post a reply to this message

From: Rick Adams
Subject: Re: instant appearance
Date: 18 Apr 2000 23:04:58
Message: <benboomREMOVE_THIS_PART-4A86B9.20014518042000@news.povray.org>
In article <38fd13e9@news.povray.org>, "Bob Hughes" 
<per### [at] aolcom?subject=PoV-News:> wrote:

> If you want multiple instances the thing to do is use #switch with 
> #range.  These directives are practically made for
> animation.  Example:
> 
> #switch (clock)
> #range (0.3,0.5) // for a 0 to 1 clock
> // do the ray here
> #break
> #end

Does that mean that the other example won't let you do multiples? I used 
it in my currently rendering animation, but just once, and it seemed to 
work fine and I can't see why you couldn't use it for multiple death 
rays, or whatever. What is the advantage this way? (I know there must be 
one, I just don't see it.)

RA


Post a reply to this message

From: Ken
Subject: Re: instant appearance
Date: 18 Apr 2000 23:12:10
Message: <38FD23C3.DF54931C@pacbell.net>
Rick Adams wrote:
> 
> In article <38fd13e9@news.povray.org>, "Bob Hughes"
> <per### [at] aolcom?subject=PoV-News:> wrote:
> 
> > If you want multiple instances the thing to do is use #switch with
> > #range.  These directives are practically made for
> > animation.  Example:
> >
> > #switch (clock)
> > #range (0.3,0.5) // for a 0 to 1 clock
> > // do the ray here
> > #break
> > #end
> 
> Does that mean that the other example won't let you do multiples? I used
> it in my currently rendering animation, but just once, and it seemed to
> work fine and I can't see why you couldn't use it for multiple death
> rays, or whatever. What is the advantage this way? (I know there must be
> one, I just don't see it.)
> 
> RA

I don't do much animation work but I believe the difference is that the
first example will cause the death ray to appear at clock cycle 0.5 and
persist until it reaches a value of one - until the last frame of the
animation. With the second example you can have the death ray appear at
a clock value of 0.3 and then dissapear at the clock value of 0.5. The
second method offers a little more flexibility than does the first.

-- 
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Bob Hughes
Subject: Re: instant appearance
Date: 19 Apr 2000 00:08:27
Message: <38fd313b@news.povray.org>
"Ken" <tyl### [at] pacbellnet> wrote in message news:38FD23C3.DF54931C@pacbell.net...
| >
| > Does that mean that the other example won't let you do multiples? I used
| > it in my currently rendering animation, but just once, and it seemed to
| > work fine and I can't see why you couldn't use it for multiple death
| > rays, or whatever. What is the advantage this way? (I know there must be
| > one, I just don't see it.)
|
| I don't do much animation work but I believe the difference is that the
| first example will cause the death ray to appear at clock cycle 0.5 and
| persist until it reaches a value of one - until the last frame of the
| animation. With the second example you can have the death ray appear at
| a clock value of 0.3 and then dissapear at the clock value of 0.5. The
| second method offers a little more flexibility than does the first.

That's pretty much it, and for simplicity really.  You have to start nesting those
"#if" directives to get the same
result.  Can get difficult to follow.

Bob


Post a reply to this message

From: Rick Adams
Subject: Re: instant appearance
Date: 19 Apr 2000 10:53:42
Message: <benboomREMOVE_THIS_PART-1A7DD9.07502819042000@news.povray.org>
In article <38fd313b@news.povray.org>, "Bob Hughes" 
<per### [at] aolcom?subject=PoV-News:> wrote:


> | I don't do much animation work but I believe the difference is that the
> | first example will cause the death ray to appear at clock cycle 0.5 and
> | persist until it reaches a value of one - until the last frame of the
> | animation. With the second example you can have the death ray appear at
> | a clock value of 0.3 and then dissapear at the clock value of 0.5. The
> | second method offers a little more flexibility than does the first.
> 
> That's pretty much it, and for simplicity really.  You have to start 
> nesting those "#if" directives to get the same
> result.  Can get difficult to follow.

Okay, I understand. It wasn't an issue in the animation I'm doing now 
since I send the death ray off out of the picture, never to be seen 
again (it's more like the rays they used in Forbidden Planet, it you 
remember that one), but your way makes them able to disappear on cue, 
too. That's probably lots more useful for most apllications.

Thanks, everybody.


Post a reply to this message

From: Mike Weber
Subject: Re: instant appearance
Date: 19 Apr 2000 14:25:40
Message: <38fdfa24$1@news.povray.org>
A good example would be a flashing light.

--
Mike

wk: mik### [at] pyxiscom  www.pyxis.com
hm: mwe### [at] sciticom  www.geocities.com/mikepweber


"Rick Adams" <ben### [at] xprtnet> wrote in message
news:benboomREMOVE_THIS_PART-1A7DD9.07502819042000@news.povray.org...
> In article <38fd313b@news.povray.org>, "Bob Hughes"
> <per### [at] aolcom?subject=PoV-News:> wrote:
>
>
> > | I don't do much animation work but I believe the difference is that
the
> > | first example will cause the death ray to appear at clock cycle 0.5
and
> > | persist until it reaches a value of one - until the last frame of the
> > | animation. With the second example you can have the death ray appear
at
> > | a clock value of 0.3 and then dissapear at the clock value of 0.5. The
> > | second method offers a little more flexibility than does the first.
> >
> > That's pretty much it, and for simplicity really.  You have to start
> > nesting those "#if" directives to get the same
> > result.  Can get difficult to follow.
>
> Okay, I understand. It wasn't an issue in the animation I'm doing now
> since I send the death ray off out of the picture, never to be seen
> again (it's more like the rays they used in Forbidden Planet, it you
> remember that one), but your way makes them able to disappear on cue,
> too. That's probably lots more useful for most apllications.
>
> Thanks, everybody.


Post a reply to this message

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