2022 Developer Survey is open! Take survey.

Questions tagged [qt]

Qt is a cross-platform application development framework widely used for the development of GUI programs.

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 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 ...
user avatar
  • 23
0 votes
0 answers
13 views

Anyway to track the position of the moving object controlled by PathMovement in QML (felgo)?

I read an online introduction on using QML for game development and I find felgo is easy to pick up. I am trying to create a code to move a block along a given path and I would like to extract the ...
user avatar
0 votes
0 answers
134 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,...
user avatar
0 votes
0 answers
507 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 ...
user avatar
1 vote
2 answers
383 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: ...
user avatar
1 vote
1 answer
344 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 ...
user avatar
  • 111
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 ...
user avatar
  • 155
3 votes
1 answer
654 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 ...
user avatar
  • 155
0 votes
1 answer
296 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 ...
user avatar
  • 103
2 votes
1 answer
902 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 ...
user avatar
  • 137
4 votes
0 answers
276 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 ...
user avatar
1 vote
1 answer
541 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 ...
user avatar
6 votes
1 answer
618 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 ...
user avatar
  • 301
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: ...
user avatar
  • 127
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 ...
user avatar
0 votes
1 answer
2k views

How to rotate a triangle towards the point in Qt?

I have an issue with items rotating. I have a point and a triangle which needs to be rotated with its apex point towards the taregt point. The right side of the picture represents how it is should to ...
user avatar
  • 101
0 votes
2 answers
2k 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: <...
user avatar
  • 101
1 vote
0 answers
64 views

Planning to start a right game design pattern [closed]

I'm planning start a game development (I did develop many promo games but now I will start my games with the best code design patterns). I will use QT Creator with C++14, OpenGL and some physical ...
user avatar
  • 111
2 votes
0 answers
124 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 ...
user avatar
  • 285
5 votes
1 answer
1k views

Why do my game objects jitter when moving the camera?

I'm moving from Qt Widgets' QGraphicsScene to Qt Quick's QQuickItem for rendering my game objects. One of the things this ...
user avatar
  • 285
2 votes
2 answers
416 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 ...
user avatar
  • 285
-1 votes
1 answer
186 views

Smooth radial collision

I'm trying to make collisions smoother in my game. Currently, entities will stop completely when they collide with an obstacle. I saw the following article recently: http://www.gamedev.net/page/...
user avatar
  • 285
1 vote
0 answers
324 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: ...
user avatar
  • 143
-1 votes
1 answer
487 views

How to go about front end UI to main Game Engine and then to Game Over Phase [closed]

I am about to complete my first ever game. I have used Qt for windowing and OpenGL for actual game logic. I am confused about .. things which are related to design so according to FAQ, these kinda ...
user avatar
  • 125
1 vote
0 answers
566 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 ...
user avatar
  • 111
1 vote
1 answer
631 views

How to have qt5 work on desktop like on mobile devices (es2, correct glsl version)?

I am looking for help/information concerning this issue : My work: I have an opengl es2 render engine that works on an iOS app. I almost managed to make it work by calling the same openGL rendering ...
user avatar
1 vote
0 answers
576 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 ...
user avatar
  • 11
5 votes
1 answer
664 views

Working Qt controls in a 3d environment

I need some advice from a Qt expert. The background: I have a 3D engine (ogre3d) working in concert with Qt. The 3D Content is displayed in a widget (using a custom OS window in the client area). I'm ...
user avatar
  • 453
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 ...
user avatar
  • 715
2 votes
1 answer
2k views

Is it possible to billboard a sprite using a transformation matrix?

None of the current topics on billboarding seemed to answer this question. But, given a sprite (or quad) that has it's own 4x4 transformation matrix a camera with a view matrix (a standard 4x4 ...
user avatar
  • 781
2 votes
1 answer
743 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 ...
user avatar
  • 123
1 vote
2 answers
2k views

QT for lan game devleopment [closed]

I am making a small game for a course in my school and was planning on using QT to build it. I have worked with pygame[last year] and turbo c++[about 5 years agao] to make games, small easy stuff. ...
user avatar
4 votes
3 answers
10k 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 ...
0 votes
2 answers
5k views

looking for simple 3d games made with Qt [closed]

Hi i need to make simple education games in 3d for that i need GUI and editor like function this is no problem . but the openGL stuff i need to learn by example. do you know places where i see ...
user avatar
  • 847
7 votes
2 answers
743 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 ...
user avatar
5 votes
2 answers
672 views

What resources are available for using Qt as a toolkit for games [closed]

Qt is an excellent application toolkit and overall the best for C++. While some large projects use Qt (KDE for example), I haven't seen many games using it. So I decided to make my own. But what does ...
user avatar