test context with opengl 3.3 context, for shader_instanced example?
Stuart Axon <[email protected]> Fri, 31 Jul 2015 17:17:00 +0000 (UTC)
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <[email protected]> |
--===============4055182907614604363==
Content-Type: multipart/alternative;
boundary="----=_Part_5917190_927889855.1438363020527"
Content-Length: 6447
------=_Part_5917190_927889855.1438363020527
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Hi,=C2=A0=C2=A0 I've been trying to get the shader_instanced example at htt=
p://pyopengl.sourceforge.net/context/tutorials/shader_instanced.html workin=
g, but having some trouble.
I've been using the fixed version from herehttp://stackoverflow.com/questio=
ns/16945500/why-is-this-tutorial-example-of-a-shader-not-displaying-any-geo=
metry-as-it-is-su
But get this error
RuntimeError: ('Shader compile failure (0): 0:1(10): error: GLSL 3.30 is no=
t supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES=
\n', ['#version 330\n=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 void main()=
{\n=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 gl_Position =3D gl_Mode=
lViewProjectionMatrix * gl_Vertex;\n=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 }'], GL_VERTEX_SHADER)
Is it possible to make the testcontext be OpenGL 3.3, glxinfo tells me:
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile=20
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.7.0-devel (g=
it-7830e46 2015-07-31 vivid-oibaf-ppa)
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 10.7.0-devel (git-7830e46 2015-07-31 vivid-=
oibaf-ppa)
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 10.7.0-devel (git-7830=
e46 2015-07-31 vivid-oibaf-ppa)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
=C2=A0S++
------=_Part_5917190_927889855.1438363020527
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<html><body><div style=3D"color:#000; background-color:#fff; font-family:He=
lveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;fo=
nt-size:16px"><div id=3D"yui_3_16_0_1_1438362219782_3166">Hi,</div><div dir=
=3D"ltr" id=3D"yui_3_16_0_1_1438362219782_3015"> I've been tryi=
ng to get the shader_instanced example at <a id=3D"yui_3_16_0_1_14383622197=
82_3013" href=3D"http://pyopengl.sourceforge.net/context/tutorials/shader_i=
nstanced.html">http://pyopengl.sourceforge.net/context/tutorials/shader_ins=
tanced.html</a> working, but having some trouble.</div><div id=3D"yui_3_16_=
0_1_1438362219782_3105" dir=3D"ltr"><br></div><div id=3D"yui_3_16_0_1_14383=
62219782_3104" dir=3D"ltr">I've been using the fixed version from here</div=
><div id=3D"yui_3_16_0_1_1438362219782_3097" dir=3D"ltr"><a id=3D"yui_3_16_=
0_1_1438362219782_3096" href=3D"http://stackoverflow.com/questions/16945500=
/why-is-this-tutorial-example-of-a-shader-not-displaying-any-geometry-as-it=
-is-su">http://stackoverflow.com/questions/16945500/why-is-this-tutorial-ex=
ample-of-a-shader-not-displaying-any-geometry-as-it-is-su</a></div><div id=
=3D"yui_3_16_0_1_1438362219782_3099" dir=3D"ltr"><br></div><div id=3D"yui_3=
_16_0_1_1438362219782_3100" dir=3D"ltr">But get this error<br></div><div id=
=3D"yui_3_16_0_1_1438362219782_3214" dir=3D"ltr"><br></div><div id=3D"yui_3=
_16_0_1_1438362219782_3215" dir=3D"ltr">RuntimeError: ('Shader compile fail=
ure (0): 0:1(10): error: GLSL 3.30 is not supported. Supported versions are=
: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES\n', ['#version 330\n &n=
bsp; void main() {\n &=
nbsp; &nbs=
p; gl_Position =3D gl_ModelViewProjectionMatrix * gl_Vertex;\n&=
nbsp; &nbs=
p; }'], GL_VERTEX_SHADER)</div><d=
iv id=3D"yui_3_16_0_1_1438362219782_3216" dir=3D"ltr"><br></div><div id=3D"=
yui_3_16_0_1_1438362219782_3217" dir=3D"ltr">Is it possible to make the tes=
tcontext be OpenGL 3.3, glxinfo tells me:</div><div id=3D"yui_3_16_0_1_1438=
362219782_3271" dir=3D"ltr"><br></div><div id=3D"yui_3_16_0_1_1438362219782=
_3235" dir=3D"ltr"><br></div><div id=3D"yui_3_16_0_1_1438362219782_3236" di=
r=3D"ltr">OpenGL vendor string: Intel Open Source Technology Center<br clas=
s=3D"" id=3D"yui_3_16_0_1_1438362219782_3238">OpenGL renderer string: Mesa =
DRI Intel(R) Ivybridge Mobile <br class=3D"" id=3D"yui_3_16_0_1_14383622197=
82_3240">OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.7.0=
-devel (git-7830e46 2015-07-31 vivid-oibaf-ppa)<br class=3D"" id=3D"yui_3_1=
6_0_1_1438362219782_3242">OpenGL core profile shading language version stri=
ng: 3.30<br class=3D"" id=3D"yui_3_16_0_1_1438362219782_3244">OpenGL core p=
rofile context flags: (none)<br class=3D"" id=3D"yui_3_16_0_1_1438362219782=
_3246">OpenGL core profile profile mask: core profile<br class=3D"" id=3D"y=
ui_3_16_0_1_1438362219782_3248">OpenGL core profile extensions:<br class=3D=
"" id=3D"yui_3_16_0_1_1438362219782_3250">OpenGL version string: 3.0 Mesa 1=
0.7.0-devel (git-7830e46 2015-07-31 vivid-oibaf-ppa)<br class=3D"" id=3D"yu=
i_3_16_0_1_1438362219782_3252">OpenGL shading language version string: 1.30=
<br class=3D"" id=3D"yui_3_16_0_1_1438362219782_3254">OpenGL context flags:=
(none)<br class=3D"" id=3D"yui_3_16_0_1_1438362219782_3256">OpenGL extensi=
ons:<br class=3D"" id=3D"yui_3_16_0_1_1438362219782_3258">OpenGL ES profile=
version string: OpenGL ES 3.0 Mesa 10.7.0-devel (git-7830e46 2015-07-31 vi=
vid-oibaf-ppa)<br class=3D"" id=3D"yui_3_16_0_1_1438362219782_3260">OpenGL =
ES profile shading language version string: OpenGL ES GLSL ES 3.00<br class=
=3D"" id=3D"yui_3_16_0_1_1438362219782_3262">OpenGL ES profile extensions:<=
br class=3D"" id=3D"yui_3_16_0_1_1438362219782_3264"><br></div><div id=3D"y=
ui_3_16_0_1_1438362219782_3227" dir=3D"ltr"><br></div><div id=3D"yui_3_16_0=
_1_1438362219782_2955"><span></span></div><div id=3D"yui_3_16_0_1_143836221=
9782_2954"> </div><div id=3D"yui_3_16_0_1_1438362219782_2953"><div id=
=3D"yui_3_16_0_1_1438362219782_2952">S++</div></div></div></body></html>
------=_Part_5917190_927889855.1438363020527--
--===============4055182907614604363==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
--===============4055182907614604363==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
_______________________________________________
PyOpenGL-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyopengl-users
--===============4055182907614604363==--