Skip to main content
Share Your Experience: Take the 2024 Developer Survey
7 votes

OpenGL managing many textures smoothly

While OpenGL is thread unsafe, you can load such data asynchronously. Say you know you will transition in about 20 seconds. You start loading the image data on another thread. The thread loads the ...
akaltar's user avatar
  • 1,681
5 votes

OpenGL flat shading of non-planar polygons using TBOs

Fixed it! One of the TBOs is filled with unsigned integers, therefore usamplerBuffer has to be used instead of samplerBuffer — <...
Ailurus's user avatar
  • 301
2 votes

How can I generate a random 2D surface

Unity code, but even so... ...
Engineer's user avatar
  • 29.9k
2 votes

How can I generate a random 2D surface

Well, I’d say that a simple noise function on the height of land on a certain point should be sufficient.
avanwieringen's user avatar
1 vote

QT SFML Integration Trouble

Turns out that I was using sfml 2.3.2 which I guess isn't fully compatible with qt creator so I tried sfml 2.0 and it suddenly worked. Here is a link to a video describing how to link SFML to Qt ...
Alex Kiecker's user avatar
1 vote

set zfar/znear in openGL using shaders (QT env)

You can't make OpenGL render to infinity. The depth buffer usually uses floats (it can use other types, but none of them can represent an infinite number of values), meaning it has a set precision. If ...
Bálint's user avatar
  • 14.9k
1 vote

Flicking geometries with OpenGL in Qt app

The problem is that my renders are taking too long, which is "solved" with a glFinish(). My understanding however is that ...
Matt's user avatar
  • 165
1 vote

Qt based C++ game structure : which class types to use here, and how to correctly structure the relationship between these objects

QGraphicsItem is the correct base for things drawing pixels on screen, but that is a much tighter responsibility than "The model of the player's actions". More traditionally, you would have something ...
Caleth's user avatar
  • 136

Only top scored, non community-wiki answers of a minimum length are eligible