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])


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51469 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix [#32932] Can't see the Speaker properties when using Cycles


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51470 954f8c5b-7b00-dc11-b283-0030488c597c
style cleanup: trailing tabs & expand some non prefix tabs into spaces.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51471 954f8c5b-7b00-dc11-b283-0030488c597c
style cleanup: bge, switch statements mostly.
also left bmesh decimator on in previous commit.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51472 954f8c5b-7b00-dc11-b283-0030488c597c
Fix blenderplayer build (more stub funcs...).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51473 954f8c5b-7b00-dc11-b283-0030488c597c
Fix [#32934] Some UI texts translated/untranslated regardless of "Interface" checkbox. Patch [#32935] by Shinsuke Irie, thanks!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51474 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for OSL closure base class. The 'blur' method is not implemented and must be declared pure virtual ('= 0') to avoid compiler error (on Ubuntu 12.04, gcc 4.6.3).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51475 954f8c5b-7b00-dc11-b283-0030488c597c
Compatibility error: BLENDER_MINVERSION was set to 2.61, but that should be 2.62.

This define means "the minimum version of Blender that can read the current .blend"

In 2.62 there's compatibility code to read BMesh, not in 2.61.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51476 954f8c5b-7b00-dc11-b283-0030488c597c
Texture UI:
* Use the full space for the Texture ID Block. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51477 954f8c5b-7b00-dc11-b283-0030488c597c
bmesh decimate fixes
- don't collapse boundary verts into non boundary edges (was ugly causing spikes)
- handle degenerate cases better, rather then removing double edges after collapse, check before collapsing that there won't be any degenerate faces/edges.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51478 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix #27504

Render error.
Particle systems that duplicate group instances were setting the wrong
layer to the instanced objects, the correct layer is the particle system
itself - as being shown in the viewport correctly already.

Old report from May 2011 :)



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51479 954f8c5b-7b00-dc11-b283-0030488c597c
A final bunch of UI messages fixes and tweaks, and some BKE_report()<->BKE_reportf() fixes.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51480 954f8c5b-7b00-dc11-b283-0030488c597c
== filebrowser ==
* Separated bookmarks managed by the OS (System Bookmarks) and bookmarks managed by Blender (Bookmarks).
* Added user pref to hide (or show) system bookmarks to allow users doing a video tutorial for example to hide their private system bookmarks
This feature should help especially MAC users who reported excessively long list of bookmarks which were added to Blender.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51481 954f8c5b-7b00-dc11-b283-0030488c597c
bmesh-decimator update
- update face normals when triangulating.
- avoid divide by zero when interpolating customdata on a zero length edge.
- replace zero float comparisons with fabsf() < FLT_EPSILON to avoid numeric error.

also renamed BLI_heap_empty() --> BLI_heap_is_empty() so its obviously readonly function.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51482 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for [#32931] Crop node resets values to 0
Patch done by Markus Kasten
Thanks for that!


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51483 954f8c5b-7b00-dc11-b283-0030488c597c
fix own mistake - passing wrong argument to bmesh decimator when calculating boundary quadric.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51484 954f8c5b-7b00-dc11-b283-0030488c597c
enable bmesh decimator by default.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51485 954f8c5b-7b00-dc11-b283-0030488c597c
Tooltip/Description fixes for recent "tweaks"

1) "AnimData" is a technical term used for a specific entity in the system.
"anim data" is mangled fluff.
2) Old tooltip for DopeSheet.source is no longer valid. It's nearly always used
to represent the current scene now.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51486 954f8c5b-7b00-dc11-b283-0030488c597c
remove LOD_Decimator (c++ decimator), now replaced by bmesh decimator. also remove CTR c++ classes that are no longer used.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51487 954f8c5b-7b00-dc11-b283-0030488c597c
small optimization for BLI_heap(), give some speedup in decimeter.
- use unsigned ints only (where mixing signed/unsigned)
- turn heap_swap into an inline function, add SWAP_TVAL macro to swap values using a temp value as storage.
- added type checking SHIFT3/4 macros

also style cleanup for CTR_Map


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51488 954f8c5b-7b00-dc11-b283-0030488c597c