pygame_shaders
a library to easily integrate shaders into your new or existing pygame projects (by ScriptLineStudios)
moderngl
Modern OpenGL binding for Python (by moderngl)
pygame_shaders | moderngl | |
---|---|---|
3 | 12 | |
44 | 1,795 | |
- | 2.1% | |
5.7 | 9.1 | |
17 days ago | 29 days ago | |
Python | Python | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pygame_shaders
Posts with mentions or reviews of pygame_shaders.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-09-26.
-
SHADERS IN PYGAME!! (with pygame_shaders)
Well, don't leave us in suspense! Here's the github.
-
I made a game with Pygame in 10 Hours!
I made a game with Pygame in 10 hours! The game contains shaders created a a module called pygame_shaders as well as procedural generation! The download and source code is available here
-
pygame_shaders - a module to easily integrate shaders with Pygame
A tutorial, examples of the module being used and the source code can be found here: https://github.com/ScriptLineStudios/pygame_shaders
moderngl
Posts with mentions or reviews of moderngl.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-23.
- Interactive Web App for Learning Shaders - Editor with Real-Time Preview
-
Quick question, how do I set an uniform of a fragment shader in ModernGL?
You can see how to do it here: https://github.com/moderngl/moderngl/blob/master/examples/fragment_output.py
- [Computer Graphics] moderngl/moderngl: Modern OpenGL binding for python
-
No, it’s not useless
making an executable is an absolute pain but PySide6, DearPyGui, moderngl and much more exists
-
Pycharm does not see module in virtual environment at runtime, although running it from the cmd has no issues
Whenever I try to run examples/loading_obj_files.py from moderngl/moderngl: Modern OpenGL binding for python (github.com) , I get this error:
-
Is there such a good OpenGL package in Python like rgl for R?
Not sure what rgl supports, but there's https://github.com/moderngl/moderngl - provides Pythonic wrapper around OpenGL functions.
-
GitHub - szabolcsdombi/zengl: ⚡ high-performance rendering for python
I'm guessing minimal overhead. The README says that it is a "simplification of a subset of ModernGL with some extras that were not possible to include in ModernGL." The documentation for ModernGL (lazy-link) talks about speed only in comparison with PyOpenGL, and says that it's faster since C++ calls are "bundled together," which I assume means that ModernGL (compared to PyOpenGL) does a little more than just wrapping - for good and bad.
-
To those who have written high speed graphics libraries in python, do those libs call low level executable functions written in C?
I would not use Pyglet, I would use ModernOpenGL. https://github.com/moderngl/moderngl It's still OpenGL but with a more pythonic interface and way less useless boilerplate. Plus you get access to modern features by default (in fact, are required, and btw modern = more than a decade old), and I believe pyglet still relies on old immediate mode opengl.
-
PSA: Reinstall python-moderngl-git (and manim) if you got it from the AUR
As you can see, the new version is dramatically lower than the previous one, but it is consistent with the package's tags. The downside is that this won't trigger your AUR helper to update the package, so you'll have to do it manually. You may also want to just reinstall manim as a whole to account for the new dependency version.
-
Need help with compute shader
I am currently trying to use a compute shader to compute 2D projection of 3D points (to create a little 3D renderer in python). I am using the moderngl library, and this is my code. So my compute shader is using 2 buffers: 1 for input and 1 for output. The input is composed of 3 vec3 (to represent the 3 3D points for a triangle), and the output will be 3 2D points. The code I showed you here is for testing, which just takes the input values and put them in the output buffer. Here is my problem:
What are some alternatives?
When comparing pygame_shaders and moderngl you can also consider the following projects:
ModernGL-Shader-with-pygame - you can use this class to give pygame a shader to render screen. it is easy to use.
Open3D - Open3D: A Modern Library for 3D Data Processing
glpy - A minimalistic wrapper around PyOpenGL to save development time
pyglet - pyglet is a cross-platform windowing and multimedia library for Python, for developing games and other visually rich applications.
glsl-sandbox - Shader editor and gallery.
Panda3D - Powerful, mature open-source cross-platform game engine for Python and C++, developed by Disney and CMU
pyopengltk - OpenGL frame for Python/Tkinter via ctypes and pyopengl
zengl - Self-Contained OpenGL Rendering Pipelines for Python :snake: