Tagged Questions
1
vote
2answers
108 views
using numpy arrays and ctypes for OpenGL calls in Pyglet
I've got what seems like a very ugly little piece of code that I seem to keep on resorting back to whenever I'm trying to draw arrays with pyglet, of the form:
vertPoints = ...
7
votes
0answers
221 views
Problems with OpenGL 4 VBOs and Numpy arrays, Pyglet/Python
I'm getting started with using OpenGL 4 in Python (through Pyglet and some framework code I got off the net/wrote myself for loading Shaders/Programs), but I think I understand things fairly well, so ...
3
votes
4answers
272 views
numpy array is shown incorrect with pyglet
I have problems with displaying a numpy array with pyglet. I have found a very similar topic (how to display a numpy array with pyglet?) that I used. I want to display the array in greyscale, but ...
2
votes
3answers
1k views
Converting a hexadecimal character to an int in python
I'm using the graphics library pyglet to do some drawing, and want to get the resulting image out as a python list (so I can convert it to a numpy array).
Pyglet gives me a string of hex characters, ...
3
votes
2answers
677 views
how to display a numpy array with pyglet?
I have a label matrix with dimension (100*100), stored as a numpy array, and I would like to display the matrix with pyglet.
My original idea is to use this matrix to form a new pyglet image using ...