Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Gas (simple particle system)  (Read 4090 times)

0 Members and 1 Guest are viewing this topic.

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Gas (simple particle system)
« on: January 20, 2011, 01:37:54 am »
Helloo!,


I'm posting now to introduce an... old project! I've written it with a friend of mine about 2 years ago in approximatively 2 days. I was, at this time, too lazy too post it here.

But! I've been talking again about it with this friend, thus I thought of showing it here again. And here it is, I hope you'll like it :) .

Don't expect much from it. It's just a simulation of the movements of some particles. You can change the strength of the interactions, invert the polarization or reset the speed of every particle. You can even get some weird shapes depending on your skill :P .



Sources (1.3 MB)
Binary for Windows (2.2 MB)
Binary for Linux (1.9 MB)
Binary for Mac OS X (4.9 MB)


Enjoy!
Want to play movies in your SFML application? Check out sfeMovie!

tntexplosivesltd

  • Full Member
  • ***
  • Posts: 163
    • View Profile
Gas (simple particle system)
« Reply #1 on: January 20, 2011, 04:32:17 am »
Looks pretty good. The source is nice and clean, luckily I can read french  :wink:

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Gas (simple particle system)
« Reply #2 on: January 20, 2011, 10:43:30 am »
Quote from: "tntexplosivesltd"
Looks pretty good. The source is nice and clean, luckily I can read french  :wink:

Uh yeah indeed I didn't pay attention to the languages I used for the comments, it's a little bit mixed :D

When you say "looks", do you mean you couldn't test it?
Want to play movies in your SFML application? Check out sfeMovie!

tntexplosivesltd

  • Full Member
  • ***
  • Posts: 163
    • View Profile
Gas (simple particle system)
« Reply #3 on: January 20, 2011, 10:48:09 am »
No, it works. It's pretty good. Just one question:
Why when all the particles are brought together and then their polarity is changed do they expand away from each other in a square shape? If all their repulsion factors are the same, wouldn't they expand in a circular patterns?

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Gas (simple particle system)
« Reply #4 on: January 20, 2011, 10:55:08 am »
Indeed they should, this happens because my way of computing the interactions is wrong. But I could get some funny shapes thanks to this mistake, thus I didn't fix it :) .
Want to play movies in your SFML application? Check out sfeMovie!

CJ_COIMBRA

  • Full Member
  • ***
  • Posts: 112
    • ICQ Messenger - 13077864
    • View Profile
    • http://www.cjcoimbra.com
    • Email
Gas (simple particle system)
« Reply #5 on: January 21, 2011, 02:34:36 am »
Very nice! Is it written with SFML only?
CJ

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Gas (simple particle system)
« Reply #6 on: January 21, 2011, 11:54:41 am »
Yup, with SFML only, as you can see in the source files :) .
Want to play movies in your SFML application? Check out sfeMovie!