pyopengl-users Mailing List for PyOpenGL (Page 6)
Brought to you by:
mcfletch
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(81) |
Oct
(41) |
Nov
(55) |
Dec
(14) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(34) |
Feb
(3) |
Mar
(16) |
Apr
(5) |
May
(10) |
Jun
(13) |
Jul
(24) |
Aug
(14) |
Sep
(14) |
Oct
(9) |
Nov
(10) |
Dec
(16) |
2003 |
Jan
(25) |
Feb
(59) |
Mar
(9) |
Apr
(21) |
May
(54) |
Jun
(4) |
Jul
(16) |
Aug
(19) |
Sep
(19) |
Oct
(15) |
Nov
(13) |
Dec
(22) |
2004 |
Jan
(19) |
Feb
(8) |
Mar
(20) |
Apr
(16) |
May
(13) |
Jun
(18) |
Jul
(18) |
Aug
(14) |
Sep
(24) |
Oct
(47) |
Nov
(20) |
Dec
(10) |
2005 |
Jan
(23) |
Feb
(31) |
Mar
(11) |
Apr
(29) |
May
(18) |
Jun
(7) |
Jul
(11) |
Aug
(12) |
Sep
(8) |
Oct
(4) |
Nov
(11) |
Dec
(7) |
2006 |
Jan
(7) |
Feb
(8) |
Mar
(15) |
Apr
(3) |
May
(8) |
Jun
(25) |
Jul
(19) |
Aug
(3) |
Sep
(17) |
Oct
(27) |
Nov
(24) |
Dec
(9) |
2007 |
Jan
(6) |
Feb
(43) |
Mar
(33) |
Apr
(8) |
May
(20) |
Jun
(11) |
Jul
(7) |
Aug
(8) |
Sep
(11) |
Oct
(22) |
Nov
(15) |
Dec
(18) |
2008 |
Jan
(14) |
Feb
(6) |
Mar
(6) |
Apr
(37) |
May
(13) |
Jun
(17) |
Jul
(22) |
Aug
(16) |
Sep
(14) |
Oct
(16) |
Nov
(29) |
Dec
(13) |
2009 |
Jan
(7) |
Feb
(25) |
Mar
(38) |
Apr
(57) |
May
(12) |
Jun
(32) |
Jul
(32) |
Aug
(35) |
Sep
(10) |
Oct
(28) |
Nov
(16) |
Dec
(49) |
2010 |
Jan
(57) |
Feb
(37) |
Mar
(22) |
Apr
(15) |
May
(45) |
Jun
(25) |
Jul
(32) |
Aug
(7) |
Sep
(13) |
Oct
(2) |
Nov
(11) |
Dec
(28) |
2011 |
Jan
(35) |
Feb
(39) |
Mar
|
Apr
(25) |
May
(32) |
Jun
(17) |
Jul
(29) |
Aug
(10) |
Sep
(26) |
Oct
(9) |
Nov
(28) |
Dec
(4) |
2012 |
Jan
(24) |
Feb
(47) |
Mar
(4) |
Apr
(8) |
May
(9) |
Jun
(6) |
Jul
(4) |
Aug
(1) |
Sep
(4) |
Oct
(28) |
Nov
(2) |
Dec
(2) |
2013 |
Jan
(11) |
Feb
(3) |
Mar
(4) |
Apr
(38) |
May
(15) |
Jun
(11) |
Jul
(15) |
Aug
(2) |
Sep
(2) |
Oct
(4) |
Nov
(3) |
Dec
(14) |
2014 |
Jan
(24) |
Feb
(31) |
Mar
(28) |
Apr
(16) |
May
(7) |
Jun
(6) |
Jul
(1) |
Aug
(10) |
Sep
(10) |
Oct
(2) |
Nov
|
Dec
|
2015 |
Jan
(6) |
Feb
(5) |
Mar
(2) |
Apr
(1) |
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
(2) |
Oct
(1) |
Nov
(19) |
Dec
|
2016 |
Jan
(6) |
Feb
(1) |
Mar
(7) |
Apr
|
May
(6) |
Jun
|
Jul
(3) |
Aug
(7) |
Sep
|
Oct
(2) |
Nov
(2) |
Dec
|
2017 |
Jan
|
Feb
(6) |
Mar
(8) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(3) |
Oct
(2) |
Nov
|
Dec
|
2018 |
Jan
(9) |
Feb
(1) |
Mar
|
Apr
|
May
(1) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(6) |
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
(7) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Johannes B. <dfn...@gm...> - 2015-01-27 20:36:54
|
Hello list, I'm trying to store objects (currently only vertices) on the graphics card so that I can avoid lots of: glBegin() glVertex(...) [...] glEnd() I've tried lots and lots of code now (none of which fully did what I wanted) and really am losing my mind soon :-( I could adapt this to work with my code: https://gist.github.com/MorganBorman/4243336 And it does work, but when integrated in my 3D environment I noticed that the drawn objects are not rendered perspectively, but just a flat object. I'm looking for the easiest way to dump a bunch of vertices onto the graphics card and later reference those vertices to draw some object and have it render as if I had used glBegin(), glVertex(), glEnd(). Is this possible at all? Which approach should I look into? In general I've seen two different approaches, one that involes (usually super-primitive) shaders, others do not. I do not see why I would need a custom-shader for this task, is this really necessary? My goal ultimately is to store surfaces (i.e. vertices, their normals, their texture UV coordinates) on the graphics card. Any help is greatly appreciated, Johannes |
From: Joe <hom...@gm...> - 2014-10-06 10:24:35
|
Hello, thanks for your reply. The example is working now, I replaced the buffers entry with int(<vbo>) as you suggested. But after that I ran into another problem, which I found a solution for but I don't know why it works. Here again the link to the example: https://gitorious.org/openclgltest/openclgltest/source/7b9969ef093e7bc04100a860588e6bb115731d97:testpyopengl.py#L173 There was a "wrong type" error in the last parameter of the following calls: > 173 gl.glVertexPointer(4, gl.GL_FLOAT, 0, self.arrvbo) > 175 gl.glColorPointer(4, gl.GL_FLOAT, 0, self.colvbo) I did not know what to do and changed it to "None": > 173 gl.glVertexPointer(4, gl.GL_FLOAT, 0, None) > 175 gl.glColorPointer(4, gl.GL_FLOAT, 0, None) and that worked. But I have absolutly no idea why. Why do the functions know where the vertices / colors are as I do not specify a pointer to the VBO? Has it something to do with the .bind() calls of the VBO before glVertexPointer / glColorPointer? > self.arrvbo.bind() > gl.glVertexPointer(4, gl.GL_FLOAT, 0, self.arrvbo) > self.colvbo.bind() > gl.glColorPointer(4, gl.GL_FLOAT, 0, self.colvbo) Kind regards, Joe Am 30.09.2014 21:24, schrieb Mike C. Fletcher: > On 14-09-24 07:40 AM, Walter White wrote: >> Hello, >> >> I came across a problem and hope that you can help me, >> since I could not find a solution crawling the net. > > Basically the code is trying to access the "buffers" member of the VBO > object. The OpenGL_accelerate version of the VBO (the cython-implemented > one) does *not* have a .buffers (list), only a .buffer (int). Probably > the attributes should be named _buffer and/or _buffers, as they aren't > normally used by external code, the normal way to get the ID of the VBO > is int(<vbo>). > > HTH, > Mike > |
From: Alejandro S. <as...@gm...> - 2014-10-06 02:25:46
|
Hi Mike, Thank you for your answer. I ended up finding the problem, but realized that maybe my description wasn't as accurate as I thought. What I was trying to do was load a DXT5 compressed texture. That's why I was using glCompressedTexImage2D. I was not trying to compress a texture. The problem was caused by the fact that DXT5 textures already include all their mipmap levels, which is a problem when working with OpenGL because you are basically expected to supply the mipmap levels one at a time. This (old) paper I'm linking here describes how to do the math to achieve this: http://www.oldunreal.com/editing/s3tc/ARB_texture_compression.pdf (C++ code) Alejandro.- 2014-09-30 15:15 GMT-04:00 Mike C. Fletcher <mcf...@vr...>: > On 14-09-27 01:02 PM, Alejandro Segovia wrote: > > Hey guys, > > > > I'm having trouble figuring out how the binding works for the S3TC > > compressed textures extension. > > I don't see anywhere in your code where you are compressing the content > with s3tc_dxt5 compression. I believe (though I have no experience using > compressed textures), that if you're just trying to get the GL to use an > internal format with compression you need something like: > > glTexImage2D( > GL_TEXTURE_2D, 0, > GL_COMPRESSED_RGBA_S3TC_DXT5_EXT, # internal format... > ix, iy, 0, > GL_RGBA, > GL_UNSIGNED_BYTE, > image > ) > > so that the GL will do the compression of the data. Incidentally, > there's a bug in the handling of uploading compressed texture data > (refactoring error), a fix for that should go out in the next release. > > Sample code here: > > > http://bazaar.launchpad.net/~mcfletch/openglcontext/trunk/view/head:/tests/nehe6_compressed.py > > HTH, > Mike > > -- > ________________________________________________ > Mike C. Fletcher > Designer, VR Plumber, Coder > http://www.vrplumber.com > http://blog.vrplumber.com > > > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > |
From: Mike C. F. <mcf...@vr...> - 2014-09-30 19:24:53
|
On 14-09-24 07:40 AM, Walter White wrote: > Hello, > > I came across a problem and hope that you can help me, > since I could not find a solution crawling the net. Basically the code is trying to access the "buffers" member of the VBO object. The OpenGL_accelerate version of the VBO (the cython-implemented one) does *not* have a .buffers (list), only a .buffer (int). Probably the attributes should be named _buffer and/or _buffers, as they aren't normally used by external code, the normal way to get the ID of the VBO is int(<vbo>). HTH, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |
From: Mike C. F. <mcf...@vr...> - 2014-09-30 19:15:58
|
On 14-09-27 01:02 PM, Alejandro Segovia wrote: > Hey guys, > > I'm having trouble figuring out how the binding works for the S3TC > compressed textures extension. I don't see anywhere in your code where you are compressing the content with s3tc_dxt5 compression. I believe (though I have no experience using compressed textures), that if you're just trying to get the GL to use an internal format with compression you need something like: glTexImage2D( GL_TEXTURE_2D, 0, GL_COMPRESSED_RGBA_S3TC_DXT5_EXT, # internal format... ix, iy, 0, GL_RGBA, GL_UNSIGNED_BYTE, image ) so that the GL will do the compression of the data. Incidentally, there's a bug in the handling of uploading compressed texture data (refactoring error), a fix for that should go out in the next release. Sample code here: http://bazaar.launchpad.net/~mcfletch/openglcontext/trunk/view/head:/tests/nehe6_compressed.py HTH, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |
From: Alejandro S. <as...@gm...> - 2014-09-27 17:02:58
|
Hey guys, I'm having trouble figuring out how the binding works for the S3TC compressed textures extension. Here's the relevant snippet: from OpenGL import extensions if not extensions.hasGLExtension("GL_EXT_texture_compression_s3tc"): print "Extension GL_EXT_texture_compression_s3tc required for texture mapping!" os.abort() img = pygame.image.load(“diff.png”) raw = pygame.image.tostring(img, "RGB") diff_tex = glGenTextures(1) glBindTexture(GL_TEXTURE_2D, diff_tex) glCompressedTexImage2DARB(GL_TEXTURE_2D, 0, GL_COMPRESSED_RGBA_S3TC_DXT5_EXT, img.get_width(), img.get_height(), 0, len(raw), raw) This is raising an Invalid Value GL error: err = 1281, description = 'invalid value', baseOperation = glCompressedTexImage2DARB, According to the GL docs, invalid value is raised if the size parameter specified does not match the passed-in byte array, which it should, since it's just a len() of the data. I also tried width * height * 3, but to no avail. I'm using pygame to read the image and convert it into a string (byte array), which works fine with glTextImage2D, but seems to fail for this extension. Has any of you ever encountered something similar? I'm pretty sure I must be missing something related to the binding, but can't seem to figure out what. Thanks in advance, Alejandro.- |
From: Walter W. <hom...@gm...> - 2014-09-24 11:40:23
|
Hello, I came across a problem and hope that you can help me, since I could not find a solution crawling the net. I was trying to run some examples to visualize OpenCL calculations using OpenGL with shared buffers using Python 3.3 PyOpenGL 3.1.0 PyOpenGL-accelarate 3.1.0 pyopencl 2014.1 The examples are similar, one that might serve as example is https://gitorious.org/openclgltest/openclgltest Trying to run this throws the error: Traceback (most recent call last): File ".\testpyopengl.py", line 234, in <module> mytest = test() File ".\testpyopengl.py", line 91, in __init__ self.loadclData() File ".\testpyopengl.py", line 205, in loadclData self.arr_cl = cl.GLBuffer(self.ctx, mf.READ_WRITE, int(self.arrvbo.buffers[0])) File "vbo.pyx", line 177, in OpenGL_accelerate.vbo.VBO.__ getattr__ (D:\Build\PyOpenGL\pyopengl-bzr\OpenGL_accelerate\src\vbo.c:2757) AttributeError: 'numpy.ndarray' object has no attribute 'buffers' Here are two things that might be related to the issue: 1.) PyOpenGL 3.1.0b3; Py_buffer on Python3 unsupported https://sourceforge.net/p/pyopengl/mailman/message/32385909/ 2.) This post that mentions that Python 3 might be the problem. Is that the case? http://stackoverflow.com/questions/21821045/numpy-getbuffer-causes-attributeerror-module-object-has-no-attribute-getbuff I found that another example https://github.com/enjalot/adventures_in_opencl/blob/master/python/part2/part2.py was trying to fix this like try: self.pos_cl = cl.GLBuffer(self.ctx, mf.READ_WRITE, int(self.pos_vbo.buffer)) self.col_cl = cl.GLBuffer(self.ctx, mf.READ_WRITE, int(self.col_vbo.buffer)) except AttributeError: self.pos_cl = cl.GLBuffer(self.ctx, mf.READ_WRITE, int(self.pos_vbo.buffers[0])) self.col_cl = cl.GLBuffer(self.ctx, mf.READ_WRITE, int(self.col_vbo.buffers[0])) But changing the example above like this results in Traceback (most recent call last): File ".\python-3.3.3.amd64\lib\site-packages\OpenGL\GLUT\special.py", line 130, in safeCall return function( *args, **named ) File ".\testpyopengl.py", line 182, in draw gl.glVertexPointer(4, gl.GL_FLOAT, 0, self.arrvbo) File "latebind.pyx", line 32, in OpenGL_accelerate.latebind.LateBind.__call__ (D:\Build\PyOpenGL\pyopengl-bzr\OpenGL_accelerate\src\latebind.c:992) File "wrapper.pyx", line 314, in OpenGL_accelerate.wrapper.Wrapper.__call__ (D:\Build\PyOpenGL\pyopengl-bzr\OpenGL_accelerate\src\wrapper.c:6508) File "wrapper.pyx", line 311, in OpenGL_accelerate.wrapper.Wrapper.__call__ (D:\Build\PyOpenGL\pyopengl-bzr\OpenGL_accelerate\src\wrapper.c:6442) File ".\python-3.3.3.amd64\lib\site-packages\OpenGL\platform\baseplatform.py", line 402, in __call__ return self( *args, **named ) ctypes.ArgumentError: ("argument 4: <class 'TypeError'>: wrong type", (4, GL_FLOAT, 0, <OpenGL_accelerate.vbo.VBO object at 0x0000000004752A60>)) GLUT Display callback <bound method test.draw of <__main__.test object at 0x0000000003A959B0>> with (),{} failed: returning None ("argument 4: <class 'TypeError'>: wrong type", (4, GL_FLOAT, 0, <OpenGL_accelerate.vbo.VBO object at 0x0000000004752A60>)) Well, that for now. I hope you have some ideas on how to fix this. Kind regards, Joe |
From: Ian M. <ia...@ge...> - 2014-09-10 17:24:22
|
On Wed, Sep 10, 2014 at 8:22 AM, Nicolas P. Rougier < Nic...@in...> wrote: > On 30 Aug 2014, at 22:10, Berlioz Silver <roc...@gm...> wrote: > > I'd still like to know if there are other good tutorials though. > It's not a tutorial, but many of my supported open source projects have simple PyOpenGL code for various purposes. For example, this project <http://geometrian.com/programming/projects/index.php?project=Mandelbrot%20Set> has reasonably robust and clear shader code. Ian |
From: Nicolas P. R. <Nic...@in...> - 2014-09-10 14:22:18
|
Here is another tutorial: http://www.loria.fr/~rougier/teaching/opengl/ One part (gloo) is linked to the vispy project (vispy.org) but I tried to give an overview of modern GL. Nicolas On 30 Aug 2014, at 22:10, Berlioz Silver <roc...@gm...> wrote: > Sorry, just figured it out. > > I'd still like to know if there are other good tutorials though. > > > On Sat, Aug 30, 2014 at 1:07 PM, Berlioz Silver <roc...@gm...> wrote: > I've been interested in attempting to use pyopengl and pygame together to display 3D images and accelerate my programs. > > I figured a logical first step would be to learn a bit about pyopengl, so I tried the tutorial. > > I successfully installed pyopengl on OSX 10.9, and ran the first tutorial. > > However, the second (introducing color variations http://pyopengl.sourceforge.net/context/tutorials/shader_2.html) fails with a bus error 10. > > Is there another tutorial I should follow/what mistake did I make that is giving me a segfault? > > Here is my code: > > > > from OpenGLContext import testingcontext > BaseContext = testingcontext.getInteractive() > from OpenGL.GL import * > from OpenGL.arrays import vbo > from OpenGL.GL import shaders > > import numpy as np > > > class TestContext(BaseContext): > def OnInit(self): > try: > VERTEX_SHADER = shaders.compileShader(""" > varying vec4 vertex_color; > void main(){ > gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; > vertex_color = gl_Color; > }""", GL_VERTEX_SHADER) > FRAGMENT_SHADER = shaders.compileShader(""" > varying vec4 vertex_color; > void main(){ > gl_FragColor = vertex_color; > }""", GL_FRAGMENT_SHADER) > self.shader = shaders.compileProgram(VERTEX_SHADER, FRAGMENT_SHADER) > except (GLError, RuntimeError) as err: > print "Shader compilation error:", err > raise > self.vbo = vbo.VBO(np.array([ > [ 0, 1, 0, 0,1,0 ], > [-1,-1, 0, 1,1,0 ], > [ 1,-1, 0, 0,1,1 ], > [ 2,-1, 0, 1,0,0 ], > [ 4,-1, 0, 0,1,0 ], > [ 4, 1, 0, 0,0,1 ], > [ 2,-1, 0, 1,0,0 ], > [ 4, 1, 0, 0,0,1 ], > [ 2, 1, 0, 0,1,1 ], > ],'f') ) > def Render(self, mode): > glUseProgram(self.shader) > try: > self.vbo.bind() > try: > glEnableClientState(GL_VERTEX_ARRAY) > glEnableClientState(GL_COLOR_ARRAY) > #glVertexPointerf(self.vbo) > glColorPointer(3, GL_INT, 24, self.vbo+12) > glDrawArrays(GL_TRIANGLES, 0, 9) > finally: > self.vbo.unbind() > glDisableClientState(GL_VERTEX_ARRAY) > glDisableClientState(GL_COLOR_ARRAY) > finally: > shaders.glUseProgram(0) > > if __name__ == "__main__": > TestContext.ContextMainLoop() > > ------------------------------------------------------------------------------ > Want excitement? > Manually upgrade your production database. > When you want reliability, choose Perforce > Perforce version control. Predictably reliable. > http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk_______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users |
From: Mike C. F. <mcf...@vr...> - 2014-09-05 16:45:36
|
I've updated PyOpenGL in bzr head, the changes are mostly to tweak/fix generation, pick up new extensions from the Khronos spec (e.g. OpenGL 4.5), and remove some redundant code (e.g. manually importing included extensions into VERSION extensions). Feel free to test. Likely this will turn into a point release at some point (i.e. 3.1.1), though so far there doesn't seem to be enough there to warrant releasing. Have fun, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |
From: Matt L. <ml...@co...> - 2014-09-02 06:19:05
|
I guess my GL driver is too old? On Tue, Sep 2, 2014 at 1:43 AM, Matt Lewis <ml...@co...> wrote: > All, > > I am writing to ask for some help regarding an error I am experiencing > trying to get software running on my Mac machine. I am attempting to use a > suite of programs known as KlustaSuite, developed at University College > London. > > Professional page: http://klusta-team.github.io/ > GitHub page: https://github.com/klusta-team/ > > Whenever I attempt to run the graphic interface for manual manipulation > data, I get the same error message: > > AttributeError: 'GLRenderer' object has no attribute 'fbos' > > I am in contact with the developers but I am curious if you all might have > a solution for me. I have attached a .txt file of my terminal output. > > Thanks, > > Matt > |
From: Matt L. <ml...@co...> - 2014-09-02 06:14:18
|
2014-09-02 01:16:14 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 260, in initializeGL self.paint_manager.initializeGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 214, in initializeGL self.renderer.initialize() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1517, in initialize self.visual_renderers[name] = GLVisualRenderer(self, visual) File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 744, in __init__ self.visual['fragment_shader']) File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 379, in __init__ self.compile() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 416, in compile self.fs = self.compile_shader(self.fragment_shader, gl.GL_FRAGMENT_SHADER) File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 406, in compile_shader raise RuntimeError(msg) RuntimeError: Compilation error for GL_FRAGMENT_SHADER (35632). ERROR: 0:23: Use of undeclared identifier 'gl_PointCoord' ERROR: 0:24: Use of undeclared identifier 'gl_PointCoord' ERROR: 0:32: Use of undeclared identifier 'x' ERROR: 0:32: Use of undeclared identifier 'x' ERROR: 0:33: Use of undeclared identifier 'x' ERROR: 0:33: Use of undeclared identifier 'x' ERROR: 0:36: Use of undeclared identifier 'x' ERROR: 0:36: Use of undeclared identifier 'y' ERROR: 0:37: Use of undeclared identifier 'coord' ERROR: 0:38: Use of undeclared identifier 'letter_alpha'#version 110 //#version 120 //precision mediump float; uniform vec2 posoffset; uniform vec2 spacing; uniform float point_size; uniform vec4 color; uniform float text_width; uniform vec2 scale; uniform vec2 translation; uniform vec2 viewport; uniform vec2 window_size; uniform sampler2D tex_sampler; varying vec4 flat_text_map; void main() { vec4 out_color = vec4(1.0, 1.0, 0.0, 1.0); // relative coordinates of the pixel within the sprite (in [0,1]) float x = gl_PointCoord.x; float y = gl_PointCoord.y; // size of the corresponding character float w = flat_text_map.z; float h = flat_text_map.w; // display the character at the left of the sprite float delta = h / w; x = delta * x; if ((x >= 0) && (x <= 1)) { // coordinates of the character in the font atlas vec2 coord = flat_text_map.xy + vec2(w * x, h * y); float letter_alpha = texture2D(tex_sampler, coord).a; out_color = color * letter_alpha; out_color.a = 1.; } else out_color = vec4(0, 0, 0, 0); gl_FragColor = out_color; } None 2014-09-02 01:16:14 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 260, in initializeGL self.paint_manager.initializeGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 214, in initializeGL self.renderer.initialize() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1517, in initialize self.visual_renderers[name] = GLVisualRenderer(self, visual) File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 744, in __init__ self.visual['fragment_shader']) File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 379, in __init__ self.compile() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 415, in compile self.vs = self.compile_shader(self.vertex_shader, gl.GL_VERTEX_SHADER) File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 406, in compile_shader raise RuntimeError(msg) RuntimeError: Compilation error for GL_VERTEX_SHADER (35633). ERROR: 0:49: '*' does not operate on 'float' and 'int' ERROR: 0:56: '+' does not operate on 'float' and 'int'#version 110 //#version 120 //precision mediump float; // Transform a position according to a given scaling and translation. vec2 transform_position(vec2 position, vec2 scale, vec2 translation) { return scale * (position + translation); } uniform int toggle_mask; uniform int nclusters; uniform vec2 box_size; uniform vec2 box_size_margin; uniform vec2 probe_scale; uniform bool superimposed; uniform vec2 channel_positions[1000]; uniform vec2 scale; uniform vec2 translation; uniform vec2 viewport; uniform vec2 window_size; attribute vec2 position0; attribute float mask; attribute float cluster; attribute float cluster_depth; attribute float channel; attribute float highlight; attribute float cmap_index; varying float vmask; varying float vhighlight; varying float cmap_vindex; void main() { // get channel position vec2 channel_position = channel_positions[int(channel)]; // get the box position vec2 box_position = channel_position; // take probe scaling into account box_position *= probe_scale; // adjust box position in the separated case if (!superimposed) { box_position.x += box_size_margin.x * (0.5 + cluster - 0.5 * nclusters); } // compute the depth: put masked spikes on the background, unmasked ones // on the foreground on a different layer for each cluster float depth = 0.; if (mask == 1.) depth = -(cluster_depth + 1) / (nclusters + 10); // move the vertex to its position0 vec3 position = vec3(position0 * 0.5 * box_size + box_position, depth); cmap_vindex = cmap_index; vhighlight = highlight; vmask = mask; gl_Position = vec4(transform_position(position.xy, scale, translation), position.z, 1.); } None 2014-09-02 01:16:14 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 260, in initializeGL self.paint_manager.initializeGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 214, in initializeGL self.renderer.initialize() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1517, in initialize self.visual_renderers[name] = GLVisualRenderer(self, visual) File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 744, in __init__ self.visual['fragment_shader']) File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 379, in __init__ self.compile() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 415, in compile self.vs = self.compile_shader(self.vertex_shader, gl.GL_VERTEX_SHADER) File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 406, in compile_shader raise RuntimeError(msg) RuntimeError: Compilation error for GL_VERTEX_SHADER (35633). ERROR: 0:46: '+' does not operate on 'float' and 'int' ERROR: 0:49: '>' does not operate on 'float' and 'int' ERROR: 0:49: '>' does not operate on 'float' and 'int'#version 110 //#version 120 //precision mediump float; // Transform a position according to a given scaling and translation. vec2 transform_position(vec2 position, vec2 scale, vec2 translation) { return scale * (position + translation); } uniform int toggle_mask; uniform int nclusters; uniform vec2 scale; uniform vec2 translation; uniform vec2 viewport; uniform vec2 window_size; attribute vec2 position0; attribute float mask; attribute float highlight; attribute float selection; attribute float cluster_depth; attribute float cmap_index; varying float vmask; varying float vhighlight; varying float vselection; varying float cmap_vindex; void main() { // move the vertex to its position vec3 position = vec3(0, 0, 0); position.xy = position0; vhighlight = highlight; cmap_vindex = cmap_index; vmask = mask; vselection = selection; // compute the depth: put masked spikes on the background, unmasked ones // on the foreground on a different layer for each cluster float depth = 0.; //if (mask == 1.) depth = -(cluster_depth + 1) / (nclusters + 10); position.z = depth; if ((highlight > 0) || (selection > 0)) gl_PointSize = 5.; else gl_PointSize = 3.; // DEBUG //gl_PointSize = 20; gl_Position = vec4(transform_position(position.xy, scale, translation), position.z, 1.); } None 2014-09-02 01:16:14 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 260, in initializeGL self.paint_manager.initializeGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 214, in initializeGL self.renderer.initialize() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1517, in initialize self.visual_renderers[name] = GLVisualRenderer(self, visual) File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 744, in __init__ self.visual['fragment_shader']) File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 379, in __init__ self.compile() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 415, in compile self.vs = self.compile_shader(self.vertex_shader, gl.GL_VERTEX_SHADER) File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 406, in compile_shader raise RuntimeError(msg) RuntimeError: Compilation error for GL_VERTEX_SHADER (35633). ERROR: 0:29: '*' does not operate on 'int' and 'float' ERROR: 0:32: Use of undeclared identifier 'a' ERROR: 0:32: '*' does not operate on 'int' and 'float' ERROR: 0:32: '*' does not operate on 'int' and 'float' ERROR: 0:33: Use of undeclared identifier 'a' ERROR: 0:33: '*' does not operate on 'int' and 'float' ERROR: 0:33: '*' does not operate on 'int' and 'float' ERROR: 0:36: '*' does not operate on 'int' and 'float' ERROR: 0:37: Use of undeclared identifier 'a'#version 110 //#version 120 //precision mediump float; // Transform a position according to a given scaling and translation. vec2 transform_position(vec2 position, vec2 scale, vec2 translation) { return scale * (position + translation); } uniform float point_size; uniform int nclusters; uniform vec2 scale; uniform vec2 translation; uniform vec2 viewport; uniform vec2 window_size; attribute vec2 position; attribute float index; attribute vec2 cluster; varying float vindex; void main() { vindex = index; gl_PointSize = point_size; float margin = 0.05; float a = 1.0 / (nclusters * (1 + 2 * margin)); vec2 box_position = vec2(0, 0); box_position.x = -1 + a * (1 + 2 * margin) * (2 * cluster.x + 1); box_position.y = -1 + a * (1 + 2 * margin) * (2 * cluster.y + 1); vec2 transformed_position = position; transformed_position.y = 2 * transformed_position.y - 1; transformed_position = box_position + a * transformed_position; gl_Position = vec4(transform_position(transformed_position.xy, scale, translation), 0., 1.); } None 2014-09-02 01:16:14 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:14 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:14 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:14 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:14 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:14 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:33 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:33 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:33 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:33 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:33 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:33 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:33 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:33 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:37 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:37 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:37 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:37 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:37 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:37 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:37 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:37 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:37 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:37 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:37 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:37 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:37 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:37 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:37 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:37 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:40 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:40 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:40 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:40 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:40 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:40 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:40 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:40 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:40 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:40 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:40 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:40 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:40 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:41 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:42 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:42 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None 2014-09-02 01:16:42 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/klustaviewa/gui/mainwindow.py", line 1212, in keyPressEvent [view.keyPressEvent(e) for view in views] File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 348, in keyPressEvent self.process_interaction() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 550, in process_interaction event, args = self.get_current_event() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 510, in get_current_event action, key, key_modifier, parameters = self.get_current_action() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 500, in get_current_action self.user_action_generator.get_action_parameters()) File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 404, in normalize_action_parameters *parameters["mouse_position"]) File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 376, in normalize_position y = -(-vy + 2 * vy * y / float(self.h)) ZeroDivisionError: float division by zero None 2014-09-02 01:16:43 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/klustaviewa/gui/mainwindow.py", line 1212, in keyPressEvent [view.keyPressEvent(e) for view in views] File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 348, in keyPressEvent self.process_interaction() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 550, in process_interaction event, args = self.get_current_event() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 510, in get_current_event action, key, key_modifier, parameters = self.get_current_action() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 500, in get_current_action self.user_action_generator.get_action_parameters()) File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 404, in normalize_action_parameters *parameters["mouse_position"]) File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 376, in normalize_position y = -(-vy + 2 * vy * y / float(self.h)) ZeroDivisionError: float division by zero None 2014-09-02 01:16:44 logger:175 Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/galrywidget.py", line 279, in paintGL self.paint_manager.paintGL() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/paintmanager.py", line 222, in paintGL self.renderer.paint() File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/klustaviewa-0.3.0.beta1-py2.7-macosx-10.7-x86_64.egg/galry/glrenderer.py", line 1538, in paint if not self.fbos: AttributeError: 'GLRenderer' object has no attribute 'fbos' None |
From: amand <am...@fr...> - 2014-09-01 12:25:29
|
> On 14-08-20 12:38 PM, amand wrote: >> Hello! >> >> I'am working on a project in C and I need to draw PyOpenGL stuff with >> embedded python. >> >> So far I have been able to draw with the embedded python. But it does >> not work every time... >> >> Sometimes, the Python module just raises an error (Exception >> OpenGL.error.GLError: GLError( err=1281, description = 'invalid >> value', >> baseOperation = glVertexAttribPointer)), and some other times, it's >> working perfectly... >> >> Is there a way to share the OpenGL context without any errors? > > Carefully. > > Basically you need to make sure that your C code is not interfering > with > the Python code. GL state is a monolithic thing, so if your C code is > modifying the bound VBO, shader, etc while you are rendering then you > are going to see failures where your Python is attempting to use the > modified state. You need to ensure that you are always suspending C > rendering before you enter Python (and suspending it in a known state), > and then re-enabling C rendering when you are done. > > HTH, > Mike Thanks for your response! It's now working, there were some gl errors raised by C in my code. I will follow your advice! -- amand. |
From: Berlioz S. <roc...@gm...> - 2014-08-30 20:10:12
|
Sorry, just figured it out. I'd still like to know if there are other good tutorials though. On Sat, Aug 30, 2014 at 1:07 PM, Berlioz Silver <roc...@gm...> wrote: > I've been interested in attempting to use pyopengl and pygame together to > display 3D images and accelerate my programs. > > I figured a logical first step would be to learn a bit about pyopengl, so > I tried the tutorial. > > I successfully installed pyopengl on OSX 10.9, and ran the first tutorial. > > However, the second (introducing color variations > http://pyopengl.sourceforge.net/context/tutorials/shader_2.html) fails > with a bus error 10. > > Is there another tutorial I should follow/what mistake did I make that is > giving me a segfault? > > Here is my code: > > > > from OpenGLContext import testingcontext > BaseContext = testingcontext.getInteractive() > from OpenGL.GL import * > from OpenGL.arrays import vbo > from OpenGL.GL import shaders > > import numpy as np > > > class TestContext(BaseContext): > def OnInit(self): > try: > VERTEX_SHADER = shaders.compileShader(""" > varying vec4 vertex_color; > void main(){ > gl_Position = gl_ModelViewProjectionMatrix * > gl_Vertex; > vertex_color = gl_Color; > }""", GL_VERTEX_SHADER) > FRAGMENT_SHADER = shaders.compileShader(""" > varying vec4 vertex_color; > void main(){ > gl_FragColor = vertex_color; > }""", GL_FRAGMENT_SHADER) > self.shader = shaders.compileProgram(VERTEX_SHADER, FRAGMENT_SHADER) > except (GLError, RuntimeError) as err: > print "Shader compilation error:", err > raise > self.vbo = vbo.VBO(np.array([ > [ 0, 1, 0, 0,1,0 ], > [-1,-1, 0, 1,1,0 ], > [ 1,-1, 0, 0,1,1 ], > [ 2,-1, 0, 1,0,0 ], > [ 4,-1, 0, 0,1,0 ], > [ 4, 1, 0, 0,0,1 ], > [ 2,-1, 0, 1,0,0 ], > [ 4, 1, 0, 0,0,1 ], > [ 2, 1, 0, 0,1,1 ], > ],'f') ) > def Render(self, mode): > glUseProgram(self.shader) > try: > self.vbo.bind() > try: > glEnableClientState(GL_VERTEX_ARRAY) > glEnableClientState(GL_COLOR_ARRAY) > #glVertexPointerf(self.vbo) > glColorPointer(3, GL_INT, 24, self.vbo+12) > glDrawArrays(GL_TRIANGLES, 0, 9) > finally: > self.vbo.unbind() > glDisableClientState(GL_VERTEX_ARRAY) > glDisableClientState(GL_COLOR_ARRAY) > finally: > shaders.glUseProgram(0) > > if __name__ == "__main__": > TestContext.ContextMainLoop() > |
From: Berlioz S. <roc...@gm...> - 2014-08-30 20:07:08
|
I've been interested in attempting to use pyopengl and pygame together to display 3D images and accelerate my programs. I figured a logical first step would be to learn a bit about pyopengl, so I tried the tutorial. I successfully installed pyopengl on OSX 10.9, and ran the first tutorial. However, the second (introducing color variations http://pyopengl.sourceforge.net/context/tutorials/shader_2.html) fails with a bus error 10. Is there another tutorial I should follow/what mistake did I make that is giving me a segfault? Here is my code: from OpenGLContext import testingcontext BaseContext = testingcontext.getInteractive() from OpenGL.GL import * from OpenGL.arrays import vbo from OpenGL.GL import shaders import numpy as np class TestContext(BaseContext): def OnInit(self): try: VERTEX_SHADER = shaders.compileShader(""" varying vec4 vertex_color; void main(){ gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; vertex_color = gl_Color; }""", GL_VERTEX_SHADER) FRAGMENT_SHADER = shaders.compileShader(""" varying vec4 vertex_color; void main(){ gl_FragColor = vertex_color; }""", GL_FRAGMENT_SHADER) self.shader = shaders.compileProgram(VERTEX_SHADER, FRAGMENT_SHADER) except (GLError, RuntimeError) as err: print "Shader compilation error:", err raise self.vbo = vbo.VBO(np.array([ [ 0, 1, 0, 0,1,0 ], [-1,-1, 0, 1,1,0 ], [ 1,-1, 0, 0,1,1 ], [ 2,-1, 0, 1,0,0 ], [ 4,-1, 0, 0,1,0 ], [ 4, 1, 0, 0,0,1 ], [ 2,-1, 0, 1,0,0 ], [ 4, 1, 0, 0,0,1 ], [ 2, 1, 0, 0,1,1 ], ],'f') ) def Render(self, mode): glUseProgram(self.shader) try: self.vbo.bind() try: glEnableClientState(GL_VERTEX_ARRAY) glEnableClientState(GL_COLOR_ARRAY) #glVertexPointerf(self.vbo) glColorPointer(3, GL_INT, 24, self.vbo+12) glDrawArrays(GL_TRIANGLES, 0, 9) finally: self.vbo.unbind() glDisableClientState(GL_VERTEX_ARRAY) glDisableClientState(GL_COLOR_ARRAY) finally: shaders.glUseProgram(0) if __name__ == "__main__": TestContext.ContextMainLoop() |
From: Mike C. F. <mcf...@vr...> - 2014-08-25 18:26:32
|
On 14-08-20 12:38 PM, amand wrote: > Hello! > > I'am working on a project in C and I need to draw PyOpenGL stuff with > embedded python. > > So far I have been able to draw with the embedded python. But it does > not work every time... > > Sometimes, the Python module just raises an error (Exception > OpenGL.error.GLError: GLError( err=1281, description = 'invalid value', > baseOperation = glVertexAttribPointer)), and some other times, it's > working perfectly... > > Is there a way to share the OpenGL context without any errors? Carefully. Basically you need to make sure that your C code is not interfering with the Python code. GL state is a monolithic thing, so if your C code is modifying the bound VBO, shader, etc while you are rendering then you are going to see failures where your Python is attempting to use the modified state. You need to ensure that you are always suspending C rendering before you enter Python (and suspending it in a known state), and then re-enabling C rendering when you are done. HTH, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |
From: Mike C. F. <mcf...@vr...> - 2014-08-25 18:25:10
|
On 14-08-25 01:50 PM, Mike Lawrence wrote: ... > and immediately encounter a segfault. Seems to happen for any of the > valid arguments to glMatrixMode. Any ideas on what's up? Below is my > system description. ... The tutorial is omitting the creation of an OpenGL context. Using (most) GL commands without a context *used* to be possible, but wasn't "valid", and later drivers now enforce the "you must have a context" restriction, often by segfaulting on Linux/OS-X machines. As a result, you need to get a GL context setup with your windowing system before starting to call OpenGL commands. Here's how you could do that with Pygame: import pygame import pygame.display pygame.display.init() SCREEN = pygame.display.set_mode( (640,480), pygame.OPENGL | pygame.DOUBLEBUF, ) pygame.display.set_caption("Example") try: # your code... from OpenGL.GL import * glMatrixMode(GL_PROJECTION) finally: pygame.display.quit() pygame.quit() HTH, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |
From: Mike L. <mik...@gm...> - 2014-08-25 18:18:30
|
Yup, that failing to set up a context first was the culprit. Thanks! -- Mike Lawrence Graduate Student Department of Psychology & Neuroscience Dalhousie University ~ Certainty is (possibly) folly ~ On Mon, Aug 25, 2014 at 3:02 PM, Ian Mallett <ia...@ge...> wrote: > I'm surprised that it segfaults, but it is well known that you need a > graphics context before you try any OpenGL--perhaps that is the issue. You > set a context up with your windowing system of choice. > > ------------------------------------------------------------------------------ > Slashdot TV. > Video for Nerds. Stuff that matters. > http://tv.slashdot.org/ > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > |
From: Ian M. <ia...@ge...> - 2014-08-25 18:02:55
|
I'm surprised that it segfaults, but it is well known that you need a graphics context before you try any OpenGL--perhaps that is the issue. You set a context up with your windowing system of choice. |
From: Mike L. <mik...@gm...> - 2014-08-25 17:50:57
|
Hi folks, I'm looking to do some 2d drawing, so as suggested by this tutorial (http://basic4gl.wikispaces.com/2D+Drawing+in+OpenGL) I did: from OpenGL.GL import * glMatrixMode(GL_PROJECTION) and immediately encounter a segfault. Seems to happen for any of the valid arguments to glMatrixMode. Any ideas on what's up? Below is my system description. Mac OS 10.9.4 python 2.7.8, installed via brew PyOpenGL-3.1.0, installed via pip Report log here: http://pastebin.com/ie2XBfwm Let me know if there's anything else I should include. Mike -- Mike Lawrence Graduate Student Department of Psychology & Neuroscience Dalhousie University ~ Certainty is (possibly) folly ~ |
From: amand <am...@fr...> - 2014-08-20 16:58:29
|
Hello! I'am working on a project in C and I need to draw PyOpenGL stuff with embedded python. So far I have been able to draw with the embedded python. But it does not work every time... Sometimes, the Python module just raises an error (Exception OpenGL.error.GLError: GLError( err=1281, description = 'invalid value', baseOperation = glVertexAttribPointer)), and some other times, it's working perfectly... Is there a way to share the OpenGL context without any errors? -- amand. |
From: Antoine M. <an...@na...> - 2014-08-17 15:44:29
|
Hi, Amongst other things, we're having to package PyOpenGL and PyOpenGL_accelerate 3.1 for CentOS and Fedora. So I thought this might be of interest to some users on this list. You can find the spec files we're using here: http://xpra.org/svn/Xpra/trunk/rpmbuild/ And the (S)RPMs here: http://xpra.org/dists/CentOS/ http://xpra.org/dists/Fedora/ Let us know if you have any problems. Cheers Antoine |
From: Larry C. <cu...@we...> - 2014-08-15 20:46:25
|
Hello Pyopengl folks, I'm trying to recreate an old installation of Python 2.4 on Win 7 to run some legacy code. (it last ran on Win 2K) i'm using: PyOpenGL-2.0.2.01.py2.4-numpy23.exe and installed glut32.dll from <http://user.xmission.com/%7Enate/glut/glut-3.7.6-bin.zip>glut-3.7.6-bin.zip (117 KB) from Nate Robbins' pyopengl page: some of the opengl demo programs run. some don't. and some crash python.exe. my legacy code also crashes python.exe whenever python.exe stops working, windows reports: Fault Module Name: _GLU__init___.pyd Is there a known reason why this particular module would crash Python 2.4? Is there a fix? thanks for your help. ---larry.c |
From: Tejas K. <tej...@gm...> - 2014-07-29 22:09:03
|
Hello, I installed PyOpenGL and tried the demons. All demos except the one's using GLE are working. I wanted to mainly use GLE but get following error if I call any GLE function: OpenGL.error.NullFunctionError: Attempt to call an undefined function gleSetJoinStyle, check for bool(gleSetJoinStyle) before calling I am using a Macbook pro (version 10.8.5). Any help would be appreciated. thank you, -Tejas |
From: Bravery, G. S <gav...@im...> - 2014-06-27 14:39:58
|
Continuing from my other email .. Based on this: reading manifest file 'PyOpenGL_accelerate.egg-info\SOURCES.txt' I checked between the old 3.0.2 and the current 3.1.0 SOURCES.txt file. I am not sure if this is relevant but the SOURCES.txt contains a full path for this files in the tar file (in the tar.gz file) NB – Using Cygwin here to do diff, I am have NOT just switched to linux ☺. gbravery@cc-gbraverylap2$ diff -u PyOpenGL-accelerate-3.1.0/PyOpenGL_accelerate.egg-info/SOURCES.txt PyOpenGL-accelerate-3.0.2/PyOpenGL_accelerate.egg-info/SOURCES.txt --- PyOpenGL-accelerate-3.1.0/PyOpenGL_accelerate.egg-info/SOURCES.txt 2014-06-26 19:32:06.000000000 +0100 +++ PyOpenGL-accelerate-3.0.2/PyOpenGL_accelerate.egg-info/SOURCES.txt 2012-10-02 20:58:13.000000000 +0100 @@ -3,32 +3,14 @@ license.txt setup.py ./__init__.py -/mnt/homevar/var/pylive/src/OpenGL-dev/pyopengl/OpenGL_accelerate/src/arraydatatype.c -/mnt/homevar/var/pylive/src/OpenGL-dev/pyopengl/OpenGL_accelerate/src/arraydatatype.pyx -/mnt/homevar/var/pylive/src/OpenGL-dev/pyopengl/OpenGL_accelerate/src/buffers_formathandler.c -/mnt/homevar/var/pylive/src/OpenGL-dev/pyopengl/OpenGL_accelerate/src/buffers_formathandler.pyx -/mnt/homevar/var/pylive/src/OpenGL-dev/pyopengl/OpenGL_accelerate/src/errorchecker.c -/mnt/homevar/var/pylive/src/OpenGL-dev/pyopengl/OpenGL_accelerate/src/errorchecker.pyx -/mnt/homevar/var/pylive/src/OpenGL-dev/pyopengl/OpenGL_accelerate/src/formathandler.c -/mnt/homevar/var/pylive/src/OpenGL-dev/pyopengl/OpenGL_accelerate/src/formathandler.pyx -/mnt/homevar/var/pylive/src/OpenGL-dev/pyopengl/OpenGL_accelerate/src/latebind.c -/mnt/homevar/var/pylive/src/OpenGL-dev/pyopengl/OpenGL_accelerate/src/latebind.pyx -/mnt/homevar/var/pylive/src/OpenGL-dev/pyopengl/OpenGL_accelerate/src/nones_formathandler.c -/mnt/homevar/var/pylive/src/OpenGL-dev/pyopengl/OpenGL_accelerate/src/nones_formathandler.pyx -/mnt/homevar/var/pylive/src/OpenGL-dev/pyopengl/OpenGL_accelerate/src/numpy_formathandler.c -/mnt/homevar/var/pylive/src/OpenGL-dev/pyopengl/OpenGL_accelerate/src/numpy_formathandler.pyx -/mnt/homevar/var/pylive/src/OpenGL-dev/pyopengl/OpenGL_accelerate/src/vbo.c -/mnt/homevar/var/pylive/src/OpenGL-dev/pyopengl/OpenGL_accelerate/src/vbo.pyx -/mnt/homevar/var/pylive/src/OpenGL-dev/pyopengl/OpenGL_accelerate/src/wrapper.c -/mnt/homevar/var/pylive/src/OpenGL-dev/pyopengl/OpenGL_accelerate/src/wrapper.pyx PyOpenGL_accelerate.egg-info/PKG-INFO PyOpenGL_accelerate.egg-info/SOURCES.txt PyOpenGL_accelerate.egg-info/dependency_links.txt PyOpenGL_accelerate.egg-info/top_level.txt +src/_arrays.c +src/_numarrayarrays.c src/arraydatatype.c src/arraydatatype.pyx -src/buffers_formathandler.c -src/buffers_formathandler.pyx src/errorchecker.c src/errorchecker.pyx src/formathandler.c That said, I have no idea what the use of this file is, so I don’t know how to fix it! Otherwise I would try… Sorry, Gavin |