Questions tagged [pyglet]

Pyglet is a cross-platform windowing and multimedia library for Python which provides interface to the platform's OpenGL library.

Pyglet is a cross-platform windowing and multimedia library for Python which provides interface to the platform's OpenGL library.

Pyglet has built-in support for mouse and keyboard events, and can load several multimedia file formats (optionally via AVbin). OpenAL, DirectSound or ALSA can be used for audio playback, with 3D positional audio support.

Pyglet is divided into several interdependent modules such as pyglet.gl, pyglet.graphics, pyglet.image, pyglet.media, pyglet.text, and pyglet.window.

919 questions
0
votes
1 answer

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 can do what the client needs. I am trying to…
BaldDude
  • 1,025
  • 1
  • 19
  • 33
0
votes
1 answer

Pyglet not running properly on AMD HD4250

I am building an python program using pyglet. The source code runs just fine on any computer exept for my laptop. My Laptop is also the only one with a AMD graphics card: the HD4250. Its Xubuntu 13.04 AMD64, and the graphics drivers are the X11 Open…
Cheiron
  • 3,620
  • 4
  • 32
  • 63
0
votes
1 answer

What does this pyglet error mean?

I'm trying to blit some simple images, and learn to use ImageGrid and other functions, but this same error keeps popping up: File "C:\Python27\lib\site-packages\pyglet\gl\lib.py", line 105, in errcheck raise GLException(msg) GLException: None This…
Anonymous Entity
  • 3,254
  • 3
  • 27
  • 41
0
votes
1 answer

Enthought Canopy 64bit on OSX: import pyglet.gl failure

Retaining question for posterity; see workaround in edit The Pyglet package comes installed at base and isn't removable. Using the current fully updated version 1.1.4 of Pyglet, I get repeatable errors related to importing the item…
0
votes
1 answer

How to subclass Clock in Pyglet?

I want to subclass Clock class of pyglet.clock module, but I have some troubles when I use schedule_interval: The following code doesn't print anything and the object c looks like if not ticked at all: #!/usr/bin/env python # -*- coding: utf-8…
Super User
  • 147
  • 1
  • 2
  • 7
0
votes
2 answers

Import pyglet on python

I have downloaded the pyglet.dmg file from pyglet website and simply installed it. The folder on which it is saved is: /Developer/pyglet And on the pydev editor i simply state the location i want to use by: import…
Itzik984
  • 15,968
  • 28
  • 69
  • 107
0
votes
1 answer

How to draw two circles facing each other in 3D space

I'm attempting to draw a network in 3D using Python's Pyglet library. I have spheres representing proteins and they are drawn in place (given x,y,z coordinates) rather than drawing them at 0,0,0 and translating them to position. I am now looking to…
Josha Inglis
  • 1,018
  • 11
  • 23
0
votes
2 answers

Pyglet's ZIPLocation

I found out that Pyglet has class with which I can load zip files: http://www.pyglet.org/doc/api/pyglet.resource.ZIPLocation-class.html There is how I use it: myzip = zipfile.ZipFile('testzip.zip') myzip = pyglet.resource.ZIPLocation(myzip,…
solusipse
  • 589
  • 6
  • 21
0
votes
2 answers

Create many classes and be able to reference to them

I'm working on simple game in Python and Pyglet. I want to give possibility to shoot so I create a bullet class. If I create one instance of that class for example self.new_bullet = bullet() I'm able to have only one instance at the moment. My…
solusipse
  • 589
  • 6
  • 21
0
votes
1 answer

Python Pyglet - 'No module named window'

I'm now working on Ubuntu to try and solve this. I am trying to get Pyglet to work in a .py script. So, I am using the default install of Python on Ubuntu (2.7.3, Ubuntu v = 12.4). I used: sudo apt-get install python-pyglet and this ran ok. When…
Sam Heather
  • 1,493
  • 3
  • 19
  • 42
0
votes
1 answer

Maze/labirynth game - few questions - Python 2.7.3 Pyglet 1.1.4

I am creating a maze/labirynth game using Python 2.7.3 and Pyglet 1.1.4 and I have a problem and a question. My code can be found in here: https://github.com/czarnot/labirynth_py To start the program, launch main.py with python. To move CPU use "a"…
Disconnect3d
  • 312
  • 1
  • 3
  • 11
0
votes
2 answers

Using pygame Joystick in pyglet

I'm trying to write a simple game with pyglet but use pygame for gamepad input. The following code successfully prints axis values to the command line, but aside from importing pyglet, doesn't actually show a pyglet window: import pygame import…
Jegschemesch
  • 11,414
  • 4
  • 32
  • 37
0
votes
1 answer

Apply a transformation to an image pyglet

I am trying to make an rpg from first person perspective. I have looked at the pyglet api reference but the only thing I could find that was on the same track was the "get_transform" method and this only gave the option of flipping and rotating (as…
user1237200
  • 149
  • 4
  • 13
0
votes
1 answer

Make mouse position relative to camera zoom level?

I just got camera zoom with OpenGL up and running in my little Pyglet game, but now I'm facing a problem: When I zoom in or out, the game objects' hitboxes won't obviously scale, so the game doesn't respond to mouse events correctly. Altering…
Syklis
  • 109
  • 2
  • 10
0
votes
5 answers

IDE for pyglet?

I'm starting to code with pyglet in Windows. I usually rely on Spyder as an IDE, but it seems not to like pyglet. So what would be a convenient way to code / run pyglet in Windows? What is your minimal development setup? Short of obvious minimal…
dmvianna
  • 15,088
  • 18
  • 77
  • 106