Hi list,
I am trying to get info on a client's machine 3D capabilities, where the
3D views are showing nothing, via Python in QGIS. I'd like to find their
GL_RENDERER, GL_VERSION etc.
Basically debugging https://github.com/qgis/QGIS/issues/40324 but
without the possibility to use third-party tools on the system.
It looks like QGIS uses a shared OpenGL context:
https://github.com/qgis/QGIS/blob/e8b8108f3f013d96014bbde50e6935bf1dc4414a/src/app/main.cpp#L961
Checking it out on my system yields:
>>>
QCoreApplication.testAttribute(Qt.ApplicationAttribute.AA_ShareOpenGLContexts)
True
but there are no extensions for example:
>>> QOpenGLContext.globalShareContext().extensions()
set()
While that set is empty, if I enable the "GL info" debug overlay in a 3D
view, it does show a list of many supported extensions.
Maybe I am using it wrong?
Does the 3D view actually use a different OpenGL context?
Is there a way to access info about that context from PyQGIS?
Cheers, Hannes
Johannes Kröger
GIS-Consulting/-Entwicklung
WhereGroup Logo
WhereGroup GmbH
Lange Reihe 29
20099 Hamburg
Germany
+49 228 90 90 38 36
[email protected]
www.wheregroup.com
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer