blender/release/scripts
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
..
addons@371960484a Fix blurry icons 2017-01-29 17:21:57 +03:00
addons_contrib@a8515cfdfe Fix blurry icons 2017-01-29 17:21:57 +03:00
freestyle Cleanup: Grey --> Gray 2017-02-27 19:33:57 -05:00
modules Improve add-on UI error message 2017-02-27 03:57:11 +11:00
presets update theme back to black re: T50869 2017-03-08 18:31:24 +11:00
startup 3D View: new nethod of opengl selection 2017-03-09 06:22:02 +11:00
templates_osl Cycles: Remove Westin closure. 2014-10-03 16:03:49 +02:00
templates_py Use new manual URL 2017-01-23 19:10:37 -05:00