More
See all Show me
49. ofxOpenCL for openFrameworks 1M Particle Demo
1 month ago
46. iScream for iPhone
6 months ago
38. ofxMSAPhysics v2
9 months ago
36. Gold Dust for iPhone
10 months ago
35. Reincarnation
10 months ago
34. MSAShape3D Demo
10 months ago
30. Gold demo
1 year ago
NOTE: The Vimeo compression destroys most of the particles, so I suggest downloading the quicktime from the bottom right.
--------------------
This is a demo of an OpenCL particle system based on Rui's original example at vimeo.com/7298380.

This is 1,000,000 particles being interacted on by mouse, updated on GPU (with springy behaviours ) via an OpenCL kernel, data written straight to a VBO and rendered - without ever coming back to host (i.e. main memory + cpu etc.)

Frame-rate is around 100-200fps running on a macbook pro with GF 9600GT. That's 100-200fps on a laptop! (albeit a pretty decent one), but I'm dying to try this on a GF 285 GTX - which has 7.5x the number of cores, 2.5x the fillrate and 3.5x the memory bandwidth - for only £250!!

Written using ofxOpenCL addon for openframeworks, C++ (though most of the critical stuff is just OpenCL).

Source code and more info at memo.tv/opencl_in_openframeworks_example_1_milion_particles

Credits

90 Likes

  • Olivier Solère 1 month ago
    Very good Memo, as always.
  •  
  • itsthejayj 1 month ago
    Mmmm beautiful and so powerful, curse my unsupported ATI card! so am i right in thinking vades openframework plugin will allow this to run in QC :)
  • Memo Akten plus 1 month ago
    as awesome as vade's ofxQCPlugin is, I don't think it's needed to run this particular particle system in QC. Since it is just an OpenCL kernel you could probably run it directly using the OpenCL Patch. Worth trying out.
  • With my limited coding skills it is not so easy as "directly". I think it would be worth making the patch available on your site, only a suggestion. Great work, I should mention.
  •  
  • toneburst plus 1 month ago
    Amazing, as always.

    a|x
  •  
  • AlluvioneMediatica plus 1 month ago
    I love it.

    is the algorythm close to the electricSheep one?
    Are fractals close to be rendered so fast?

    good job.
    Shit, I have to study sooo much ;)
  • Memo Akten plus 1 month ago
    I have no idea what the electicsheep algorithm is, but the algorithm here is surprisingly simple: the mouse is pushing particles away and center of the screen is attracting particles (that much is from Rui's original kernel), and additionally if they slow down beyond a threshold (i.e. they come to rest), they are re-spawned near the mouse cursor depending on where they were before they died. The whole thing is just a couple of lines of code (and can probably be optimized even more).
  •  
  • David Dalmazzo 1 month ago
    heavy metal
  •  
  • Theo Watson plus 1 month ago
    wow - completely nuts. 200fps thats overkill :)
  •  
  • Mike Creighton plus 1 month ago
    Out of curiosity, what are you using to do your screen capture?
  • Memo Akten plus 1 month ago
    I'm using snapz pro. It says it captures at 30fps, but I don't think the capture is even that, will give Quicktime X screen capture when I get a chance.
  •  
  • seth sandler 1 month ago
    sweet at always! :)
  •  
  • Tom B 1 month ago
    yea, amazing.
  •  
  • vade 1 month ago
    Ok, I need a new machine. Fuck. Thats hot.
  •  
  • nuthinking 1 month ago
    this is impressive, good effort! Glad to be a MAC!
  •  
  • Mathieu Foucher plus 1 month ago
    great , congratulations
  •  
  • ja.e 1 month ago
    .... i find no words ... this is great! good work!
  •  
  • watz 1 month ago
    Holy crap.
  •  
  • baldakino 1 month ago
    wow! really like that gritty feeling. ....But why 200fps- I can't even see that fast!
  •  
  • Friedrich Kirschner plus 29 days ago
    completely nuts!
  •  
This conversation is missing your voice. Take five seconds to join Vimeo or log in.

Advertisement

Statistics

  •  
    plays
    likes
    comments
  • Total
    plays 4,246
    likes 90
    comments 20
  • Dec 3rd
    plays 3
    likes 0
    comments 0
  • Dec 2nd
    plays 62
    likes 0
    comments 0
  • Dec 1st
    plays 59
    likes 0
    comments 0
  • Nov 30th
    plays 69
    likes 0
    comments 0
  • Nov 29th
    plays 44
    likes 0
    comments 0
  • Nov 28th
    plays 38
    likes 0
    comments 0
  • Nov 27th
    plays 49
    likes 1
    comments 0
  • Nov 26th
    plays 71
    likes 1
    comments 0
Previous Week

Downloads

Please join Vimeo or log in to download the original file. It only takes a few seconds.