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
0 votes
0 answers
399 views

I want to implement water in my game and have already done it using the Gerstner equation, but the result is not too impressive, then searching the Internet I found an article about how someone made ...
Proger's user avatar
  • 1
3 votes
1 answer
179 views

I am creating a simple OpenGL C++ game. I have a main character (green box) and some static objects (red boxes) positioned as stairs. The problem is as green box is descending down the stairs, it ...
Axel's user avatar
  • 33
0 votes
0 answers
219 views

I've decided to take on a challenge of making 16 c++ games based on this challenge from FamTrinli, I'm using SDL + OpenGL. I've created a simple 2D game in the past, but I didn't like the code ...
koogel's user avatar
  • 79
0 votes
0 answers
49 views

I'm experimenting with texture generation so I can begin to implement height map generation/terrain generation. Right now I'm just experimenting with different generating functions. Right now I'm just ...
YamMan's user avatar
  • 49
0 votes
0 answers
77 views

I am building a two-player(CPU-User) Poker application with C++ and OpenGL. Currently the application just renders the graphics, keeps track of which button is pressed, value entered in textbox ...
Incompleteness's user avatar
0 votes
2 answers
300 views

As you can see in the linked image, despite assigning a texture unit, there is no texture being drawn on the screen. In the main loop, I am receiving error 1282, and there are no further errors ...
Henry Fielding's user avatar
1 vote
0 answers
76 views

I am experimenting with opengl using c99 on windows and vs 2022 i tried to create an window using glfw in one project and put a function that supposed to generate a texture in another project that is ...
Abn Alsrag's user avatar
0 votes
0 answers
401 views

How can I draw a triangle with modern OpenGL, that clearly shows pixels (filled rectangles) on diagonal lines? What I have done so far: Setup OpenGL (with GLEW) window in 320 x 200 Define vertices ...
Edgar Alloro's user avatar
0 votes
0 answers
209 views

I'm making a game with infinite, blocky procedurally generated worlds in python, with PyOpenGL. I figured out that allocating all the VBO space at once causes a lot of lag. To fix this, I am ...
N3RDIUM's user avatar
  • 53
0 votes
1 answer
289 views

On the first boss fight level you could notice how lava moves what is not a surprise for a software renderer. But according to the Quake fandom, GLQuake was released in 1997, hence OpenGL had no ...
MaximMogulev's user avatar
0 votes
1 answer
338 views

I am working on a vector graphics rendering library for OpenGL in Rust. Currently, the library's API is as follows: ...
JS4137's user avatar
  • 107
0 votes
1 answer
55 views

I making a simple game following JoeyDeVrieses guide on OpenGL, I followed the guide and created an input system, which handles the keyboard inputs and quitting the application, the issue is I cannot ...
koogel's user avatar
  • 79
0 votes
1 answer
364 views

I am trying to create a vector rendering library for OpenGL in Rust. Currently, the goal is to produce nanovg-like rendering. I have found two approaches to doing my rendering: The pure shader ...
JS4137's user avatar
  • 107
1 vote
2 answers
452 views

I have a standard 3D rendering pipeline. Let's say I have a camera looking down at a flat plane that represents the floor. (in my game, z = height, so this is a plane where z == 0), and for ...
Tom Davies's user avatar
0 votes
1 answer
220 views

Force even resolution window I am using GLFW/glfw3 OpenGL to write 2D games. Some of my shaders have artifacts that only appear when the window size has an odd value. Eg 1201 by 1024 creates artifacts....
Blindman67's user avatar
0 votes
0 answers
134 views

I have been trying to make an orbit camera using glfw. I got a working solution which is as in the following. ...
atg's user avatar
  • 1
1 vote
1 answer
125 views

I tried sampling equirectangular texture as a reflection. It simply does not work as intended. The texture is moving with my camera in a weird manner. Here is what I tried to do. Fragment shader: <...
Eskimo Joe's user avatar
0 votes
1 answer
141 views

I'm trying to make a simple snake game in C and OpenGL, and I have this at the moment, which runs almost perfectly: ...
Scollier's user avatar
  • 124
1 vote
1 answer
793 views

I have implemented the Z pre-pass technique into my engine, leading to a 2x performance improvement in a test scene. However, the technique darkens the objects (but not the skybox), introduces z-...
HenriV's user avatar
  • 67
1 vote
1 answer
1k views

I have trouble applying early depth test in my engine, to prevent fragment shader to be (fully) executed for fragments that will be overwritten anyway, because other fragments, drawn later, will be in ...
HenriV's user avatar
  • 67
0 votes
2 answers
270 views

I read several times that shaders can be composed by the engine on the fly, depending on graphical settings. How is this generally done?
HenriV's user avatar
  • 67
0 votes
1 answer
724 views

I'm following the amazing LearnOpenGL tutorials and noticed that Element Buffer Objects, which were mentioned and used in the Hello Triangle chapter, never appear again. So my question is, is using ...
Logan Bentley's user avatar
1 vote
1 answer
767 views

For a game I'm making, I have to tessellate an octahedron into a sphere on the GPU (shaders). What I've done is I've successfully tessellated the faces, but I'm having trouble subdividing more spaces, ...
Chillzy's user avatar
  • 47
1 vote
0 answers
109 views

I'm making a simulation of a milling machine - something a bit like this diagram: At the top there is a cylinder mesh representing the milling tool. Below it is a cube mesh representing the material ...
Zhukov Artem's user avatar
0 votes
0 answers
62 views

I find myself wondering whether our PC games from the 2000s will continue to operate without a VM. To the present, GPU manufacturers have generously kept pre-3.2 OpenGL in their drivers. I'm amazed ...
KarlLightning's user avatar

1 2
3
4 5
87