Skip to content

Game Development

What can we say - we like games. And you can use Qt to write some. Questions? Ask here.
862 Topics 4.0k Posts
  • Collision detection?

    7
    0 Votes
    7 Posts
    11k Views
    T

    Jake, you the man!

    Yes Graphics Scene does have signals and slots and I am an idiot. I don't know how I came to the conclusion that it doesn't.

    So now I have sub classed QGraphicsScene and I have re-implemented the
    updateChange (const QList<QRect> rects) slot where I detect collisions by examining the area of the scene that has changed by getting all the items in the region that has changed and checking for any collisions.
    I connected the sceneChanged(const QList<QRect> & rects) signal to it obviously.

    Now I am going to Try and re-implement mouseMoveEvent()

  • 0 Votes
    3 Posts
    2k Views
    F

    Hi Elena,
    you might consider using V-Play, which is free to download at http://v-play.net.

    It is specially made for 2D games and adds gaming-specific components in QML for games like Angry Birds, Fruit Ninja, Cut the Rope, Doodle Jump or even strategy games like Tower Defense. For the latter two there are open-source demo game examples, included in the game engine SDK download. An overview of the demo games is available here: http://doc.v-play.net/beta/vplay-examples.html

    Cheers,
    Chris

  • QImage get data... transfer from basic C++

    2
    0 Votes
    2 Posts
    3k Views
    M

    To access the bitmap data within QImage, take a look at QImage::bits(). In your code youre just allocating a new buffer and accessing it.

    To load image data, do something such as:

    @QImage image(imageName);
    if ( !image.isNull() )
    {
    const char* data = (const char*)image.bits();
    // TODO your stuff here :)
    }
    @

  • QGraphicsBillboardTransform: how to use!?

    3
    0 Votes
    3 Posts
    2k Views
    T

    Merged the two identical threads. Please do not double post. Thanks!

  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • Game with qt

    2
    0 Votes
    2 Posts
    1k Views
    M

    A robust game design, game play algorithms & rules, code design and architecture, artwork, possibly sound files... the rest is limited only by your imagination and skills.

  • OpenGL 3.x functions

    6
    0 Votes
    6 Posts
    5k Views
    B

    Awesome, I'll give that a try tomorrow.

  • 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
  • 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
    1k 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.

  • 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
    2k Views
    V

    i have the same problem but with the qt3d

  • Pick an point, "ray-point intersection"

    9
    0 Votes
    9 Posts
    7k 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
    3k 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
    11k 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;
    }@