SFML community forums

General => SFML projects => Topic started by: Syntactic Fructose on May 30, 2014, 06:20:52 pm

Title: A Particle Simulation project, custom console update
Post by: Syntactic Fructose on May 30, 2014, 06:20:52 pm
Edit 3:

(http://i.imgur.com/WNB2BEY.gif)

Large update to the application, considered the first actual release for the project! There are a number of awesome new additions, check the changelog and give the program a try:

https://github.com/Syntaf/ParticleSimulator/releases

Or checkout the Github page and help contribute to the project!

https://github.com/Syntaf/ParticleSimulator

Edit 2:
A lot has changed since the last release!

Here's a short list of some of the changes from the latest release tab on the repo ;D:


Edit 1:
Hi All,

I've been developing a particle simulation program using SFML and OpenGL for a couple months now, and recently finished a new physics system for calculating the next position of each particle. Problem is I didn't exactly implement it correctly, but I'm left with a pretty cool pulsating wave of pixels. The program now correctly simulates newtons second law of motion! Check it out at the repository here:
https://github.com/Syntaf/ParticleSimulator (https://github.com/Syntaf/ParticleSimulator)
The project is currently developed by myself and Finominis, but we are always looking for more people to contribute to the project!

or play around with the program using my pre-release
https://github.com/Syntaf/ParticleSimulator/releases/tag/v0.2-alpha
Title: Re: A Particle Simulation project...with interesting physics
Post by: Jesper Juhl on May 30, 2014, 06:29:22 pm
While I can totally relate to building something from scratch for the learning experience; if you just want something that works, why not just use something like Thor's particle system: http://www.bromeon.ch/libraries/thor/v2.0/tutorial-particles.html ?
Title: Re: A Particle Simulation project...with interesting physics
Post by: Syntactic Fructose on May 30, 2014, 06:37:45 pm
While I can totally relate to building something from scratch for the learning experience; if you just want something that works, why not just use something like Thor's particle system: http://www.bromeon.ch/libraries/thor/v2.0/tutorial-particles.html ?

I'm fully aware that there are way easier solutions, I use this to test my knowledge from the site: "This Simulator is an ongoing project, and is a tool to test my knowledge and understanding of OpenGL and SFML."
Title: Re: A Particle Simulation project...now with working physics!
Post by: Syntactic Fructose on June 22, 2014, 05:28:24 pm
project updated! and works as intended surprisingly enough. Added pre-release for people to play around with.
Title: Re: A Particle Simulation project...now with working physics!
Post by: Peteck on June 22, 2014, 07:19:13 pm
I made it freeze, don't know what actually I did. Was playing around with the pre-release and well, it froze!
Title: Re: A Particle Simulation project...now with working physics!
Post by: Syntactic Fructose on June 22, 2014, 07:28:07 pm
I made it freeze, don't know what actually I did. Was playing around with the pre-release and well, it froze!

Well that's not supposed to happen... it just, completely stopped? Like zero movement?
Title: Re: A Particle Simulation project...now with working physics!
Post by: Peteck on June 22, 2014, 07:40:15 pm
Like zero movement?
Exactly, the program didn't crash! But the particles just stopped moving.
Title: Re: A Particle Simulation project...now with working physics!
Post by: Syntactic Fructose on June 22, 2014, 08:23:16 pm
Like zero movement?
Exactly, the program didn't crash! But the particles just stopped moving.

Ahh I realize why now, It's the lifetime of the particle. I set the lifetime for all particles to 100 seconds, and afterwards they can no longer be manipulated. I never actually tested beyond 100 seconds so I completely forgot to change that value heh, it's more a placeholder for when I start developing a UI and allow the user to run multple simulations without restarting the application.

Looks like for now, you get 100 seconds of runtime before rerunning :P
Title: Re: A Particle Simulation project, new and improved
Post by: Syntactic Fructose on July 09, 2014, 04:42:58 pm
New big changes in the repository
Title: Re: A Particle Simulation project, new and improved
Post by: eXpl0it3r on July 10, 2014, 09:35:45 am
New big changes in the repository
What exactly did you change? :D
Title: Re: A Particle Simulation project, new and improved
Post by: Syntactic Fructose on July 11, 2014, 05:34:18 am
New big changes in the repository
What exactly did you change? :D

Here's a short list of some of the changes from the latest release tab on the repo ;D:


Title: Re: A Particle Simulation project, custom console update
Post by: Syntactic Fructose on August 12, 2014, 11:24:25 pm
first actual release of the application, woo!
Title: Re: A Particle Simulation project, custom console update
Post by: Ztormi on August 22, 2014, 12:56:53 pm
Beautiful! I love these kinds of projects.