Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow the OpenGL window and related objects to use OpenGL ES #379

Merged
merged 2 commits into from
Oct 13, 2020

Conversation

pklampros
Copy link
Collaborator

@pklampros pklampros commented Oct 8, 2020

This ultimately allows the use of ANGLE for displaying graphics on windows, an implementation of OpengGL ES on directX. In practical terms the changes allow for using the depthmapX glview through Windows desktops without an OpenGL >=2.0 implementation, such as those through Remote Desktop (RDP) while previously the only solution was to switch to the legacy Map view. No special build or configuration parameters should be required, as the current Qt versions (>=5.5, tested on 5.13) dynamically load whatever graphics library is available. This change only affects the glview and not the 3dview (agents), as OpenGL ES does not support the fixed-function pipline (glBegin, glVertex etc.). Thus, glview should be available in both desktop and remote desktop versions of depthmapX, but the 3D view will only be available on local desktops that have a GPU. Other operating systems should are not affected by these changes.

Incidentally, this also fixes VirtualBox glview when the client is a Windows machine. 🥳

More information:

https://wiki.qt.io/Qt_5_on_Windows_ANGLE_and_OpenGL

https://doc.qt.io/qt-5/windows-requirements.html#graphics-drivers

https://en.wikipedia.org/wiki/OpenGL_ES

https://doc.qt.io/qt-5/qopenglfunctions.html#details

Relevant Travis build

pklampros and others added 2 commits October 8, 2020 19:32
This ultimately allows the use of ANGLE for displaying graphics on windows, an implementation of OpengGL ES on directX. In practical terms the changes allow for using the depthmapX glview through Windows desktops without an OpenGL >=2.0 implementation, such as those through Remote Desktop (RDP) while previously the only solution was to switch to the legacy Map view. No special build or configuration parameters should be required, as the current Qt versions (>=5.5, tested on 5.13) dynamically load whatever graphics library is available. This change only affects the glview and not the 3dview (agents), as OpenGL ES does not support the fixed-function pipline (glBegin, glVertex etc.). Thus, glview should be available in both desktop and remote desktop versions of depthmapX, but the 3D view will only be available on local desktops that have a GPU. Other operating systems should are not affected by these changes

More information:

https://wiki.qt.io/Qt_5_on_Windows_ANGLE_and_OpenGL

https://doc.qt.io/qt-5/windows-requirements.html#graphics-drivers

https://en.wikipedia.org/wiki/OpenGL_ES

https://doc.qt.io/qt-5/qopenglfunctions.html#details
@pklampros pklampros merged commit 2a5d923 into SpaceGroupUCL:master Oct 13, 2020
@pklampros pklampros deleted the opengl_es_angle branch October 13, 2020 21:07
@pklampros pklampros added this to the 0.8.0 milestone Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant