The system: Dell Latitude E6520
Video Card
Intel® HD Graphics 3000
NVIDIA® NVSTM 4200M (DDR3 512MB) Discrete Graphics with Optimus
Ubuntu 12.04
I installed bumblebee.
I installed PyOpenGL and am following the tutorial (http://pyopengl.sourceforge.net/context/tutorials/shader_1.xhtml)
Result on Python says:
RuntimeError: ('Shader compile failure (0): 0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.00 ES, 1.10, 1.20, and 1.30\n\n', ['#version 330\n void main() {\n gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;\n }'], GL_VERTEX_SHADER)
I know NVIDIA Graphics with Optimus can not be supported on Ubuntu. But I think Intel Graphics should support the latest version of OpenGL.
What should I do? Can I update something like drivers to make Intel Graphics support the GLSL 3.30?
If I can not, how can I use lower version of OpenGL in PyOpenGL? On http://pyopengl.sourceforge.net/, it writes: PyOpenGL 3.0.2 includes support for: OpenGL v1.1 through 4.3
So there would be an option to set OpenGL at a lower version. But I failed to find the way to do it.
Help!! Thanks in advance!
[Update] (1)
So there would be an option to set OpenGL at a lower version. But I failed to find the way to do it.
I found the option in the code. Need to specify the version; of course, consequently some code too.
(2) From the wiki/GLSL#Versions, the corresponding GLSL versions are
GLSL version OpenGL version 1.30.10 3.0 1.40.08 3.1 1.50.11 3.2 3.30.6 3.3
So it seems Intel Graphics 3000 support OpenGL Version 3.0.
I went to the Intel official website and Linux driver website, fail to find the answer. (Drivers for Linux* (I am not allowed to post more than 2 links :(
Linux Graphics https://01.org/linuxgraphics/search/node/HD%20Graphics%203000)
But now I almost know I will use OpenGL 3.0 and only follow tutorials for OpenGL 3.0. Who could recommend good ones?
#version 330 core