Author Topic: particles: a dome/shield effect  (Read 1974 times)

will

  • Golem
  • ******
  • Posts: 783
    • View Profile
particles: a dome/shield effect
« 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.


John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: particles: a dome/shield effect
« Reply #1 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.

will

  • Golem
  • ******
  • Posts: 783
    • View Profile
Re: particles: a dome/shield effect
« Reply #2 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.

ultifd

  • Airship
  • ********
  • Posts: 4,443
  • The Glest Video Guy :) The one and only. :P
    • View Profile
    • My Youtube Channel
Re: particles: a dome/shield effect
« Reply #3 on: 9 May 2011, 10:38:48 »
Some screenies please?  ;D

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: particles: a dome/shield effect
« Reply #4 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
« Last Edit: 18 June 2016, 17:20:32 by filux »
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

will

  • Golem
  • ******
  • Posts: 783
    • View Profile
Re: particles: a dome/shield effect
« Reply #5 on: 10 May 2011, 06:41:05 »
Some screenies please?  ;D

A donation for Mr War; he posted screenshots of an early version here:



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..

ultifd

  • Airship
  • ********
  • Posts: 4,443
  • The Glest Video Guy :) The one and only. :P
    • View Profile
    • My Youtube Channel
Re: particles: a dome/shield effect
« Reply #6 on: 10 May 2011, 06:45:03 »
Oh, I didn't realize it was that. Cool. Can't wait for the latest version!

Zoythrus

  • Guest
Re: particles: a dome/shield effect
« Reply #7 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

will

  • Golem
  • ******
  • Posts: 783
    • View Profile
Re: particles: a dome/shield effect
« Reply #8 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.

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: particles: a dome/shield effect
« Reply #9 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
« Last Edit: 18 June 2016, 13:41:51 by filux »
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

will

  • Golem
  • ******
  • Posts: 783
    • View Profile
Re: particles: a dome/shield effect
« Reply #10 on: 13 May 2011, 05:28:04 »
yes, I'm waiting for Mr War to release a beta.  That seems only fair.