Occlusion Query based selection.

This patch creates an interface for selection mechanisms in opengl. This
makes it possible to switch between occlusion query based or select
rendermode based selection transparently.

This is really useful on graphics drivers that do not accelerate the
select rendermode path (some ATI cards are notorious for this, and the
new path is used by default there), since occlusion queries are always
hardware accelerated due to their use in games.

The option can be found under system - selection. Auto just enables
occlusion queries for ATI users while the rest of the options enforce
one of the two methods always.

There is just one known change, previous code enforced nearest bone to
always get selected, even when mouse selecting near the same position, I
couldn't replicate the behaviour though.

patch by me with edits and review by Campbell.

Thanks!
This commit is contained in:
Antony Riakiotakis
2014-07-23 15:24:07 +02:00
parent cf9d5db75b
commit 17021171f1
21 changed files with 584 additions and 182 deletions

View File

@@ -493,6 +493,7 @@ macro(SETUP_BLENDER_SORTED_LIBS)
bf_bmesh
bf_blenkernel
bf_nodes
bf_rna
bf_gpu
bf_blenloader
bf_imbuf
@@ -532,7 +533,6 @@ macro(SETUP_BLENDER_SORTED_LIBS)
extern_openjpeg
extern_redcode
ge_videotex
bf_rna
bf_dna
bf_blenfont
bf_intern_audaspace