11 questions with no answers
Best practices
0
votes
0
replies
40
views
How to display a lot of line_strips efficiently with ModernGL
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
How do I use framebuffer as texture for the next frame in moderngl?
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
How to draw shader / image by data using gpu in moderngl?
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
Python moderngl and PIL with big image (14000x9600) only loads red channel
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
MaminGL OpenGL err = 1280 (Invalid Enum) - Animated Plane with Texture
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
python ModernGL pixel perfect textures
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
Which algorithm for triangularization of algebraic surfaces with singularities?
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
How to resize/move Window while executing other scripts/functions? moderngl-window and pyglet
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
Running a simple_3dviz script on macOS Big Sur getting modernGL error
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
AWS Lambda: Unable to find libGL.so package while using moderngl / glcontext
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
Minus values of distortion coefficients cause broken images with OpenGL Vertex Shader
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 ...