Questions tagged [qt]
Qt is a cross-platform application development framework widely used for the development of GUI programs.
36
questions
0
votes
0
answers
79
views
Get coordinates of clicked point on screen in model space
There is a 2D object located in the coordinate range -1 to 1. In world space, it is also located in these coordinates, but with a shift along the z axis.
The actual initialization of the model, view ...
0
votes
0
answers
32
views
QT for commercial game [duplicate]
Hello to the community,
I am developing a game for windows mainly and want to use QT for a lobby (the game is multiplayer) after that the game will run in another window full screen while the lobby ...
0
votes
0
answers
171
views
Qt opengl glTexImage2D in a widget
I was doing an OpenGL display, where I render in an opengl context (GLUT).
But now I would like to integrate it into a big project that does not use the Qt OpenGL API at all (QGLWidget, QOpenGLWidget,...
0
votes
0
answers
763
views
Using a PBO glTexSubImage2D with GL_PIXEL_UNPACK_BUFFER gives GL_INVALID_OPERATION
I plan to develop a tool for realtime video manipulation using C++, QT 4.7.4 and OpenGL and i'm on visual studio 2008. I check many web site but my code doesn't work since I try with PBO. At the ...
1
vote
2
answers
530
views
How can I generate a random 2D surface
I'm trying to build an old game (Lander) where you try to land a spaceship on a flat platform.
But I have no idea how to generate a random surface. Something like in the picture would be nice.
Edit: ...
1
vote
1
answer
456
views
set zfar/znear in openGL using shaders (QT env)
I have a QT canvas and I'm using shaders to build my scence.
I've set the camera image plane at some position, and would like to view object from the image plane to infinity. How do I set the zfar and ...
0
votes
0
answers
1k
views
OpenGL Slow rendering of half a million points on Windows
How can I speed up the drawing of my points in OpenGL on Windows?
I have an Qt 5.9.1 app that shows real time Lidar data, so at a certain frequency I add points to my buffer (which I've overloaded to ...
3
votes
1
answer
919
views
Flicking geometries with OpenGL in Qt app
I have a Qt (5.9.1) app that on Windows many of the geometries I'm drawing flickers. My problem description is vague because I'm at a complete loss.
Does anyone know if there's an issue with ...
0
votes
1
answer
351
views
Qt based C++ game structure : which class types to use here, and how to correctly structure the relationship between these objects
I am writing a C++ game using Qt. As this is the first time, I am trying to understand how the structure should be.
I have two objects derived from the type QGraphicsRectItem which appear as boxes on ...
2
votes
1
answer
1k
views
OpenGL managing many textures smoothly
I'm working on a game right now and running into some noticeable performance issues and limitations.
Basically, I have this:
A few QGLWidgets, all sharing ...
5
votes
0
answers
297
views
Rotation of a ball moving on a surface
I have a ball that moves along a platform. The ball is characterized as a sphere that has a radius and a position. The platform basically is a rectangle consisting of two vertex triangles. Its class ...
1
vote
1
answer
570
views
QT SFML Integration Trouble
I have been having trouble linking sfml to qt creator I have downloaded the pre-compiled libraries and headers for MINGW on the sfml website here : http://www.sfml-dev.org/download/sfml/2.3.2/
This ...
6
votes
1
answer
670
views
OpenGL flat shading of non-planar polygons using TBOs
I'm trying to implement flat shading for non-planar polygons (using a single normal vector per polygon) based on buffer textures, but I can't seem to figure out how to set up things correctly. The ...
1
vote
1
answer
1k
views
How to enable depth test with QOpenGLWidget? It renders black screen
Currently I am writing a small application with Qt and OpenGl and I choosed QOpenGLWidget for rendering graphics.
That's how I declared my widget:
...
2
votes
0
answers
1k
views
Qt 5 - QOpenGLWidget not updating the screen
I'm creating a level editor for my game using Qt for gui and i'm in really early stages. Right now i'm trying to dynamically add objects ( entities ) on screen when i click a button. So far the ...