Allow OpenGL without enableExperimental#3277
Conversation
e172ea7 to
f3e2cfc
Compare
f3e2cfc to
510165c
Compare
|
The commit that changes The blend equation |
OpenGL implementation may not support thick lines. So we also change the color on click in order to give feedback to the user.
|
The following script demonstrates the issue that the last commit is fixing. The issue is that the rendering performed by import numpy as np
import pyqtgraph as pg
import pyqtgraph.opengl as gl
pg.setConfigOptions(background=(128, 128, 128))
pg.mkQApp()
win = gl.GLViewWidget()
pos = np.array([[0, 0, 0]])
item = gl.GLScatterPlotItem(pos=pos, size=10, color=(1.0, 0.0, 0.0, 0.5), pxMode=False)
item.setGLOptions('opaque')
win.addItem(item)
win.show()
pg.exec() |
|
Thanks for your work in this area @pijyoi this looks great. |


There are currently two
GraphicsItems that have an OpenGL implementation:PlotCurveItemPColorMeshItemTheir use was conditional on
useOpenGLandenableExperimental.Originally, the OpenGL implementation for
PlotCurveItemwas limited to a small subset of thePlotCurveItemapi. Now that it supports most of the common use cases, it should be fine to remove it from "experimental" status.(The example
MouseSelectionexercises much of the implemented functionality)PColorMeshItem's implementation was complete from the beginning, but it also requiredenableExperimental, but only to followPlotCurveItem.Note that
PyOpenGLis not required at all to use this OpenGL mode.