More
See all Show me
49. ofxOpenCL for openFrameworks 1M Particle Demo
25 days ago
46. iScream for iPhone
6 months ago
38. ofxMSAPhysics v2
9 months ago
35. Reincarnation
9 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

87 Likes

  • Olivier Solère 25 days ago
    Very good Memo, as always.
  •  
  • itsthejayj 25 days 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 22 days 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 25 days ago
    Amazing, as always.

    a|x
  •  
  • AlluvioneMediatica plus 25 days 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 24 days 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 25 days ago
    heavy metal
  •  
  • Theo Watson plus 25 days ago
    wow - completely nuts. 200fps thats overkill :)
  •  
  • Mike Creighton plus 25 days ago
    Out of curiosity, what are you using to do your screen capture?
  • Memo Akten plus 24 days 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 25 days ago
    sweet at always! :)
  •  
  • Tom B 24 days ago
    yea, amazing.
  •  
  • vade 24 days ago
    Ok, I need a new machine. Fuck. Thats hot.
  •  
  • nuthinking 24 days ago
    this is impressive, good effort! Glad to be a MAC!
  •  
  • Mathieu Foucher plus 24 days ago
    great , congratulations
  •  
  • ja.e 23 days ago
    .... i find no words ... this is great! good work!
  •  
  • watz 23 days ago
    Holy crap.
  •  
  • baldakino 21 days ago
    wow! really like that gritty feeling. ....But why 200fps- I can't even see that fast!
  •  
  • Friedrich Kirschner plus 20 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 3,688
    likes 87
    comments 20
  • Nov 23rd
    plays 17
    likes 0
    comments 0
  • Nov 22nd
    plays 50
    likes 1
    comments 0
  • Nov 21st
    plays 39
    likes 0
    comments 0
  • Nov 20th
    plays 63
    likes 0
    comments 0
  • Nov 19th
    plays 71
    likes 0
    comments 0
  • Nov 18th
    plays 121
    likes 3
    comments 0
  • Nov 17th
    plays 82
    likes 2
    comments 0
  • Nov 16th
    plays 84
    likes 2
    comments 1
Previous Week

Downloads

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