Particle Library for Open Frameworks

I am currently working on a particle library, here is a demo of it in action, this was generated with a mere 10 lines of code using my library. More information to follow, let me know what you think! (Please view in 720p)

http://www.youtube.com/watch?v=Q1SlyXMaXj4

EDIT:
Source is now on GitHub: https://github.com/krobison/OpenFrameworks-Particle-Library

Nice! - Were you thinking of releasing this as an addon?

Possibly! Its primary goal is for me to experiment with c++; I am learning it as a sophomore in college (computer science at the Colorado School of Mines). If I further develop it into an easy-to-use library, I would love to release it as an addon. I need to clean up some of the code before I post source, but it will come soon.

Hey @mosquitobird11,
this looks really nice.
you should push this to github or something just in the current state and then fix it to release it as an addon. This way you can get some help from the community.

:slight_smile:

1 Like

Thanks for the advice! I will put it up on github soon for sure, I already have an account over there, that would be excellent!

EDIT: due to my holidays schedule, I probably wont be able to upload anything until early January, but it will come!

I have finally returned from the holidays and decided to upload this onto github! I have removed some of the unfinished features I had in the code, and tried my best to polish everything a little bit. What remains is the basics, as well as the source in testApp.cpp that created the video I linked to in the beginning of this thread. I am by no means an expert programmer, or an expert with github, so please let me know if I have made any glaring mistakes! Hopefully with some help from the community this could turn into something!
GitHub:
https://github.com/krobison/OpenFrameworks-Particle-Library

hey! if your intent is to publish this as an OF addon which others should use, then the current repo structure and name are wrong. Name has to start with “ofx”, so ofxParticleLibrary sounds reasonable. the intended structure can be found at https://github.com/benben/ofxAddonTemplate

thanks for sharing!

Thanks for the advice! I think for now, I want to work on improving the functionality of the library, adding features, and fixing bugs. After that, it should be relatively easy to modify the structure if I deem it worthy of an addon! :). If anyone has creative suggestions, or would like to fork the repo on github, feel free!

i can try to fork and adpat it to the template, It shouldn’t be too difficult. Anyway thanks for sharing it!

Thank you very much, and you’re welcome!

congratulations!
nice really great stuff!

Can I ask 2 questions though?

In pclSystem.h file inside your pclSystem class declaration you were using a namespace pclSystem:: before your function declarations
why did you do that? …is it because you implement them inside the class?
The reason I am asking is because… it gave me a compiling error and I had to remove them to compile…
(I use of 007)

Also… why not use some typedef enum for your particle types,… to make your life easier? :slight_smile:

again… GREAT WORK! Thanks for sharing mate!

In pclSystem.h file inside your pclSystem class declaration you were using a namespace pclSystem:: before your function declarations
why did you do that? …is it because you implement them inside the class?
The reason I am asking is because… it gave me a compiling error and I had to remove them to compile…
(I use of 007)

With Ubuntu i solved that problem declaring it in the ,cpp file, Anyway, if you want leave it as it is, you can add a -fpermissive C_FLAGS in config.make. take a look at my modifications here: https://github.com/kalwalt/OpenFrameworks-Particle-Library

Thank’s for the heads up kalwalt!, indeed lots of ways to solve this… on mac I just removed the pclSystem:: part
so… this is just a matter of different compiler right? pc compiler allowing that syntax… hm.

Thanks for the questions, and honestly, I have no answers as to why I did that, other than I am somewhat unexperienced ;), but thank you! Also, if you have made some changes to my repo, would you mind submitting a pull request? thanks again!

hi @mosquitobird11, i will send a pull request when i have a bit of time, i’m very busy at the moment…!