Thread: [PyOpenGL-Users] As of 2016, what is state-of-the-art in 3D with Python?
Brought to you by:
mcfletch
From: Michael B. <mi...@gm...> - 2016-08-12 09:11:04
|
Hi all I'm currently trying to dive into the world of 2D/3D graphics with OpenGL. I plan to use it for scientific visualisation. Normally I'll have data that's already close to input data for OpenGL, for example a list of points + a list of indices creating triangles form the points + a color value for each triangle. I plan to use it from Python. There's a lot of resources about OpenGL with Python, but I'm not quite sure what's state-of-the-art currently since some resources are several years old. So a few questions: - Is pyopengl still state-of-the-art or are there better Python bindings for a new project? - Which context library and which bindings is most recommended as of 2016? I think there's the choice between GLFW, OpenGL Context and GLUT, plus different bindings for each. It's relatively difficult to get good answers on these questions since not too many people do OpenGL with Python. So hopefully the mailing list can help a bit. Best regards Michael |
From: Nicolas P. R. <Nic...@in...> - 2016-08-12 09:24:38
|
GLFW is a good choice for the context handling since glut is now deprecated. You can find Python bindings at: https://github.com/rougier/pyglfw For scientific visualization, you might be interested in: http://glumpy.github.io and http://vispy.org Pyglet (https://pyglet.readthedocs.io/en/pyglet-1.2-maintenance/) is great but it seems unmaintained and it does not use the dynamic pipeline (a.k.a. shaders) For a very basic python tutorial on modern GL, you can have a look at: http://glumpy.readthedocs.io/en/latest/tutorial/introduction.html Next, you can look at library such as ogre (http://www.ogre3d.org) that provided python bindings. Mayavi (http://docs.enthought.com/mayavi/mayavi/) is also worth a look and may have already solved your problem. Nicolas > On 12 Aug 2016, at 11:10, Michael Bieri <mi...@gm...> wrote: > > Hi all > > I'm currently trying to dive into the world of 2D/3D graphics with OpenGL. I plan to use it for scientific visualisation. Normally I'll have data that's already close to input data for OpenGL, for example a list of points + a list of indices creating triangles form the points + a color value for each triangle. I plan to use it from Python. > > There's a lot of resources about OpenGL with Python, but I'm not quite sure what's state-of-the-art currently since some resources are several years old. So a few questions: > - Is pyopengl still state-of-the-art or are there better Python bindings for a new project? > - Which context library and which bindings is most recommended as of 2016? I think there's the choice between GLFW, OpenGL Context and GLUT, plus different bindings for each. > > It's relatively difficult to get good answers on these questions since not too many people do OpenGL with Python. So hopefully the mailing list can help a bit. > > Best regards > Michael > ------------------------------------------------------------------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > patterns at an interface-level. Reveals which users, apps, and protocols are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity > planning reports. http://sdm.link/zohodev2dev_______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users |
From: Michael B. <mi...@gm...> - 2016-08-12 10:00:42
|
Thanks Nicolas for that list, there are some interesting project. For the moment, I'd like to use rather simple, low-level stuff that gives me good access and an unobstructed view to what's going on on the GPU, as I might also want to do some non-graphic calculations closely related to the geometry on it. So high-level visualisation APIs like Mayavi are not the solution right now, as they also seem very "heavyweight" with a lot of dependencies. Is there a specific reason you did not recommend your own project, Glumpy? It seems to be a lean but powerful library. On Fri, Aug 12, 2016 at 11:24 AM, Nicolas P. Rougier < Nic...@in...> wrote: > > > GLFW is a good choice for the context handling since glut is now > deprecated. > You can find Python bindings at: https://github.com/rougier/pyglfw > > > For scientific visualization, you might be interested in: > http://glumpy.github.io and http://vispy.org > > > Pyglet (https://pyglet.readthedocs.io/en/pyglet-1.2-maintenance/) is > great but it seems unmaintained and it does not use the dynamic pipeline > (a.k.a. shaders) > > > For a very basic python tutorial on modern GL, you can have a look at: > http://glumpy.readthedocs.io/en/latest/tutorial/introduction.html > > > Next, you can look at library such as ogre (http://www.ogre3d.org) that > provided python bindings. > Mayavi (http://docs.enthought.com/mayavi/mayavi/) is also worth a look > and may have already solved your problem. > > > > Nicolas > > > > > > On 12 Aug 2016, at 11:10, Michael Bieri <mi...@gm...> wrote: > > > > Hi all > > > > I'm currently trying to dive into the world of 2D/3D graphics with > OpenGL. I plan to use it for scientific visualisation. Normally I'll have > data that's already close to input data for OpenGL, for example a list of > points + a list of indices creating triangles form the points + a color > value for each triangle. I plan to use it from Python. > > > > There's a lot of resources about OpenGL with Python, but I'm not quite > sure what's state-of-the-art currently since some resources are several > years old. So a few questions: > > - Is pyopengl still state-of-the-art or are there better Python bindings > for a new project? > > - Which context library and which bindings is most recommended as of > 2016? I think there's the choice between GLFW, OpenGL Context and GLUT, > plus different bindings for each. > > > > It's relatively difficult to get good answers on these questions since > not too many people do OpenGL with Python. So hopefully the mailing list > can help a bit. > > > > Best regards > > Michael > > ------------------------------------------------------------ > ------------------ > > What NetFlow Analyzer can do for you? Monitors network bandwidth and > traffic > > patterns at an interface-level. Reveals which users, apps, and protocols > are > > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > > J-Flow, sFlow and other flows. Make informed decisions using capacity > > planning reports. http://sdm.link/zohodev2dev___ > ____________________________________________ > > PyOpenGL Homepage > > http://pyopengl.sourceforge.net > > _______________________________________________ > > PyOpenGL-Users mailing list > > PyO...@li... > > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > > |
From: Nicolas P. R. <Nic...@in...> - 2016-08-12 10:21:56
|
I did, it's in the list... Nicolas > On 12 Aug 2016, at 12:00, Michael Bieri <mi...@gm...> wrote: > > Thanks Nicolas for that list, there are some interesting project. > > For the moment, I'd like to use rather simple, low-level stuff that gives me good access and an unobstructed view to what's going on on the GPU, as I might also want to do some non-graphic calculations closely related to the geometry on it. So high-level visualisation APIs like Mayavi are not the solution right now, as they also seem very "heavyweight" with a lot of dependencies. > > Is there a specific reason you did not recommend your own project, Glumpy? It seems to be a lean but powerful library. > > > On Fri, Aug 12, 2016 at 11:24 AM, Nicolas P. Rougier <Nic...@in...> wrote: > > > GLFW is a good choice for the context handling since glut is now deprecated. > You can find Python bindings at: https://github.com/rougier/pyglfw > > > For scientific visualization, you might be interested in: > http://glumpy.github.io and http://vispy.org > > > Pyglet (https://pyglet.readthedocs.io/en/pyglet-1.2-maintenance/) is great but it seems unmaintained and it does not use the dynamic pipeline (a.k.a. shaders) > > > For a very basic python tutorial on modern GL, you can have a look at: > http://glumpy.readthedocs.io/en/latest/tutorial/introduction.html > > > Next, you can look at library such as ogre (http://www.ogre3d.org) that provided python bindings. > Mayavi (http://docs.enthought.com/mayavi/mayavi/) is also worth a look and may have already solved your problem. > > > > Nicolas > > > > > > On 12 Aug 2016, at 11:10, Michael Bieri <mi...@gm...> wrote: > > > > Hi all > > > > I'm currently trying to dive into the world of 2D/3D graphics with OpenGL. I plan to use it for scientific visualisation. Normally I'll have data that's already close to input data for OpenGL, for example a list of points + a list of indices creating triangles form the points + a color value for each triangle. I plan to use it from Python. > > > > There's a lot of resources about OpenGL with Python, but I'm not quite sure what's state-of-the-art currently since some resources are several years old. So a few questions: > > - Is pyopengl still state-of-the-art or are there better Python bindings for a new project? > > - Which context library and which bindings is most recommended as of 2016? I think there's the choice between GLFW, OpenGL Context and GLUT, plus different bindings for each. > > > > It's relatively difficult to get good answers on these questions since not too many people do OpenGL with Python. So hopefully the mailing list can help a bit. > > > > Best regards > > Michael > > ------------------------------------------------------------------------------ > > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > > patterns at an interface-level. Reveals which users, apps, and protocols are > > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > > J-Flow, sFlow and other flows. Make informed decisions using capacity > > planning reports. http://sdm.link/zohodev2dev_______________________________________________ > > PyOpenGL Homepage > > http://pyopengl.sourceforge.net > > _______________________________________________ > > PyOpenGL-Users mailing list > > PyO...@li... > > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > > |