Skip to main content
Best practices
0 votes
0 replies
40 views

I need to display many (a lot) 3d trajectories with modernGL. For now, I chain the trajectories and I create two arrays only (one for all the vertices and one for their colors) that I pass as params ...
1 vote
0 answers
430 views

I'm trying to animate Mandelbrot set slow step-by-step appearance. Here is my approximate code for fragment shader: #version 330 uniform sampler2D previousIteration; in vec2 uv; /* from -1 to 1 */ ...
0 votes
0 answers
327 views

So I am working on a raycasting project and first of all I need to know is how to render shader / image using GPU and moderngl on python. import moderngl def noise(size): return [(random.randint(0,...
0 votes
0 answers
370 views

I am trying to load big .png files (~10-16 MB, 14000x9600) with PIL. When I load them into a texture I can only use one color channel (I try 3 or 4 and it tells me it doesn't match in size). The part ...
2 votes
0 answers
277 views

I'm getting invalid enum error using maningl. I have created an animated wave with video as texture. Code works well with a short animation of around 5 seconds. This is the result: But with more than ...
0 votes
0 answers
1k views

I am using ModernGL to render a 2D texture with pixel perfect precision. My image contains a series of boxes which are 1 px wide, but when I render them, some of the edges are wider than others. I am ...
1 vote
0 answers
90 views

I want to code some software in Python that visualizes implicit algebraic surfaces with singularities (say the Barth Sextic e.g.). I am thinking about calculating primitive triangles in Python and ...
0 votes
0 answers
366 views

My goal: Write a class that plots something after creating a window and using vao.render(mode=moderngl.PATCHES) only when an update() method is called, in order to update a dynamic VBO. imshow by ...
2 votes
0 answers
222 views

I try to run a simple_3dviz script, but I always get the following error: File "...venv/lib/python3.8/site-packages/moderngl/context.py", line 1228, in program res.mglo, ls1, ls2, ls3, ...
1 vote
0 answers
373 views

I've tried a lot of solutions to similar issues but I've found that they're not quite specific enough or they're outdated (or maybe I'm not sharp enough!) I'm packaging some Python code to run on AWS ...
0 votes
0 answers
255 views

I'm working with python moderngl to generate a simulated scene views from point clouds made from Digital Elevation Model and airborne photos. I implemented a camera model based on OpenCV in GLSL ...