blender/source/gameengine/VideoTexture
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
..
BlendType.h style cleanup 2012-09-16 04:58:18 +00:00
blendVideoTex.cpp style cleanup 2012-09-16 04:58:18 +00:00
CMakeLists.txt Make blender compilable by gcc-4.7 and strict compilation flags: 2012-05-14 13:31:38 +00:00
Common.h style cleanup: comment blocks 2012-03-09 18:28:30 +00:00
Exception.cpp code cleanup: includes, also correct some py example typos 2012-06-16 20:20:07 +00:00
Exception.h style cleanup: consistent names for header guards. 2012-03-09 19:17:19 +00:00
FilterBase.cpp style cleanup 2012-09-16 04:58:18 +00:00
FilterBase.h BGE VideoTexture: add depth buffer access to ImageViewport and ImageRender. 2012-10-20 22:28:44 +00:00
FilterBlueScreen.cpp style cleanup 2012-09-16 04:58:18 +00:00
FilterBlueScreen.h style cleanup: consistent names for header guards. 2012-03-09 19:17:19 +00:00
FilterColor.cpp style cleanup 2012-09-16 04:58:18 +00:00
FilterColor.h style cleanup 2012-06-05 22:12:17 +00:00
FilterNormal.cpp style cleanup 2012-09-16 04:58:18 +00:00
FilterNormal.h style cleanup: consistent names for header guards. 2012-03-09 19:17:19 +00:00
FilterSource.cpp code cleanup: includes, also correct some py example typos 2012-06-16 20:20:07 +00:00
FilterSource.h BGE VideoTexture: add depth buffer access to ImageViewport and ImageRender. 2012-10-20 22:28:44 +00:00
ImageBase.cpp BGE VideoTexture: add depth buffer access to ImageViewport and ImageRender. 2012-10-20 22:28:44 +00:00
ImageBase.h BGE VideoTexture: add depth buffer access to ImageViewport and ImageRender. 2012-10-20 22:28:44 +00:00
ImageBuff.cpp style cleanup 2012-09-16 04:58:18 +00:00
ImageBuff.h style cleanup 2012-08-23 07:10:48 +00:00
ImageMix.cpp style cleanup 2012-09-16 04:58:18 +00:00
ImageMix.h style cleanup: consistent names for header guards. 2012-03-09 19:17:19 +00:00
ImageRender.cpp BGE VideoTexture: add depth buffer access to ImageViewport and ImageRender. 2012-10-20 22:28:44 +00:00
ImageRender.h code cleanup: includes, also correct some py example typos 2012-06-16 20:20:07 +00:00
ImageViewport.cpp BGE VideoTexture: add depth buffer access to ImageViewport and ImageRender. 2012-10-20 22:28:44 +00:00
ImageViewport.h style cleanup 2012-09-16 04:58:18 +00:00
PyTypeList.cpp style cleanup 2012-09-16 04:58:18 +00:00
PyTypeList.h style cleanup 2012-09-16 04:58:18 +00:00
SConscript Getting rid of some GLEW warnings when compiling ge_videotex in SCons. 2012-07-27 21:54:07 +00:00
Texture.cpp style cleanup 2012-09-16 04:58:18 +00:00
Texture.h style cleanup 2012-09-16 04:58:18 +00:00
VideoBase.cpp style cleanup 2012-09-16 04:58:18 +00:00
VideoBase.h style cleanup 2012-09-16 04:58:18 +00:00
VideoFFmpeg.cpp style cleanup 2012-09-16 04:58:18 +00:00
VideoFFmpeg.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00