title: Depth map (2d+z) algorithm or software
body: <p>I'm searching for Depth map algorithm for action scrip 3 (or some other language).
  My goal is to generate depth map for static image on run time.
  I have fount this example <a href="http://kode80.com/2009/06/29/papervision-zbuffer-and-dof/" rel="nofollow">http://kode80.com/2009/06/29/papervision-zbuffer-and-dof/</a>, i didn't have the time to investigate it's code but i have the filling its working only with 3d models.
  Worst viable option is server side technology that does the work.</p>
  
  <p><br/>
  <br/>
  <br/>
  <strong>Extended description:</strong>
  I have a task to develop flash application where 3d rotation of a head is simulated by a 2d image uploaded by the user.
  There are some japan guys that have managed to do that (http://hairtry.jp/), but the technology that they are using is server side. It generates swf fail with precisely coped eyes and image for the depth map of the uploaded picture. I can't find out what is the sever side technology that they are using so I'm searching for any posible workarounds.</p>
  
  <p>Thanks in advance.</p>
  
  <p>Cheers, 
  Chavdar Slavov</p>