Questions tagged [qt]
Qt is a cross-platform application development framework widely used for the development of GUI programs.
36 questions
1
vote
0
answers
45
views
How to integrate QML UI into a custom Vulkan renderer without using a separate window
I'm developing a custom Vulkan renderer and want to integrate a QML-based UI into it.
I already have a working Vulkan setup and also managed to render QML over Vulkan using a separate ...
0
votes
0
answers
190
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,...
1
vote
2
answers
629
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: ...
0
votes
0
answers
2k
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 ...
0
votes
1
answer
391
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 ...
5
votes
0
answers
323
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 ...
6
votes
1
answer
709
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 ...
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 ...
0
votes
2
answers
3k
views
OpenGL shows a black screen
I am new at OpenGL, I try this example: https://stackoverflow.com/a/31524956/4564882
but I get only a black widget. The code is exactly the same. this is the code associated to the QopenGLWidget:
<...
2
votes
0
answers
166
views
Moving and rotating to a position with forces and impulses [closed]
Carrying on from this question, I'm still stuck trying to implement the behaviour mentioned in this tutorial. My movement has improved slightly thanks to the help I received:
But the character still ...
2
votes
2
answers
559
views
Movement through forces and impulses
I'm trying to get some decent-looking movement in my game using this tutorial. In the image below... something crazy is going on. What should happen is that the NPC should start on the left side of ...
1
vote
0
answers
355
views
Box2D Qt wrong collisions
I am working on a simple Box2D game (with Qt), but my objects don't collide correctly:
As you can see on the picture, objects try to go through each other and slide over.
My b2World:
...
1
vote
0
answers
601
views
What is the right way to use a QStateMachine for a text adventure game? [closed]
I have seen a couple topics about this already but they were a bit vague for me so I decided to make this. I'm working on a little adventure game just for fun in Qt, its basically just text on the ...
1
vote
0
answers
621
views
How to make an oscillation move on opengl qt
I'm trying to make a character make an oscillation move. That is, the character will start by rotating to a certain angle, say 60 degrees, and then slowly come back to an upright position then rotate ...
1
vote
3
answers
2k
views
Application toolkits like QT versus traditional game/multimedia libraries like SFML [closed]
I currently intend to use SFML for my next game project. I'll need a substantial GUI though (RPG/strategy-type) so I'll either have to implement my own or try to find an appropriate third party ...
2
votes
1
answer
813
views
Most efficient way to implement walls and shadows in 2d
I am making a 2d top-down programming game similar to robocode. There will be up to 1000 walls (lines) in the arena, and up to 50 robots. Each robot can see in a 90 degree arc, and cannot see through ...
4
votes
3
answers
11k
views
What are the advantages and limitations of using Qt for game development? [closed]
I know there is already a thread asking for example 3d games written using Qt. What I'd like to have a discussion about is whether or not Qt is a good framework for game development.
In my experience ...
7
votes
2
answers
943
views
OpenGL or OpenGL ES
What should I learn? OpenGL 4.1 or OpenGL ES 2.0?
I will be developing desktop applications using Qt but I may start developing mobile applications in a few months, too. I don't know anything about ...