37,977 questions
0
votes
0
answers
49
views
Weird artifacts when rendering textured triangles [closed]
I am writing my own driver for the Intel ARC A750 GPU for my own operating system.
I am currently working on supporting the render engine. When I am rendering textured triangles:
Vertex shader:
#...
0
votes
0
answers
63
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 ...
-2
votes
0
answers
45
views
OpenGL/GLSL Single Quad Tilemap with Texture Atlas Artifacts [closed]
I am rendering a 2D tilemap in OpenGL with custom vertex + fragment shader and VBO+VAO using the "single fullscreen quad / do tilemap lookups in shader" technique as described in these ...
0
votes
1
answer
133
views
The reason for the appearance of dark edges that are at sharp angles [closed]
I'm writing a minimalist Minecraft clone in C++ using OpenGL. After implementing block rendering and camera control, I ran into a problem. When the angle between a cube face and the viewer's ...
Advice
0
votes
0
replies
30
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
votes
0
answers
85
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
55
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
63
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
103
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
66
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
104
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
94
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
154
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
120
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
110
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 ...