Skip to main content

Questions tagged [opengl]

OpenGL is a graphics standard and API which targets the desktop and workstation markets. It is designed to be easy to accelerate with dedicated computer hardware, and hence most implementations give greatly improved performance over traditional software rendering. Currently, OpenGL is used for applications like CAD software and computer games. It is also cross-platform. The OpenGL standard is controlled by the Khronos group, which also controls OpenGL ES.

Filter by
Sorted by
Tagged with
2 votes
1 answer
124 views

I've been trying to write code that can run on multiple GL versions, since I mostly only use very basic features, and one of the versions I am targeting is GL ES 2. Since I know you're supposed to ...
Hypatia of Sva's user avatar
0 votes
0 answers
32 views

Hi im trying to select voxels in a voxel world that are at the center of the cameras view. The players camera X,Y,Z position and its rotations are known. The camera works in this program. I tried ...
Opengraphicspros12's user avatar
0 votes
0 answers
114 views

I'm developing a voxel engine with OpenGL and C++ and searching how Minecraft-like games set up VAO, VBO, and EBO. I'm also dealing with transparency geometry and depth testing issue. There are 3 ...
crunch toast's user avatar
0 votes
1 answer
148 views

I am trying to efficiently render many 3d game characters: many instances of the same 3d model which can change their positions and z rotations each frame. For reference I'm using OpenGL but this ...
greenlagoon's user avatar
0 votes
1 answer
82 views

I am experiencing an extremely odd situation with the introduction of the tesselation control and evaluation shaders in my OpenGL rendering pipeline. I defined an instanced indexed mesh whose ...
Chaos's user avatar
  • 153
0 votes
2 answers
311 views

I'm using OpenGL but this question should apply generally to rendering. I understand that for efficient rendering in games, you want to minimize communication between the CPU and GPU. This means pre-...
greenlagoon's user avatar
1 vote
1 answer
172 views

I'm programming a Ray Tracer using Rust and OpenGL, I've already made Ray Tracing work in the basics by converting the data to an SSBO and sending it to the Shader in a basic way... The problem is ...
Arthur Sally's user avatar
0 votes
1 answer
182 views

Working on a small project, currently trying to implement animation. Like most beginners I am simply following tutorials, this one being the LearnOpenGL Skeletal. All code for Bone/Animation/Animator ...
Robert Baillie's user avatar
0 votes
1 answer
96 views

I'm trying to understand how different versions of opengl work. I am developing a game aimed to support opengl3.3 here are the specifications of my system: OS: Manjaro linux Renderer: Mesa Intel(R) ...
cuppajoeman's user avatar
0 votes
1 answer
120 views

In the case of having the vertex attributes (i.e. position, color, etc) hardcoded in the shaders, why do I need to explicitly create a vertex array object (VAO)? If I remove the VAO, nothing is drawn. ...
CroCo's user avatar
  • 255
0 votes
0 answers
220 views

I'm building a 2D game from scratch using C++ and OpenGL, but I've run into a frustrating issue: a simple sprite moving from left to right occasionally stutters. Tracking down the cause has been ...
Liddelfranks's user avatar
0 votes
0 answers
19 views

I am trying to emulate something like Factorio's train system and a core component involves placing rails. One of the game's mechanics has objects snapping to a grid. Another example would be Fortnite ...
user187415's user avatar
0 votes
0 answers
68 views

I am trying to learn OpenGL and this is my attempt to create a hello triangle program but no matter what the vertices are not normalized I when I have the set to 1,0,0 or something the vertex is not ...
Divyansh undley's user avatar
0 votes
0 answers
87 views

I'm interested in how to fix my OpenGL source code so that there is a blocky appearance to the textures - without antialiasing and multisampling, as it was in MS-DOS games. For example, I want the ...
black4joss's user avatar
1 vote
0 answers
77 views

I've been writing a renderer in C++ using OpenGL. Recently I wanted to implement indirect batch rendering using glMultiDrawElementsIndirect. When I try to test this ...
LaElijah's user avatar
0 votes
0 answers
48 views

I am having this minor issue implementing shadow mapping. The plane below the sphere has these strange artifacts. I can fix it by offsetting the position slightly but I'd rather have it work ...
Jambo's user avatar
  • 1
0 votes
0 answers
102 views

I have a single channel 2D image (for instance, R8). I would like to use this data as a texture. However, the texture internal format should be R32F since I need accurate linear sampling in my shader. ...
0x2207's user avatar
  • 101
1 vote
1 answer
117 views

I have run into a weird problem. The Alpha values of sprites are not respected when the sprites are in motion. I was trying to do particles in 3d, and so for the start I just rendered them onto a quad(...
Sown Leon's user avatar
0 votes
1 answer
91 views

I am trying to rotate the node of a modelinstance as follows: Note: the node and modelinstance are rotating BUT not about their own center Y axis! ...
i_o's user avatar
  • 131
0 votes
1 answer
849 views

As the title is saying I'm trying to make a simple skybox to learn how it works. Using, of course OpenGL and SDL. I have tried read some sites, here are them: link 1 link 2 link 3. None of them were ...
ガブリエル Gabriel's user avatar
1 vote
1 answer
124 views

I am having a strange issue with my sprites, which is kind of difficult to describe, but hopefully the attached images will illustrate. I have drawn two 1 pixel lines on my sprite to help with this, ...
starrider's user avatar
0 votes
0 answers
125 views

I recently learned a little bit of OpenGL through learnopengl.com. I've got through the window, gone through the triangle, then shaders along with interpolation, textures, and now transform. When I ...
Bobby Neal's user avatar
1 vote
1 answer
419 views

I am working on sone articles, and need a bit of clarity on following question. Is the OpenGL Shader a CUDA Kernel? When searching the web, I have seen information on differences between kernel and ...
armagedescu's user avatar
1 vote
0 answers
72 views

I started working on a small raytracer project, and i decided to reuse my already existing openGL renderer to do this, i'm using GLM to manage transforms/positions. However, i stumbled upon a very ...
Bellaedris's user avatar
0 votes
1 answer
418 views

I've been implementing frustum culling in an OpenGL application that appears to be working correctly. The issue I have been having when trying to render the frustum shape from the camera, my debug ...
Josh's user avatar
  • 1

1
2 3 4 5
87