From: V. Armando Sole <sole@es...> - 2007-10-04 09:47:05
The following code was working fine on PyOpenGL 2.0.1.09:
GL.glDrawArrays(GL.GL_POINTS, 0, xsize*ysize)
but now it does not work under PyOpenGL 3.0.0.a6:
WindowsError: exception: access violation reading 0x0BD20028
If instead of using glDrawArrays, I loop for all the vertices and colors,
the program works (of course very slowly):
for i in range(xsize * ysize):
(by the way I also had to change from glVertexf to glVertex in order to get
the loop working).
The shape of my arrays are (xsize*ysize, 3) for the vertices and
(xsize*ysize, 4) for the colors. Do I have to arrange my data in other way
now? I have tried to use glVertextPointer and glColorPointer but either it
did not work or (most likely) I could not figure out the proper parameter
to be passed.
Get latest updates about Open Source Projects, Conferences and News.