37,982 questions
-2
votes
0
answers
51
views
creating a 3D texture buffer with glTexImage3D in opengl clear another unrelated buffer [closed]
I'm doing a small volume rendering application with opengl in c++ and I have a problem with 3D textures.
I have two 3D textures : one for the volume data (of type GL_R8, id = 9) and one for storing a ...
0
votes
0
answers
73
views
How do I get 'glUseProgram' in a public procedure of a class to access a public variable instead of throwing up an ACCESS VIOLATION error? (Lazarus)
I have gotten a pretty good grasp on how to do many of the things the LearnOpenGL website teaches in Free Pascal, but my learning got halted by an error I have been trying to fix.
See, I am at the ...
1
vote
0
answers
46
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
55
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
0
votes
6
replies
77
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
43
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
99
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
90
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
151
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
119
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
108
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 ...
2
votes
1
answer
98
views
How do I fix the System.AccessViolationException?
I am trying to make a square from triangles using indices and vertices, but when I run the code it says this: System.AccessViolationException: 'Attempted to read or write protected memory. This is ...
Best practices
1
vote
1
replies
148
views
How to pass large arbitrary data to opengl shader
I have an array of simulation states that I want to pass to a fragment shader. In this scenario each state element should result in a pixel on the screen.
In order to decide what the color of the ...
5
votes
1
answer
172
views
Second GLFW window won't render?
I decided to try a dual screen to display the square as a wireframe vs a colored in square:
#include <GLAD/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
void ...
Advice
0
votes
3
replies
133
views
I have a custom SDL2 graphical engine and i'd like to go isometric view
I gave a lot of time making a custom sdl2 based graphical engine in c++ and i'd like to move to isometric view rendering. This means being able to display 3d objects and i wonder if I should stick to ...