Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
174 views

I'm trying to write a compute shader in GLSL with OpenGL, GLFW, GLEW, and GLM. The problem is that the compute shader either isn't running or isn't modifying any buffers. I have the latest NVIDIA 4060 ...
kronosta's user avatar
2 votes
1 answer
121 views

I am trying to make a function in my game engine to draw text with stb_truetype , The problem is that when rendering it , for some reason there's black boxes behind the text and even when the color ...
idkhonstly's user avatar
-1 votes
1 answer
297 views

I'm programming in C++ and I've already linked GLFW in the project, however, I can't figure out how to add GLEW to the project. I tried downloading it from their website but unzipping the folder gives ...
jerry's user avatar
  • 21
2 votes
1 answer
73 views

If OpenGL FBOs have a provision for multiple colour targets with GL_COLOR_ATTACHMENT0 to GL_COLOR_ATTACHMENT31 but only one depth/stencil target with GL_DEPTH_STENCIL_ATTACHMENT, then how would I be ...
Komal Shashank's user avatar
0 votes
2 answers
181 views

My "engine" is heavily based on this article. The overall Question: How to attach weapon to "character arm"? Although animations work for all characters and animations at mixamorg ...
afsana's user avatar
  • 21
1 vote
1 answer
170 views

I compile fine but get a segfault. Is it something to do with GLchar * fragmentShaderSource and GLchar * vertexShaderSource? I have: #include <iostream> #define GLEW_STATIC #include "shader....
user avatar
1 vote
1 answer
223 views

I have a problem when I'm trying to render a transparent object. I only have one mesh so one drawcall and if the object is a little complex like a plant I can see through the object, you can see that ...
Fewnity's user avatar
  • 39
7 votes
1 answer
357 views

Under normal circumstances, creating a shared handle in DX using CreateSharedHandle, then using glImportMemoryWin32HandleEXT in OpenGL should allow sharing. I tried rendering a triangle in DX and ...
214's user avatar
  • 89
1 vote
0 answers
120 views

I'm trying to use glfw+glad to draw lines with mouse click input coordinates. At first i tried to use glBegin, glVertex2f but they seems to be no longer supported in OpenGL3+. So i tried to use VAO, ...
Azemmmm's user avatar
  • 39
0 votes
1 answer
111 views

I am new to OpenGL and using GLFW for input. I recently have been developing a simple program to create shapes when clicking the left mouse button. If the left mouse button is held down, the shape ...
LucasR's user avatar
  • 3
1 vote
1 answer
211 views

I'm running this on Visual Studio 2022, with the Win32 (x86) platform. The same bug occurs on x64, though, I've tested it. I have found no errors in my code, but still I've tried adding compile error ...
LiterallyWize's user avatar
0 votes
0 answers
108 views

Smoothing normal on GPU might be a common question because you really can generate flat normal by triangle primitives , but you don't have adjacent faces so it is not possible to smooth normal . I ...
De Loris's user avatar
4 votes
1 answer
219 views

I have a legacy OpenGL fixed-pipeline app which has been ported from Windows (32-bit) to MacOS 64-bit. The problem is that if I have a scene with a non-positional light, everything works great. If I ...
Michael Wilson's user avatar
0 votes
0 answers
116 views

There is a potential bug in Qt3D that prevents meshes instantiated with different QLayers from functioning properly with a framegraph containing two or more QLayerFilter nodes. But implementing ...
Sakthi's user avatar
  • 11
0 votes
1 answer
161 views

I am trying to get the colour which was clicked on in OpenGL via glReadPixels(): #include <iostream> #include <glad/glad.h> #include <GLFW/glfw3.h> #include <glm/gtc/...
JadenJin's user avatar
0 votes
1 answer
140 views

In order to draw one frame , or to say given an array of vertices , while this array being transmitting and passing through stages of a shading program , is there a strict correspondence between ...
Shahashahaha's user avatar
1 vote
1 answer
43 views

I am using PNGDecoder to decode a png that is a height map. Howerver, when I am just printing the values returned in console I see few of the rgb values are returned as negative -128, -128, -128, -1 -...
Jitendra Tiwari's user avatar
6 votes
1 answer
76 views

I've got a texture that I want to use as a indirect radiance light. There is a problem that when I sample this texture's lowest mip the result looks like this: but actually should look like this: I ...
Gerrard's user avatar
  • 77
1 vote
0 answers
68 views

When I use tbb::parallel_invoke to separate the input loop from the render loop into two different threads, both loops are running, but the window from glfw freezes immediately. The following is the ...
Steegi's user avatar
  • 11
0 votes
0 answers
63 views

I am trying to build a fallback mechanism for OpenGL drivers in an application that uses GLFW and GLAD, where if the system provided library does not support 4.5 version, a Mesa implementation is used ...
User 10482's user avatar
  • 1,072
0 votes
1 answer
137 views

I'm using windows 10, vs 2019, GLEW 2.1.0, and SDL2. I'm pretty sure that I have everything linked. I've triple checked. I have all the version information and stuff like that set, since I'm following ...
Anonym0us_C0d3r's user avatar
-1 votes
1 answer
110 views

I am trying to convert mouse coordinates to world coordinates in OpenGL and I am using the camera class from learnOpenGL.com, which is this. And I'm using this function for converting cursor space to ...
Aseed Kid's user avatar
1 vote
0 answers
61 views

Each mesh is the set of a VBO and an EBO, assuming you have multiple meshes with the same vertex format (ex: position, color), you could use the same VAO for each mesh, like this: ... GLuint ...
Phoenix's user avatar
  • 31
0 votes
1 answer
104 views

My model is shifted to another position on the screen after select pivot point on the 3D model. I'm trying to use the GL.LookAt to implement the rotation around pivot point feature. GL.MatrixMode(...
nghia_pham's user avatar
2 votes
1 answer
313 views

In GLSL, is it legal for a function to read from an out argument, after it has already written to it? For example void f(out float x) { x = ... x = sqrt(x); } Or is it needed to write it as ...
tmlen's user avatar
  • 9,230