Modern OpenGL 4.1+ Prototype Framework inspired by Django
Project description
demosys-py
A python 3 implementation of a C++ project used to create and prototype demos (see demoscene) in OpenGL. The design of this version is heavily inspired by the Django project.
We only support OpenGL 3.3+ forward compatible core profiles (no backwards compatibility).
This was originally made for for non-interactive real time graphics combined with music (“real time music videos”). It’s made for people who enjoy playing around with modern OpenGL without having to spend lots of time creating all the tooling to get things up and running.
If you are not a fan of using a framework, you can create your own context and just use the classes in demosys.opengl. These will give you fairly straight forward ways to use VAOs, Shaders, Textures and FBOs.
Documentation
Project documentation can be found at readthedocs. Optionally you can build your own docs from the docs directory.
Contributing
Any contribution to the project is welcome. Never hesitate to ask questions or submit pull requests (completed or work in progress). The worst thing that can happen is that we or you might learn something. This is supposed to be a fun project.
Also check out the TODO list. Take a stab on what of the features or documentation or suggest new entries.
Known Issues
The sound player an be a bit wonky at times on startup refusing to play on some platforms. We have tried a few libraries and ended up using pygame’s mixer module.
Audio Requirements: - As the current position in the music is what all draw timers are connected to, we need a library that can deliver this. - Efficient and accurate seeking + pause support - Some way to extract simple data from the music for visualisation
Libraries
GLFW binaries must also be installed. Get from your favourite location. Use version 3.2.1 or later.
pyGLFW for window and context creation + input
PIL/Pillow for texture loading
https://github.com/adamlwgriffiths/Pyrr for math (uses numpy)
Optional for audio: - https://www.pygame.org using the mixer module for music
What inspired us to make this project?
We are old farts from the demoscene
We love Python
We were wondering what would be done with OpenGL in Python
We work a lot with Django and love it
Why not combine ideas from our own demosys written in C++ and Django making a Python 3 version?
Credits
Also thanks to Attila Toth for an excellent tutorial on OpenGL in Python.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for demosys_py-0.3.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b149eb68032b993d5b1c9d98b09a537af18648a5a65bf98dc45c5fcb97aafd53 |
|
MD5 | 2de32f2e35d5399da63157645303fdb1 |
|
BLAKE2b-256 | 4c6ba8bb95559c43ba0878d89e1f18b85eea4ea0cee3127348e40b7ec6e6bd6e |