Hi Lynx ,<div><br></div><div>The depth in the z-buffer represents the distance of the pixels to the camera. If you need to 'invert' it, you need to know the maximum depth you have in the scene and do:<div><br></div>

<div>newdepth = maxdepth - depth (easy to do with a few Convertor->Math nodes)</div><div><br></div><div>Technically speaking, the MaxDepth is the camera Clip End distance.</div><div><br></div><div>By the way, this is more of a Blender question than a Python one. As such it may be better fit in a forum such as BlenderArtists.org<br>

<br>Cheers,<br><br></div><div>Dalai</div><div><a href="http://www.blendernetwork.org/member/dalai-felinto">www.blendernetwork.org/member/dalai-felinto</a></div><div><br><div class="gmail_quote">2012/8/5  <span dir="ltr"><<a href="mailto:lynx.abraxas@freenet.de" target="_blank">lynx.abraxas@freenet.de</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 02/08/12 23:18:56, <a href="mailto:lynx.abraxas@freenet.de">lynx.abraxas@freenet.de</a> wrote:<br>
> Is  it  possible  to  create  a  depth  map  (as  this demonstrated e.g. here:<br>
> <a href="https://sites.google.com/site/paprmh/zbuf_float" target="_blank">https://sites.google.com/site/paprmh/zbuf_float</a>) with  an  inverted  z‐buffer?<br>
> I.e.  that  the resulting image of e.g. suzanne shows the z‐buffer of the back<br>
> of her head although the camera sees her from the front?<br>
<br>
</div>Just found out how to do this for single objcets:<br>
Under  Material  disable!  Transparency  and  choose  "Invert  Z  Depth" under<br>
Options.<br>
<br>
But how can one achieve this for a whole scene in which objects  overlap  from<br>
the view of the camera?<br>
<div class="HOEnZb"><div class="h5"><br>
Thanks for any help or hints<br>
Lynx<br>
_______________________________________________<br>
Bf-python mailing list<br>
<a href="mailto:Bf-python@blender.org">Bf-python@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-python" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a><br>
</div></div></blockquote></div><br></div></div>