00:00
71
More
See all Show me
57. Musion tests
11 months ago
55. RESDELET 2011
11 months ago
49. Blaze
1 year ago
47. ofxOpenCL for openFrameworks 1M Particle Demo
2 years ago
44. iScream for iPhone
2 years ago
36. ofxMSAPhysics v2
2 years 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

Likes

See all likes
  • Olivier Solère 2 years ago
    Very good Memo, as always.
  •  
  • itsthejayj 2 years 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 2 years 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.
  • Mike St-Jean 1 year ago
    You can drop kernels from OpenFrameworks into QC patches? :\

    If so, could I do the same with an o.f. kernel written on a PC (bring it into a QC patch inevitably run on a mac)??

    Please please please please please
  •  
  • toneburst plus 2 years ago
    Amazing, as always.

    a|x
  •  
  • AlluvioneMediatica 2 years 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 2 years 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 plus 2 years ago
    heavy metal
  •  
  • Theo Watson plus 2 years ago
    wow - completely nuts. 200fps thats overkill :)
  •  
  • Mike Creighton plus 2 years ago
    Out of curiosity, what are you using to do your screen capture?
  • Memo Akten plus 2 years 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.
  • Ben Brown 1 year ago
    try screenflow.
  •  
  • seth sandler 2 years ago
    sweet at always! :)
  •  
  • Tom / bangnoise 2 years ago
    yea, amazing.
  •  
  • vade plus 2 years ago
    Ok, I need a new machine. Fuck. Thats hot.
  •  
  • Christian Giordano 2 years ago
    this is impressive, good effort! Glad to be a MAC!
  •  
  • Mathieu Foucher plus 2 years ago
    great , congratulations
  •  
  • ja.e 2 years ago
    .... i find no words ... this is great! good work!
  •  
  • watz 2 years ago
    Holy crap.
  •  
  • baldakino 2 years ago
    wow! really like that gritty feeling. ....But why 200fps- I can't even see that fast!
  •  
  • Friedrich Kirschner plus 2 years ago
    completely nuts!
  •  
  • Thomas Telandro 2 years ago
    Amazing !
  •  
  • iConn 2 years ago
    bravo bravo !!1 : )
  •  
  • Henri Kay 1 year ago
    beautiful... the possibilities!
  •  
  • Nathan Selikoff 1 year ago
    Very fantastic. And thank you so much for creating ofxOpenCL and sharing your particle demo source code. It got me started... vimeo.com/13349189
  •  
  • Anomalous Visuals plus 8 months ago
    Great idea, we would be honoured if you would submit it to our group....
    vimeo.com/groups/avlive
  •  
This conversation is missing your voice. Take five seconds to join Vimeo or log in.

Advertisement

About this video

MOV
00:01:11
  • 1280x720, 97.8MB
  • Uploaded Thu October 29, 2009
  • Please join or log in to download

Statistics

Date Plays Comments
Totals 19.6K 169 27
Feb 14th 6 0 0
Feb 13th 10 0 0
Feb 12th 2 0 0
Feb 11th 3 0 0
Feb 10th 5 0 0
Feb 9th 14 0 0
Feb 8th 9 0 0