Seite 1 von 1

pyglet

Verfasst: Dienstag 9. Juni 2015, 07:35
von jens
("Abgetrennt" von http://www.python-forum.de/viewtopic.ph ... 43#p278243 )
pyglet: a cross-platform windowing and multimedia library for Python.

pyglet provides an object-oriented programming interface for developing games and other visually-rich applications for Windows, Mac OS X and Linux.

Some of the features of pyglet are:

No external dependencies or installation requirements. For most application and game requirements, pyglet needs nothing else besides Python, simplifying distribution and installation.
Take advantage of multiple windows and multi-monitor desktops. pyglet allows you to use as many windows as you need, and is fully aware of multi-monitor setups for use with fullscreen games.
Load images, sound, music and video in almost any format. pyglet can optionally use AVbin to play back audio formats such as MP3, OGG/Vorbis and WMA, and video formats such as DivX, MPEG-2, H.264, WMV and Xvid.
pyglet is provided under the BSD open-source license, allowing you to use it for both commercial and other open-source projects with very little restriction.
https://bitbucket.org/pyglet/pyglet/


Das hört sich interessant an.
Angefangen hat es wohl schon 2007. Zumindest reicht die CHNAGELOG bis dahin: https://bitbucket.org/pyglet/pyglet/ann ... at=default
Es wird anscheinend gerade in letzter Zeit aktiv weiter Entwickelt.


Mir ist es bislang noch nicht aufgefallen. Ist es ein würdiger Nachfolger von PyGame?!?
Jemand damit schon was gemacht?

Re: pyglet

Verfasst: Dienstag 9. Juni 2015, 08:50
von TommiB
Hallo Jens,

ja, hier hat der Apollon bereits mal was mit pyglet und opencv gemacht...

Ich hatte auch schon versucht, bekomme pyglet jedoch nicht auf meinem win7 Rechner installiert.

Einfach bei der Suche hier nach pyglet suchen.

Gruß Tommi

Re: pyglet

Verfasst: Dienstag 9. Juni 2015, 09:08
von jens
Stimmt, suchen hätte ich mal machen sollen :oops:

http://www.python-forum.de/search.php?keywords=pyglet

Re: pyglet

Verfasst: Dienstag 9. Juni 2015, 15:15
von jens
Hab mal mein mandelbrot mit pyglet gemacht: https://github.com/jedie/python-code-sn ... _pyglet.py

Bild

Hierbei werden die Berechnungen in Python gemacht. Denn mit pyglet kann man die Berechnung auch auf die GPU mittels OpenGL auslagern. Hat "veers" hier im Forum 2008 gezeigt: http://www.python-forum.de/viewtopic.php?f=9&t=13354
Siehe auch: http://29a.ch/2009/5/12/rendering-the-m ... pengl-glsl

Re: pyglet

Verfasst: Dienstag 9. Juni 2015, 20:55
von bwbg
TommiB hat geschrieben:[...] bekomme pyglet jedoch nicht auf meinem win7 Rechner installiert.[...]

Code: Alles auswählen

python setup.py build
Den Inhalt des erstellten _build-Ordners kann man nun einfach in sein Projekt kopieren.