Re: Use OpenGL 4.3 and compute shaders with PyOpenGL

Ian Mallett <[email protected]> Fri, 19 Aug 2016 02:46:57 -0700
Newsgroups gmane.comp.python.opengl.user
Message-ID <CAG4NV=vxhCiMT-j+WbWtfGN4oi9UqG-WNjGLrXeNDY2RKBx=2w@mail.gmail.com>
--===============6178339400706535773==
Content-Type: multipart/alternative; boundary=94eb2c0948b2320457053a69951f

--94eb2c0948b2320457053a69951f
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Thu, Aug 18, 2016 at 1:41 AM, Michael Bieri <[email protected]> wrote:

> I'd like to use compute shaders with PyOpenGL. That will require OpenGL
> 4.3. Currently I do not even know, what version is actually running on my
> system. In general, I'm a bit lost...
>
=E2=80=8BSo . . . like, *how* lost? Have you used compute shaders before? O=
penGL
before? PyOpenGL before?


> So, first of all: How can I find out which version of PyOpenGL
>
=E2=80=8BWhichever version you installed. If you don't remember, try the fo=
llowing:
import OpenGL
print(OpenGL.version.__version__)

Remember that, despite appearances, this is the PyOpenGL version--the
package. It doesn't say anything about what the OpenGL context can do
(that's also how it's possible to get this information without a GL
context).
=E2=80=8B

> and OpenGL I have?
>
=E2=80=8BCreate a context using your favorite windowing system. During that
process, you choose (or it's done for you).

If you're asking about what your system supports, look up your GPU name for
GL support. Alternately, the program "GPU Caps Viewer" will measure the
capability of your GPU/driver combination and report in-detail.

Second, is it possible to update to OpenGL 4.3
>
=E2=80=8BWhat precisely do you mean by this?=E2=80=8B


> and an according PyOpenGL? What do I have to do (roughly)?
>
=E2=80=8BThe latest PyOpenGL (currently 3.1.0, I believe) should support
everything. It has a module for compute shaders, though I haven't used it
myself.
=E2=80=8B


> I'm sorry, but currently I'm a bit confused about all this...
>
> Best regards,
> Michael
>
=E2=80=8BIan=E2=80=8B

--94eb2c0948b2320457053a69951f
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra">On Thu, Aug 18, 2016 at 1:41 AM=
, Michael Bieri <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" =
target=3D"_blank">[email protected]</a>&gt;</span> wrote:<br><div class=3D"=
gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;b=
order-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">I&#39;d like t=
o use compute shaders with PyOpenGL. That will require OpenGL 4.3. Currentl=
y I do not even know, what version is actually running on my system. In gen=
eral, I&#39;m a bit lost...</div></blockquote><div><div class=3D"gmail_defa=
ult" style=3D"font-family:times new roman,serif">=E2=80=8BSo . . . like, <i=
>how</i> lost? Have you used compute shaders before? OpenGL before? PyOpenG=
L before?<br></div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"m=
argin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"l=
tr"><div>So, first of all: How can I find out which version of PyOpenGL</di=
v></div></blockquote><div><div class=3D"gmail_default" style=3D"font-family=
:times new roman,serif;display:inline">=E2=80=8BWhichever version you insta=
lled. If you don&#39;t remember, try the following:<br><span style=3D"font-=
family:monospace,monospace">import OpenGL<br></span></div><div class=3D"gma=
il_default" style=3D"font-family:times new roman,serif;display:inline"><spa=
n style=3D"font-family:monospace,monospace">print(OpenGL.version.__version_=
_)</span><br><br></div><div class=3D"gmail_default" style=3D"font-family:ti=
mes new roman,serif;display:inline">Remember that, despite appearances, thi=
s is the PyOpenGL version--the package. It doesn&#39;t say anything about w=
hat the OpenGL context can do (that&#39;s also how it&#39;s possible to get=
 this information without a GL context).<br></div><div class=3D"gmail_defau=
lt" style=3D"font-family:times new roman,serif;display:inline">=E2=80=8B</d=
iv></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;borde=
r-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>and OpenGL I =
have?</div></div></blockquote><div><div class=3D"gmail_default" style=3D"fo=
nt-family:times new roman,serif">=E2=80=8BCreate a context using your favor=
ite windowing system. During that process, you choose (or it&#39;s done for=
 you).<br><br></div><div class=3D"gmail_default" style=3D"font-family:times=
 new roman,serif">If you&#39;re asking about what your system supports, loo=
k up your GPU name for GL support. Alternately, the program &quot;GPU Caps =
Viewer&quot; will measure the capability of your GPU/driver combination and=
 report in-detail.<br><br></div></div><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div d=
ir=3D"ltr"><div>Second, is it possible to update to OpenGL 4.3</div></div><=
/blockquote><div><div class=3D"gmail_default" style=3D"font-family:times ne=
w roman,serif">=E2=80=8BWhat precisely do you mean by this?=E2=80=8B</div>=
=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo=
rder-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>and an acc=
ording PyOpenGL? What do I have to do (roughly)?</div></div></blockquote><d=
iv><div class=3D"gmail_default" style=3D"font-family:times new roman,serif;=
display:inline">=E2=80=8BThe latest PyOpenGL (currently 3.1.0, I believe) s=
hould support everything. It has a module for compute shaders, though I hav=
en&#39;t used it myself.<br>=E2=80=8B</div>=C2=A0</div><blockquote class=3D=
"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding=
-left:1ex"><div dir=3D"ltr"><div>I&#39;m sorry, but currently I&#39;m a bit=
 confused about all this...</div><div><br></div><div>Best regards,</div><di=
v>Michael<br></div></div></blockquote><div><div class=3D"gmail_default" sty=
le=3D"font-family:times new roman,serif;display:inline">=E2=80=8BIan=E2=80=
=8B</div>=C2=A0</div></div></div></div>

--94eb2c0948b2320457053a69951f--


--===============6178339400706535773==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------

--===============6178339400706535773==
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

--===============6178339400706535773==--