glue-viz / glue-vispy-viewers

3-d data viewers for glue based on VisPy
http://glueviz.org/en/stable/whatsnew/experimental_3d.html#experimental-3d
BSD 2-Clause "Simplified" License
25 stars 21 forks source link

Switch between outline and data subset mode on the graphics card #310

Closed astrofrog closed 6 years ago

astrofrog commented 6 years ago

This makes the change quasi-instantaneous instead of quite slow.

Fixes #304 Fixes #305

astrofrog commented 6 years ago

It seems that OpenGL on Travis can't deal with the complexity of the fragment shader, so instead we could dynamically swap the vertex code on-the-fly using:

viewer._vispy_widget._multivol.view_program.frag = frag

This works reasonably fast.