blender/doc
Benoit Bolsee 4213eca5fc BGE VideoTexture: add depth buffer access to ImageViewport and ImageRender.
2 new attributes to ImageViewport and ImageRender object:
depth: set to True to retrieve the depth buffer as an array of float
       (not suitable for texture source).
zbuff: set to True to retrieve the depth buffer as a grey scale pixel array
       (suitable for texture source).

A new mode 'F' is added to VideoTexture.imageToArray() to allow returning the image
buffer as a one dimensional array of float. This mode should only be used to retrieve
the depth buffer of ImageViewport and ImageRender objects.

Example:

viewport = VideoTexture.ImageViewport()
viewport.depth = True
depth = VideoTexture.imageToArray(viewport,'F')
# show depth of bottom left pixel
# 1.0 = infinite, 0.0 = on near clip plane.
print(depth[0])
2012-10-20 22:28:44 +00:00
..
blender_file_format replace python3 command with python3.2, python3 isnt available on ubuntu. 2012-05-01 20:45:16 +00:00
build_systems Spellfixes: colour -> color 2012-07-04 12:19:50 +00:00
doxygen move bmesh wiki docs into bmesh header and update doxygen. 2012-02-27 20:27:19 +00:00
guides patch [#32791] Spelling mistakes corrected. 2012-10-07 03:26:30 +00:00
license == docs == 2010-10-13 14:44:22 +00:00
manpage style cleanup: comment blocks 2012-10-04 13:26:15 +00:00
python_api BGE VideoTexture: add depth buffer access to ImageViewport and ImageRender. 2012-10-20 22:28:44 +00:00