Skip to content

Game Development

What can we say - we like games. And you can use Qt to write some. Questions? Ask here.
875 Topics 4.1k Posts
  • OpenGL in Qt. Realization 3d or 2d model class. Help.

    8
    0 Votes
    8 Posts
    4k Views
    Z
    Note that above is written against Qt5 so it uses QOpenGL* classes rather than QGL* classes.
  • Need Help Regarding Qt GraphicsItem Collision!

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Solved: keygrabber or keypress event should be used for a game?

    3
    0 Votes
    3 Posts
    3k Views
    S
    Problem found: In the GUI, I have a QTextBrowser when i gets the focus it does not other languages (ex. Arabic, Russian) Key press events
  • Blackberry Gameplay

    3
    0 Votes
    3 Posts
    4k Views
    Z
    Thanks i fixed the link.
  • How can i delete this post?

    3
    0 Votes
    3 Posts
    2k Views
    A
    You cannot. Only moderators can. In the future, if you want to move a post, please ping a moderator. You can do that via several channels, inclucluding: Use the report link next to each post On IRC, drop into #qt-devnet-moderators (freenode network) Send a direct message to one of the moderators (you can recognize them by the Moderator badge under their user name & icon)
  • First-Person Shooter using OpenGL and Qt

    4
    0 Votes
    4 Posts
    5k Views
    A
    Thanks for the answers! Just what I was looking for. I haven't used anything similar to a GUI library before so this will be a bit of a challenge, although i have made some simple games in DirectX before. But it's nice to know I won't be shooting myself in the foot by spending some more time with Qt.
  • Feedback request for a Qt-based game engine featuring QML & Cocos2D

    12
    0 Votes
    12 Posts
    7k Views
    F
    Hi, the components that are implemented in QML are open source and come as part of the engine SDK. Our accelerated renderer is closed source at the moment, but we will provide different licenses in the future where one of them includes the source code access. best regards, Chris
  • 0 Votes
    2 Posts
    3k Views
    V
    i have the same problem but with the qt3d
  • Pick an point, "ray-point intersection"

    9
    0 Votes
    9 Posts
    8k Views
    M
    Aye its a nice shortcut into picking :) The same mechanism can sort of be (ab)used for example to do occlusion testing like for eg lens flares.
  • Valve: opengl is faster than directx (article)

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Multiple opengl screens

    4
    0 Votes
    4 Posts
    4k Views
    H
    If you want to show multiple camera views in your game, a better approach is to use viewports: http://nehe.gamedev.net/tutorial/multiple_viewports/20002/
  • Change the center of rotation with QMatrix4x4

    11
    0 Votes
    11 Posts
    12k Views
    D
    Great to see it works now. (For Science!! ;) I've upvoted the bug. If you want you can in return upvote "my bug":https://bugreports.qt-project.org/browse/QTBUG-26013 that's annoying me ;).
  • Making a Start Screen Menu - GUI

    4
    0 Votes
    4 Posts
    3k Views
    D
    Since it hasn't been mentioned yet: Stylesheets are your friend here, as they can make the pushbutton look like whatever you want. http://doc.qt.nokia.com/qq/qq20-qss.html A quote from that site that might inspire you: @QPushButton { border-width: 4px; border-image: url(button.png) 4 4 4 4 stretch stretch; }@
  • Need help with QML and C++ on implementation of Cows and Bulls

    2
    0 Votes
    2 Posts
    2k Views
    A
    Check the qml tutorials on "ics.com":http://www.ics.com/learning/icsnetwork/ and also check qt elearning video tutorials like qt quick for c++ developers. it helps to make connections between c++ and qml..keep us updated about your game...
  • A proper game loop

    13
    0 Votes
    13 Posts
    11k Views
    M
    I know it wasn't meant for real-time games, that's why i benchmarked it. I'll check Qt Quick though.
  • Organizing large amounts of information in game

    6
    0 Votes
    6 Posts
    3k Views
    A
    Actually, you can use SQL in-memory. SQLite is able to work with in-memory databases. Still, perhaps SQL is not the interface best suited for what you want... Again: I'd just create your own data structure. It can internally use QMap, QHash (prefer this over QMap if you can!), QVector (prefer over QList if you can!) etc., but it would keep your API sane and the resulting code readable, and it would allow items to point to each other.
  • QGLWidget and grabFrameBuffer() problem in software Raycaster

    2
    0 Votes
    2 Posts
    2k Views
    A
    Problem solved. The issue was not caused by the grabFrameBuffer()-function as suspected, but by re-use of a QPixmap the data was passed to. After creating a new QPixmap (one for each texture) everything worked as it should. Thanks for everyone who took their time reading this!
  • Scalable application

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    K
    There is no need to "double post. ":http://qt-project.org/forums/viewthread/18898/ I am closing this thread.
  • 0 Votes
    2 Posts
    3k Views
    S
    Two further related questions. After the game, I'm generating a second High Score Screen with names and scores, currently in a 2nd QStackedWidget. All of my score/name data is in the Qt side, in a QList<myHighScoreStruct>. I saw in the "QML/C++ integration slides":http://get.qt.nokia.com/training/QtQuickforCppDevelopers/slides/qml-cpp-integration.pdf that you can use slots and Q_INVOKABLE to pass simple parameters, but only pass-by-value, so nothing complicated like passing a data structure. Possible solutions: Use QML animations to change to a HighScoreTable-like state (with a blank table), then at the end of the animation inform Qt's MainWindow, which switches to the HighScore part of the StackedWidget, making only it visible. So the Qt part draws the table. BUT how to know when the QML animation is finished? In Qt draw all of the text in a custom QWidget with transparent background, then expose that QWidget to QML so QML draws the custom QWidget (with high score data embedded) as well as any border graphics. I guess I'll try#2, but would appreciate any feedback on any of the other questions.
  • GL Debug Context with Qt 5

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied