Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My question is the same as the one asked here How can I use python in Blender Game Engine (2.5+) to save the depth buffer AND the color buffer to file every frame?. The post gives the function (BGL.glReadPixels) required to obtain the depth buffer. However, I am not able to create a minimal working example (I am very new to blender and 3D programming in general). What I have so far is that I need to perform following steps:

  1. allocate memory for z-buffer
  2. Render depth using shader
  3. call BGL.glReadPixels

I am not able to do these steps in pyhon due to my limited knowledge of blender. Any pointers/help is greatly appreciated.

share|improve this question
I think I need the Blender compiled as python module for this. The blender distribution on Ubuntu doesn't seem to contain this. I tried compiling it but it is not working. – Sandeep Dec 6 '12 at 12:04

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.