[Numpy-discussion] [Matplotlib-users] glumpy: fast OpenGL numpy visualization + matplotlib integration
Mon Sep 28 12:16:15 CDT 2009
This is good. I have been looking forward to seeing something like
this for a while.
I'd be cool however, to dump a *real* python function into a vertex
shader and let it do real mesh deformations. I know, it would be hard
to validate if it wasn;t doing some crazy stuff. Of course, with new
(ie soon-to be-introduced) tesselation extensions to opengl, the mesh
itself could be generated on the gpu itself.
On Mon, Sep 28, 2009 at 10:07 PM, Nicolas Rougier
> Well, I've been starting working on a pyglet backend but it is currently
> painfully slow mainly because I do not know enough of the matplotlib
> internal machinery to really benefit from it. In the case of glumpy, the use
> of texture object for representing 2d arrays is a real speed boost since
> interpolation/colormap/heightmap is made on the GPU.
> Concerning matplotlib examples, the use of glumpy should be actually two
> lines of code:
> from pylab import *
> from glumpy import imshow, show
> but I did not package it this way yet (that is easy however).
> I guess the main question is whether people are interested in glumpy to have
> a quick & dirty "debug" tool on top of matplotlib or whether they prefer a
> full fledged and fast pyglet/OpenGL backend (which is really harder).
> On 28 Sep, 2009, at 18:05 , Gökhan Sever wrote:
> On Mon, Sep 28, 2009 at 9:06 AM, Nicolas Rougier <Nicolas.Rougier@loria.fr>
>> Hi all,
>> glumpy is a fast OpenGL visualization tool for numpy arrays coded on
>> top of pyglet (http://www.pyglet.org/). The package contains many
>> demos showing basic usage as well as integration with matplotlib. As a
>> reference, the animation script available from matplotlib distribution
>> runs at around 500 fps using glumpy instead of 30 fps on my machine.
>> Package/screenshots/explanations at:
>> (it does not require installation so you can run demos from within the
>> glumpy directory).
>> NumPy-Discussion mailing list
> Hi Nicolas,
> This is technically called OpenGL backend, isn't it? It is nice that
> integrates with matplotlib, however 300 hundred lines of code indeed a lot
> of lines for an ordinary user. Do you think this could be further integrated
> into matplotlib with a wrapper to simplify its usage?
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> Matplotlib-users mailing list
> NumPy-Discussion mailing list
Department of Physics
Indian Institute of Technology
More information about the NumPy-Discussion