2D to 3D Photo with Delaunay triangulation

// May 15th, 2009 // Experiments, Flash 3D, Source code & tutorials

This week I stumbled on a great AS3 Delaunay Triangulation class by Nicolas Barradeau (Ported from a triangulate algorithm by Paul Bourke ). And when I hear triangles, I think 3D. Tonight I played around with it and made some kind of photo extruder.


Switch clicking between points on the front view and there corresponding points in the side view. You need at least 3 point before you see anything.
You can upload your own photos but you have to stick to the size.
Its possible to delete points by clicking on a intersection in the front view, and then click in the side view.

Sorry, its not the most user friendly app, but I don’t have time to finish it. Have Fun!

» Create your face in 3D

Source code: Triangulation_source (Flex Project)

triangulation as3 Delaunay

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

9 Responses to “2D to 3D Photo with Delaunay triangulation”

  1. nicoptere says:

    holy cow that’s wonderful !
    excellent blog keep it up :)

  2. Og2t says:

    Hi NP!

    This is great and your blog is amazing – have got no idea why I haven’t seen it before. I’ve tried triangulation live on the webcam feed using Nicoptere’s Delaunay classes as well.

  3. jose says:

    Great job!

    Did you use Papervision3D for 3d representation ?

    Best regards,


  4. kris says:

    Hi Jose,
    No, it’s al done with native Flash Player 10 3D. But it can be done with Papervision3D if you want.
    Cheers, Kris

  5. jose says:

    Well, congratulations! :)

    How did you optimize the point cloud for that photo? Is this approach (number of points and its geometry) well suited for 3d representation of any face?

    Sorry for my curiosity, and regards,


  6. codru says:

    Woow, that’s sick!! excelent!!

  7. Carlos Dias says:

    Hello neuroproductions found your post and was amazed how it obtained a result of rendering the face of so simple, lightweight and fast, but did not achieve progress in relation to the face animations, so if possible I would ask a simple version of rendering of the face flash entrernamente would be grateful as this will serve as a glove for my project thanks.