blender/release
Campbell Barton 45b764e95b 3D View: new nethod of opengl selection
Intended to replace legacy GL_SELECT, without the limitations of
sample queries which can't access depth information.

This commit adds VIEW3D_SELECT_PICK_NEAREST and VIEW3D_SELECT_PICK_ALL
which access the depth buffers to detect whats under the pointer,
so initial selection is always the closest item.

The performance of this method depends a lot on the OpenGL
implementations glReadPixels.

Since reading depth can be slow, buffers are cached for object picking
so selecting re-uses depth data, performing 1 draw instead of 3
(for 24, 18, 10 px regions, picking with many items under the pointer).

Occlusion queries draw twice when picking nearest,
so worst case 6x draw calls per selection.

Even with these improvements occlusion queries is faster on AMD hardware.

Depth selection is disabled by default, toggle option under select method.
May enable by default if this works well on different hardware.

Reviewed as D2543
2017-03-09 06:22:02 +11:00
..
bin Call to python3 for stand-alone scripts 2016-07-26 05:18:00 +10:00
darwin Revert "OSX/cpack: add a dummy bg and ds_store for dmg" 2014-11-18 11:40:16 +01:00
datafiles More tweaks to Normalisation options in Graph Editor 2017-02-09 18:59:51 +13:00
freedesktop Update of our *nix .desktop file. 2015-08-27 16:31:13 +02:00
scripts 3D View: new nethod of opengl selection 2017-03-09 06:22:02 +11:00
text Use new manual URL 2017-01-23 19:10:37 -05:00
windows move windows out of source dir 2016-02-07 20:58:58 +11:00