Author Topic: [done]particle acceleration  (Read 3200 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
[done]particle acceleration
« on: 4 August 2014, 16:03:56 »
There is a new pull request https://github.com/MegaGlest/megaglest-source/pull/24 about particles which can accelerate.
Please comment/discuss
« Last Edit: 20 November 2014, 00:25:50 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: particle acceleration
« Reply #1 on: 4 August 2014, 16:22:01 »
The pull request says
Quote
For example with negative speed + spherical shape you can make very nice effects.

I'd like to see an example of exactly what this looks like, because I'm having difficulty imagining it.

As for other use cases, attacks that shoot rockets might look interesting with acceleration. I think for really long range attacks, though (the thing I have in mind is the nuclear missile that I previously implemented in Military, which was able to target anywhere on the map), we'd need a way to specify the maximum speed, so that the projectile won't accelerate too fast. Rather, it'd start slow and eventually reach a max speed (very much like a real missile).

Edit the MegaGlest wiki: http://docs.megaglest.org/

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

titi_son

  • Draco Rider
  • *****
  • Posts: 284
  • titi_son
    • View Profile
Re: particle acceleration
« Reply #2 on: 5 August 2014, 17:40:21 »
As for other use cases, attacks that shoot rockets might look interesting with acceleration. I think for really long range attacks, though (the thing I have in mind is the nuclear missile that I previously implemented in Military, which was able to target anywhere on the map), we'd need a way to specify the maximum speed, so that the projectile won't accelerate too fast. Rather, it'd start slow and eventually reach a max speed (very much like a real missile).
Sadly this is not for projectiles but only particles :( (unit particles and splash particles )
I may try speed-up for projectiles later.

I made a youtube video and i hope you can see what this does:

https://www.youtube.com/watch?v=jGjIlm57OTY

(click to show/hide)
My first Tilseset: SPRING :) (included in Megaglest )

Secret Hint: To play online join the IRC #megaglest-lobby on freenode which is the lobby chat ingame. So you can chat with or wait for people in the lobby without running megaglest all the time.

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: particle acceleration
« Reply #3 on: 5 August 2014, 18:00:39 »
Ah, I see what you mean now. I was assuming attack projectiles, not unit particles (any chance we could see both?). Looks good.
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

titi_son

  • Draco Rider
  • *****
  • Posts: 284
  • titi_son
    • View Profile
Re: particle acceleration
« Reply #4 on: 5 August 2014, 19:07:24 »
Ah, I see what you mean now. I was assuming attack projectiles, not unit particles (any chance we could see both?). Looks good.
I suppose we can. I just didn't look at it until now: :)
My first Tilseset: SPRING :) (included in Megaglest )

Secret Hint: To play online join the IRC #megaglest-lobby on freenode which is the lobby chat ingame. So you can chat with or wait for people in the lobby without running megaglest all the time.

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: particle acceleration
« Reply #5 on: 29 August 2014, 12:24:22 »
How do yo make a spherical or conical shape?

Would you mind posting those particle xmls for reference?
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

jammyjamjamman

  • Administrator
  • Horseman
  • ********
  • Posts: 210
    • View Profile
Re: particle acceleration
« Reply #6 on: 29 August 2014, 18:13:18 »
It's all in the xml examples, these are the lines in question:

Code: [Select]
<shape value="spherical">
Code: [Select]
<shape value="conical">
The ring and the crown both use the conical shape

 
"All right, I've been thinking. When life gives you lemons? Don't make lemonade. Make life take the lemons back! Get mad! 'I don't want your damn lemons! What am I supposed to do with these?'" ~Cave Johnson, Portal 2

 

anything