Here is the problem: I'm creating a compute shader in python for radiative transfer using modernGL. But upon creation, it does not contain all the uni ...
Here is the problem: I'm creating a compute shader in python for radiative transfer using modernGL. But upon creation, it does not contain all the uni ...
I'm trying to install moderngl using pip. Of course, It failed to build wheels for moderngl and one of its dependencies, glcontext. In both cases, ...
After creating a headless context with and creating a vertex array, I wish to get the image data of vao.render(). Is there any way to do this? Edi ...
I am trying to test the following simple example wherein I pass something to the vertex shader and read its output to print. import moderngl import n ...
When rendering this cube, I'm using the moderngl DEPTH_TEST to properly draw in the faces at the correct depth, which works fine as shown: However, ...
I am attempting to create an executable program out of a Python project that uses moderngl. Here is a minimal example that just creates a window and w ...
I am rendering a quad to a blank screen with its depth first cleared to (0.25). The depth of each vertex is set equal to its y coordinate, and it is a ...
I'm trying to learn moderngl for Python and I want to know if there is a way to make certain that when I read/write to a buffer (uniform or shader sto ...
I am trying to project a photo with some angle. If the photo was taken when the camera was looking straight ahead, then the camera angles (yaw, pitch ...
I am wanting to: Open the texture from an image via cv2 instead of via ModernGL's load_texture_2d method. Save the resulting image (in the write ...
I am writing a simple app that loads an image and displays it on the screen such that the left and right half are rendered separately. Running this ...
I recently started using ModernGL, and today I would like to start working with texture arrays. I'm just stuck on how to pass the individual subtextur ...
I'm considering switching to ModernGL over PyOpenGL, and I'm struggling to implement anything right now. First of all, I would like to try the classi ...
I am trying to create a headless renderer which takes 2 models with different textures and then renders them both into a single image In this only ...
I am using the following code to render a rectangle on screen, using moderngl and moderngl_window. This is mostly derived from their examples: but ...
I wrote this simple program that displays an image onto a moderngl context, using pygame, and my goal is to draw a rectangle on the screen. (This is o ...
I have written this GPU code in C using GLES and EGL, and it ran fine. I am now trying to port this GPU code to python using ModernGL, except right af ...
This code renders a colored triangle with anti-aliasing (samples=8) when a depth buffer line depth_attachment=ctx.depth_texture((512, 512), samples=8) ...
This code renders a colored triangle when there is no anti-aliasing (samples=0). But when I turn on anti-aliasing (samples=1...32) it can't render any ...
I'm trying to run moderngl in Colab. I installed it and ran a virtual display: It printed as expected, but when I run an example I see the error: ...