Contour

April 17th, 2009 art, experiment, research 5 comments

Contour

I used box2d to create a shape out of the contour of the body. There are still some some bugs that I’m trying to work out. Initially the shapes were only colliding with the interior of the contour but simple reversing the points solved that. Some shapes are still being push through but I think I have some ideas to solve this, maybe create fixed shapes inside the contour. Despite the somewhat slow playback of the video due to snapzpro the speed is great. More to come.

5 Responses to “Contour”

  1. monoflow

    Hi Todd,
    I had the same idea in my head for a long time, but had no solution to get a polygon/polyline from a contour/shilouette. I thought it has to be some trace-method, known from vector programs like illustrator. How did you solve it, or which algorithm do you use?
    Great work!

  2. Todd Vanderlin

    I have been working on a new ofxBox2d addon. I will be putting it up on google code soon, just need to get around it. If you grab the latest from the box2d svn there is a new shape def b2EdgeChainDef. It was ported over from the java version of box2d. It is still a bit buggy, when creating a shape it needs to be left to right.

  3. James Beith

    That is sweet. Good work!

  4. Justin Lorenzon

    I just started an implementation of this sorta thing using chains of objects sprung to the contours – much more processor intensive, I like your approach better and would love to use it. Please keep us updated.

  5. FMAG

    Very nice work you have done. I am just starting using OpenCV and OpenFrameworks. I’m trying to get as many samples as I can get to learn how to better use these two libraries.
    I am currently working on a project that has to recognise the silhuete of a person when she is filmed head-on, just like you on your vide.
    Could you please share your source code? I would very much appreciate it. If so could you e-mail me at fmag(at)cocinfar.com?

    Thank you,

    Kind Regards,

    Fernando

Say Something