Pyglet is a cross-platform windowing and multimedia library for Python which provides interface to the platform's OpenGL library.
0
votes
0answers
6 views
Pyglet - text input - how to get it's value to a variable?
Is there a relatively simple way of getting text input from the user and store it in variable?
Asking for a name via textinput and displaying it on a label for example.
I checked out the pyglet ...
1
vote
0answers
22 views
Loading an image using Pyglet
I am playing around with pyglet 1.2alpha-1 and Python 3.3. I have the following (extremely simple) application and cannot figure out what my issue is:
import pyglet
window = pyglet.window.Window()
...
-1
votes
0answers
47 views
Is it possible to get Gamemaker-like speed in python (pygame or pyglet or anything else)?
Its going to be a long questions, please bear your patience. Its something I have tried to understand by searching a lot and I still dont have a decent answer:
I have been using Gamemaker for 2 ...
0
votes
1answer
22 views
how to decode JPEG's and encode video in python?
Basically, I'm trying to create a stop-motion film making application, due to the absence of any decent free versions that work on the internet, by taking images (JPEG preferably, but any format will ...
0
votes
1answer
25 views
have pyglet all opengl skills and support 3d?
i want to start to learning 3d programming in python
i found pyopengl for use opengl in python and i found pyglet and i like that because says "No external dependencies" and i heard this is better ...
1
vote
2answers
33 views
OpenGL - Creating a circle, change radius?
I must be the worst person on the planet when it comes to math because i can't figure out how to change this circle radius:
from math import *
posx, posy = 0,0
sides = 32
glBegin(GL_POLYGON)
for i in ...
0
votes
1answer
33 views
Python: pyglet vs PyOpengl performance evaluation for frame dropping
I have to evaluate the performance/functionality of Pyopengl vs Pyglet. The main concern is that it can't drop any frame while using high FPS. Before I start learning one of then, I need to see if it ...
2
votes
1answer
45 views
Pyglet slower on a faster computer [closed]
I changed my computer recently, and the very same program using Python and Pyglet runs a lot slower on the newer computer than on the old one (25 seconds vs. 10 seconds).
The older was an Asus EEE ...
1
vote
0answers
22 views
Pyglet: create image, set pixels, draw antialiased lines and save to file
I want to create a (grayscale) image from a matrix, draw some lines into it and save it to a file.
In PIL it looks like this:
im = Image.new("RGB", (len(matrix), len(matrix[0])))
for x in range(0, ...
-1
votes
0answers
33 views
Pylet player class not working or producing an error
I asked this last week but due to lack of responses I'm making a new thread for visibility with new, more detailed information from tests. I'm trying to write an audio player in python using pyglet's ...
1
vote
2answers
50 views
Am I using lists wrong? Memory leak in this simple python / pyglet code
I'm writing a simple 'avoid the falling enemies' type game in pyglet. The objects are generated above the screen, travel downward, and are destroyed when they pass below the visible screen. However, ...
1
vote
1answer
41 views
Trying to use Pyglet - what does this error mean?
I am running Mac OS X Mountain Lion, with Python 2.7. I did a source install of Pyglet that seemed to go without errors, but any time I try to run a program I get a longish error that I don't ...
0
votes
2answers
38 views
How to enable vsync in PyOpengl?
As the title says really. I'd like to turn on vertical sync in PyOpenGL, but how can I do it? A fairly exhaustive web search didn't turn up anything, but maybe someone has a clever solution? I'm on OS ...
0
votes
1answer
40 views
Pyglet player won't play
I'm writing an audio player in python using pyglet's Player class. This module is just a test of the Player and Source classes and it produces nothing. No sound, no error, just one warning about vsync ...
1
vote
1answer
60 views
How exactly does the pyglet game loop work?
I've read all that I can find and looked at many examples of a game loop on pyglet, but I'm still not sure HOW it's working or what exactly is happening.
(These are the articles I read...)
...