37,957 questions
2
votes
2
answers
158
views
How to maintain scale when rotating?
I've been messing around with OpenGL/ModernGL in Python/Pygame, and after getting my images rendered to the screen, I have been having issues rotating them.
I'm aware of the order that I need to ...
Advice
0
votes
4
replies
97
views
How to automatically test GLSL shaders?
I am working on a project using GLSL shaders, and I would like to automate testing.
My initial idea was to compare rendered output with a reference image (pixel comparison). However, this seems ...
Tooling
0
votes
8
replies
168
views
confused on how to install glad for OpenGL
I am following this OpenGL tutorial series: https://youtu.be/XpBGwZNyUh0?si=Jbhlk5W-ifrzlBxB and was able to install most of the dependencies, but I'm being stumped on glad.
I can see a github??? (...
2
votes
0
answers
114
views
Cursor hidden on GLFW (borderless) fullscreen window when told not to
I recently started a game-dev project using only GLFW, GLAD and GLM. Everything was going well till I tried to change my window from a normal 1280x720 window to a (borderless) fullscreen window:
My ...
0
votes
0
answers
81
views
How to stop cuda register resource from removing with host-device mapping of an OpenGL shader storage buffer?
I'm trying to take an OpenGL storage buffer, load data into it from the CPU (persistently mapping it), taking that data and processing it with cuda, then using that same data again in further OpenGL ...
Advice
0
votes
0
replies
39
views
using resulting image of opemcl for opengl texture by PBO transfer
Like the title says I'd like to know how to use an image(screen sized) as a texture for an opengl(screen sized) quad. I do not want to use interop, but I have the intuition you should be able to use ...
1
vote
0
answers
80
views
LibVLC main filter error: Failed to create video converter
I am using LibVLC (via the VideoLAN.LibVLC.Windows.3.0.23 NuGet package) on Windows 10 to reproduce a video (MiVideo.mp4, 1920x1080):
#include <glad/glad.h> // OpenGl
#include <GLFW/glfw3.h&...
Advice
0
votes
1
replies
76
views
Does anyone know how to use OpenGL functions with SKGLView in MAUI?
I have a 3D graphics legacy project built with Visual Studio in C# that makes use of Xamarin Forms and OpenTK. It targets both Android and iOS but the recent introduction of a requirement for 16kb ...
Advice
1
vote
6
replies
183
views
Whats a good choice as graphics API for small programs for different systems?
For a long time I wanted to create little programs like drawing a fractal utilizing a GPU instead of CPU. I would like to share those programs with friends and family. So while I am using Linux, some ...
Advice
0
votes
0
replies
110
views
FreeType - SDF font rendering
I am using FreeType and render glyphs to a font atlas with SDF enabled. I later create quad for each font and build strings using these quads and texture coordinates of fonts within altas.
To render ...
Advice
0
votes
1
replies
119
views
Arch linux with Nvidia driver
I decided to try arch linux and move all my development there.
Currently I am using arch with sway.
Now I am trying to setup my dev flow, but I am running into issues.
Basically I have a project in C++...
Best practices
0
votes
1
replies
109
views
Draw many ordered 2D primitives of various types with fewest number of OpenGL draw calls
I am making OpenGL-based 2D renderer with methods like drawTriangle/Line/Circle(). I suspect I can create a VBO for each primitive type and render all triangles with one glDraw*(), then all lines with ...
Advice
0
votes
8
replies
182
views
Creating windows in OpenGl
I was wondering how do people make windows with OpenGL.
Currently I'm using glfw to create them. But I do want to know how others create them so I can learn what the best practices for creating ...
0
votes
1
answer
135
views
SEGFAULT occuring in C in raycaster due to incorrect high values being input into map array [closed]
Using Dev C++ 5.4.1 I've been following this raycaster tutorial as a fun project for myself: https://youtu.be/gYRrGTC7GtA?list=PLAaI2BTdQ5UNqKyp-0qwGzsU7U2DmeQmA&t=557
At the point in the video ...
-1
votes
1
answer
123
views
Unable to update float value in GLSL shader from Python
I'm using Python and PYSide6/OpenGL to create a GLSL shader, in this shader I want to have a time component. The boilerplate code for the shader is set up fine, and renders at expected. However I can ...
