POV-Ray : Newsgroups : povray.binaries.animations : Fairies? Server Time
20 Jul 2024 13:26:50 EDT (-0400)
  Fairies? (Message 8 to 17 of 17)  
<<< Previous 7 Messages Goto Initial 10 Messages
From: Rune
Subject: Re: Fairies?
Date: 11 Feb 2001 11:35:11
Message: <3a86bf3f@news.povray.org>
"Tony[B]" wrote:
> "Pretty straightforward"?!

Erm, hehe, pretty straightforward to *me* since I've done POV-script
particle systems before, so there was not much new in this one... :D

I'm also sure other's here who have worked with particle systems would think
that this one is nothing special. It looks nice nonetheless.

> I can't even imagine how to do that... Explain...
> please.

Ok, you asked for it. Let's see, where to start...

The core of the particle systems is two arrays, one containing the current
location of each particle and the other containing the last location.
There's also an array for the life of each particle (it goes downwards, and
when it reaches zero the particle dies) and one for the color (yes, all the
particles have slightly different colors).

The same calculations are done over and over again. In each calculation step
all the particles are moved slightly 1) , some particles die 2) and some new
ones are born 3).

1) Each particle is moved by it's current velocity (current location minus
last location) plus gravity. More forces could be added if necessary. The
life is also decreased by an amount.

2) In each calculation-step some particles die (Life goes below 0). It
seemed like I couldn't use #undef with individual array elements, so I set
the color to <0,0,0> instead and detected empty elements that way instead.

3) In each calculation step new particles are also created (they are created
in empty elements). Their initial "last" location is set equal to the
current position of the emitter-point. Their initial "current" location is
the same as the "last", but with some randomness added. The particle is also
given a color (user-defined color plus some randomness) and it's life is
initialised.

For each frame in the animation a number of calculation steps are done.
After the last step for a given frame, the glows are created according to
the latest calculated locations, and after that, file I/O is used to save
the data in a file to make it available to the next frame in the animation.

So you see, it's pretty straightforward! ;)

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated January 28)
/ Also visit http://www.povrayusers.org


Post a reply to this message

From: Dearmad
Subject: Re: Fairies?
Date: 11 Feb 2001 13:03:24
Message: <3A86D574.8EE725BF@teleport.com>
beautiful- details please!


-- 
Yeah, but ask yourself... why are you really
interested?
http://www.teleport.com/~dearmad


Post a reply to this message

From: Dearmad
Subject: Re: Fairies? [found the details]
Date: 11 Feb 2001 13:07:20
Message: <3A86D660.AD338FDD@teleport.com>
oh here are the details... thanks!!!
-- 
Yeah, but ask yourself... why are you really
interested?
http://www.teleport.com/~dearmad


Post a reply to this message

From: Marc-Hendrik Bremer
Subject: Re: Fairies?
Date: 11 Feb 2001 13:18:33
Message: <3a86d779@news.povray.org>
Ok, I don't buy it ;o)  Good to know that such effect can be achieved with
glows.

So little time, so much to try ...

Marc-Hendrik


Post a reply to this message

From: Rune
Subject: Re: Fairies?
Date: 11 Feb 2001 13:55:17
Message: <3a86e015@news.povray.org>
"Dearmad" wrote:
> beautiful

Thanks!

> - details please!

I see you found them. If you need to know more, just ask! :)

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated January 28)
/ Also visit http://www.povrayusers.org


Post a reply to this message

From: Tony[B]
Subject: Re: Fairies?
Date: 11 Feb 2001 18:10:16
Message: <3a871bd8@news.povray.org>
> Erm, hehe, pretty straightforward to *me* since I've done POV-script
> particle systems before, so there was not much new in this one... :D

Well, that would explain it. :)

> Ok, you asked for it. Let's see, where to start...
> So you see, it's pretty straightforward! ;)

Yup, 'piece of cake'... I can't think like that... :) I wish I could!


Post a reply to this message

From: Andy Cocker
Subject: Re: Fairies?
Date: 11 Feb 2001 19:07:22
Message: <3a87293a@news.povray.org>
Rune, would it be possible for me to see the code that produced this,
please?

--
Andy Cocker

---------------------------------------------------------------
listen to my music at:
www.mp3.com/lunarland
---------------------------------------------------------------

'I spilled spot remover on my dog. He's gone now. '
'I went to a restaurant that serves "breakfast at any time."
So I ordered french toast during the Renaissance. '

 - Steven Wright.
---------------------------------------------------------------


Post a reply to this message

From: Rune
Subject: Re: Fairies?
Date: 12 Feb 2001 04:29:24
Message: <3a87acf4@news.povray.org>
"Andy Cocker" wrote:
> Rune, would it be possible for me to see the code that
> produced this, please?

I don't share my messy code as it is now, but if there's any interest I can
make an include file out of this. But right now I'll be away for some days.
I'll be home again Thursday evening. See you!

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated January 28)
/ Also visit http://www.povrayusers.org


Post a reply to this message

From: Greg M  Johnson
Subject: Re: Fairies?
Date: 15 Feb 2001 08:33:54
Message: <3A8BD958.9D9B6728@my-dejanews.com>
Rune wrote:

> This is something I've wanted to do all since glows first came out.

I'm assumng you *could not* do this when glows first came out--there was a
restriction against translation, no? Am I correct, and in which versions are
glows now translatable?

Very cool, "magical."


Post a reply to this message

From: Rune
Subject: Re: Fairies?
Date: 15 Feb 2001 13:00:16
Message: <3a8c1930@news.povray.org>
"Greg M. Johnson" wrote:
> I'm assumng you *could not* do this when glows first came
> out--there was a restriction against translation, no?

I'm not using any translations, so I could indeed have done it when glows
first came out. I simply specify the locations.

> Am I correct, and in which versions are glows now translatable?

Dunno.

> Very cool, "magical."

Thanks! "Magical" is what I was going for!

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated January 28)
/ Also visit http://www.povrayusers.org


Post a reply to this message

<<< Previous 7 Messages Goto Initial 10 Messages

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