Re: [PyOpenGL-Users] [SOLVED] glDrawArrays and PyOpenGL 3.0.0a6 anything changed?
Brought to you by:
mcfletch
From: <so...@es...> - 2007-10-08 21:18:06
|
Hello, Quoting "Mike C. Fletcher" <mcf...@vr...>: > ... Can you produce a minimal test that shows > the error occurring? The system *should* be able to convert from double > to float (as shown with this test). Could be that it's some bug I don't > recall fixing, but that doesn't seem likely. > I send you a file showing the problem. python OpenGLTest.py 0 uses float32 python OpenGLTest.py 1 uses float64 and crashes python OpenGLTest.py 2 uses float64 and glColorPointerd and does not crash. My platform is windows XP. The problem is present on Python 2.4 and Python 2.5 BTW, glReadPixelsub(x, y, 1, 1, GL_RGBA) returns 'int8' instead of 'uint8' and I am forced to implement things like: color = GL.glReadPixelsub(x, y, 1, 1, GL.GL_RGBA) #workaround a PyOpenGL bug? if color.dtype == 'int8': color = color.astype(numpy.uint8) Best regards, Armando ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ |