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

Author Topic: Help on Particle System-Like Rendering  (Read 1989 times)

0 Members and 1 Guest are viewing this topic.

masskiller

  • Sr. Member
  • ****
  • Posts: 284
  • Pointers to Functions rock!
    • MSN Messenger - kyogre_jb@hotmail.com
    • View Profile
    • Email
Help on Particle System-Like Rendering
« on: April 07, 2015, 01:15:47 am »
Hi, I am particularly looking for help on the implementing of a system similar to a particle system. Particularly I do not know exactly how to start with the implementing of emitters and affectors. I also want to implement a way to use animations within the article system as a part of the effects of the creation and deletion of particles.

I understand well enough how particle systems work, however I do not really know how to implement emitters and affectors to work well with the timing to keep the emission rate consistent regardless of the framerate. I know that the Thor Library has a very good implementation of one, however I am reinventing the wheel with learning purposes and I will use the code I develop to implement other things that the Thor Particle system does not allow me to do.

Thanks in advance.
Programmer, Artist, Composer and Storyline/Script Writer of "Origin of Magic". If all goes well this could turn into a commercial project!

Finally back into the programming world!

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Help on Particle System-Like Rendering
« Reply #1 on: April 07, 2015, 09:30:10 am »
If you need an example just look at the source code of Thor.
For the theoretical part behind it, I'm sure 5min googling will reveal enough information. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

masskiller

  • Sr. Member
  • ****
  • Posts: 284
  • Pointers to Functions rock!
    • MSN Messenger - kyogre_jb@hotmail.com
    • View Profile
    • Email
Re: Help on Particle System-Like Rendering
« Reply #2 on: April 07, 2015, 06:18:12 pm »
I was doing that, however the code in Thor confused me because of some  things that I wasn't used to seeing very much. But after grinding on particular parts of C++ that I was still unfamiliar with I got most of it. I'll use this thread though once I am debugging the particle system.
Programmer, Artist, Composer and Storyline/Script Writer of "Origin of Magic". If all goes well this could turn into a commercial project!

Finally back into the programming world!