LogoLogo
  • Home
  • Projects
  • About
  • Contact

3D Scanner (Kinda Sorta)

Devon O. · October 07, 2009 · Actionscript · 4 comments
6

When I saw a tweet from @drwoohoo with a link pointing to this page on how to build a 3d scanner, my first reaction was to jump up and ask the guys here at work where our projector was. Well, as it turns out, unfortunately, our projector has been either misappropriated or misplaced. Not to be daunted, I tried to see if I could reproduce the effect without the projector and came up with the thing below.

What’s it do? Well, basically, using your webcam, the app takes four pictures. The first is left untouched. The other three have “scanlines” projected onto them moved a fractional amount in each image (as described in the article above). The scanlines are warped onto each image with a displacement map filter to attempt to mimic real light and shadow falling onto 3 dimensional being. Those three images are then desaturated and blended together into a single black and white map. That map and the original image are then used in a modified version of this pretty cool 3d pixel generator from Flash and Math. Which is to say, the original image is projected into 3d space using displacement data from the black and white combined map image.

So what’s that mean? Well, mainly it means the effect I got is about 0% of the 3d scanner effect I was aiming to produce. In fact, I could have saved myself a good deal of time and effort and got a nearly identical result by simply taking one image and passing it directly to the Flash and Math doohickey. Live and learn. The results are pretty nifty, though. Chalk it up to an interesting but failed experiment. Oh and you can save the 3d images you generate. Not sure why you’d want to, but you never know. I have one currently set as my Skype avatar.

And if anyone knows where our projector is, we’d really like it back.

Get Adobe Flash player

(Sample image):

  Facebook   Pinterest   Twitter   Google+
  • And Never Again, I’ll Go Sailin’
    September 16, 2008 · 6 comments
    1947
    3
    Read more
  • Pratique d’ActionScript 3
    April 28, 2008 · 0 comments
    1360
    4
    Read more
  • OBO_FlashBox – LightBox in Flash (with added 3d)
    December 06, 2008 · 16 comments
    2915
    3
    Read more
4 Comments:
  1. I don’t have a webcam. Can you give us a sample image to load into it? Sounds very cool. I’d like to see it!

    whizzle · October 08, 2009
  2. Well, didn’t want to rework the actual app., but I posted a sample image to get an idea of what the heck it does…

    Devon O. · October 08, 2009
  3. very cool. thanks!

    whizzle · October 08, 2009
  4. Holy fuck!!!! Pretty sweet… say the flash and math bit a while ago, like what you did with it!

    skipp · June 29, 2010

Leave a Comment! Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Devon O. Wolfgang

AIR | Unity3D | AR/VR

Unity Certified Developer

Technical Reviewer of “The Essential Guide to Flash CS4 AIR Development” and “Starling Game Development Essentials”

Reviewer of “The Starling Handbook”

Unity Engineer at Touch Press.

Categories
  • Actionscript (95)
  • AIR (16)
  • Flash (99)
  • Games (7)
  • Liberty (13)
  • Life (53)
  • Shaders (20)
  • Unity3D (21)
Recent Comments
  • MainDepth on Unity Ripple or Shock Wave Effect
  • Devon O. on Unity Ripple or Shock Wave Effect
  • Feral_Pug on Unity Ripple or Shock Wave Effect
  • bavvireal on Unity3D Endless Runner Part I – Curved Worlds
  • Danielius Vargonas on Custom Post Processing with the LWRP
Archives
  • December 2020 (1)
  • December 2019 (1)
  • September 2019 (1)
  • February 2019 (2)
  • December 2018 (1)
  • July 2018 (1)
  • June 2018 (1)
  • May 2018 (2)
  • January 2018 (1)
  • December 2017 (2)
  • October 2017 (1)
  • September 2017 (2)
  • January 2017 (1)
  • July 2016 (1)
  • December 2015 (2)
  • March 2015 (1)
  • September 2014 (1)
  • January 2014 (1)
  • August 2013 (1)
  • July 2013 (1)
  • May 2013 (1)
  • March 2013 (2)
  • December 2012 (1)
  • November 2012 (1)
  • September 2012 (3)
  • June 2012 (2)
  • May 2012 (1)
  • April 2012 (1)
  • December 2011 (2)
  • October 2011 (3)
  • September 2011 (1)
  • August 2011 (1)
  • July 2011 (1)
  • May 2011 (2)
  • April 2011 (2)
  • March 2011 (1)
  • February 2011 (1)
  • January 2011 (2)
  • December 2010 (3)
  • October 2010 (5)
  • September 2010 (1)
  • July 2010 (2)
  • May 2010 (5)
  • April 2010 (2)
  • March 2010 (7)
  • February 2010 (5)
  • January 2010 (5)
  • December 2009 (3)
  • November 2009 (1)
  • October 2009 (5)
  • September 2009 (5)
  • August 2009 (1)
  • July 2009 (1)
  • June 2009 (2)
  • May 2009 (6)
  • April 2009 (4)
  • March 2009 (2)
  • February 2009 (4)
  • January 2009 (1)
  • December 2008 (5)
  • November 2008 (2)
  • September 2008 (1)
  • August 2008 (6)
  • July 2008 (6)
  • June 2008 (9)
  • May 2008 (4)
  • April 2008 (3)
  • March 2008 (4)
  • February 2008 (9)
  • January 2008 (7)
  • December 2007 (6)
Copyright © 2021 Devon O. Wolfgang