MegaGlest Forum

Archives (read only) => Vanilla Glest => General discussion => Topic started by: will on 6 May 2011, 20:34:43

Title: particles: a dome/shield effect
Post by: will on 6 May 2011, 20:34:43
I'd like to make a particle that approximates a dome.  It should be very nearly transparent.

Is there a way to have the particles only be at certain distance from the centre?

They all seem to be travelling from the centre, meaning it is the centre that is brightest because it is there that, at any time, the most particles are.

Title: Re: particles: a dome/shield effect
Post by: John.d.h on 6 May 2011, 21:03:17
I'd like to make a particle that approximates a dome.  It should be very nearly transparent.

Is there a way to have the particles only be at certain distance from the centre?

They all seem to be travelling from the centre, meaning it is the centre that is brightest because it is there that, at any time, the most particles are.
You could use a single particle with a very large scale to roughly approximate a dome.  MG also has a sort of glowing particle thing for the Persian Genie.  That's about all I can think of.
Title: Re: particles: a dome/shield effect
Post by: will on 9 May 2011, 09:44:19
thx john you gave me the leads that got it working.

I will have to update the wiki to explain all the fields in particles better.
Title: Re: particles: a dome/shield effect
Post by: ultifd on 9 May 2011, 10:38:48
Some screenies please?  ;D
Title: Re: particles: a dome/shield effect
Post by: Omega on 10 May 2011, 00:42:46
https://docs.megaglest.org/Particles

And of course, don't forget you can post examples of particles on the gallery: https://docs.megaglest.org/Particles/Gallery
Title: Re: particles: a dome/shield effect
Post by: will on 10 May 2011, 06:41:05
Some screenies please?  ;D

A donation for Mr War; he posted screenshots of an early version here (https://forum.megaglest.org/index.php?topic=7021.msg72657#msg72657):

(http://i53.tinypic.com/igkv90.png)

The particle draws in front of the model in the g3d viewer, which lost me some time during development.

The latest version is much prettier, but don't know if Mr War will take it yet..
Title: Re: particles: a dome/shield effect
Post by: ultifd on 10 May 2011, 06:45:03
Oh, I didn't realize it was that. Cool. Can't wait for the latest version!
Title: Re: particles: a dome/shield effect
Post by: Zoythrus on 12 May 2011, 18:21:38
it's be nice if there was a way to say in the particle XML "dont start the rendering of the particles until you get to a certain point." this could be used to make a more official dome
Title: Re: particles: a dome/shield effect
Post by: will on 12 May 2011, 18:27:26
yes I've been wishing that.

It could be simple as a min and max radius for the generation, although I can think of more complex versions that would allow more sophisticated effects.
Title: Re: particles: a dome/shield effect
Post by: Omega on 13 May 2011, 04:35:16
Again, it would be awesome if you'd post the code and explanation on the wiki:

https://docs.megaglest.org/Particles/Gallery
Title: Re: particles: a dome/shield effect
Post by: will on 13 May 2011, 05:28:04
yes, I'm waiting for Mr War to release a beta.  That seems only fair.