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
  • 0 Votes
    3 Posts
    2k Views
    R

    I've somehow gotten it to work by creating an entirely new project with just a symbian target and copying all my stuff over (unchanged). Is there a known issue regarding projects with both the qt simulator target and the symbian device target?

  • 0 Votes
    10 Posts
    10k Views
    R

    [quote author="Reptile" date="1324699470"]Hey, I'm without my N8 for a week or so, but I've just finished writing openGL code for a game in the simulator, including using QGLWidget::renderText() for text rendering. But I read that it's not supported by OpenGL ES? Does that mean it won't show up on the phone or will cause other problems? Does anyone know if renderText() will/won't work?[/quote]

    FYI: don't use QGLWidget::renderText(). you'll get this message:

    [Qt Message] QGLWidget::renderText is not supported under OpenGL/ES

  • Where is PeekMessage Func in Qt SDK?

    9
    0 Votes
    9 Posts
    6k Views
    A

    why do you trigger a repaint in the repaint? >>

    without QTimer::singleShot(0, this, SLOT(updateGL()))
    paintGL() Func is not repaint in this case

    @void Display::paintGL()
    {
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    glClearColor(0.0, 0.0, 0.0, 1.0);

    glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); static int Angle = 0; ++Angle; glPushMatrix(); glRotatef(Angle, 0.0f, 0.0f, 1.0f); glBegin(GL_QUADS); glVertex3f(-0.5, 0.0, -0.5); glVertex3f( 0.5, 0.0, -0.5); glVertex3f( 0.5, 0.0, 0.5); glVertex3f(-0.5, 0.0, 0.5); glEnd(); glPopMatrix();

    }@

    where exactly does it crash? >>

    it is not crash all the time
    and it's crash point is not same all the time
    and this crash is fixed QTimer::singleShot Func's msec value change (0 -> 10)

    By the way, a side not to your first post>>

    I'm sorry. and thank you for your Advice Gerolf :)

    and thank you all. dude!

  • Help with the incoming calls

    2
    0 Votes
    2 Posts
    2k Views
    R

    I think the best way to do it will be, pause the game when it loses focus or when the application being sent to the background. And the application logic is in JavaScript.

  • Need help; QPushButton to control OpenGL

    9
    0 Votes
    9 Posts
    4k Views
    D

    I found the problem, I'm using a single buffer, not double buffer. I commented glutSwapBuffers() out and it works fine.

  • Problem with launching an executable & ATI

    3
    0 Votes
    3 Posts
    2k Views
    D

    We found the problem, it come from an ATI dll.

  • X

    3
    0 Votes
    3 Posts
    2k Views
    EddyE

    I moved your question to the gaming subforum where the gaming developers reside most.

  • How to parametrize Phonon::Effects

    3
    0 Votes
    3 Posts
    4k Views
    F

    Here i found a working demo:
    QtSDK/Demos/4.7/qmediaplayer

  • For Beginners Qt

    17
    0 Votes
    17 Posts
    8k Views
    sierdzioS

    Yeah, I did suspect that was the case, no problem there, it just seemed a bit awkward to me to be addressed that way ;)

    Cheers and good luck!

  • 0 Votes
    10 Posts
    8k Views
    M

    i got bullet physics working nicely with my opengl app, see the link in my sig for a demo on n9/meego harmattan.

  • QPushButton board

    6
    0 Votes
    6 Posts
    3k Views
    R

    ok thanks

    i will implement their ideas to see what I find

    not a calendar btw ^^

    really thanks

    greetings

  • A small problem with qRand().

    11
    0 Votes
    11 Posts
    8k Views
    D

    Which OS are you using? Under any 32-bit Linux I have access RAND_MAX is 2^32 - 1.

  • Setting up Opengl ES2 in Qt

    7
    0 Votes
    7 Posts
    6k Views
    M

    You can write ogl es 2.0 compliant OpenGL code on desktop using GLEW for instance. Then again I dont use windows to do so, on Linux I just install the glew packages from apt and compile away.

  • Basic question : how to develop games in Qt.

    6
    0 Votes
    6 Posts
    4k Views
    sierdzioS

    Ok, well, I am personally more into C++ side, and have made just a few simple projects in QML, so I might not be the best guy to ask. But for mobile, QML is definitely a great choice - very flexible, very (and here I mean really, REALLY very) easy to learn, and yet quite powerful. About the viewer - again, it's just one of a few options, and there will be major changes here in Qt5. For the time being, let's focus on Qt4. You can use QML viewer to run plain QML/Js projects. So, it's not a necessity, more a convenience helper. You can easily create your own app without the viewer, simply use QtDeclarative module - the widget that displays QML is called QDeclarativeView, IIRC. It also gives you additional benefit of C++ - you can easily code a "mixed" app, where some parts are done by QML, even by some graphic designers with no programming skills, while coders make the C++/ JavaScript backend.

  • OpengGL Shader Program fails

    28
    0 Votes
    28 Posts
    13k Views
    S

    Well ,currently can get it working with inline string typed shaders.shader files somehow don't get loaded.Also I see that the best thing is to use native (non Gt wrappers) OpenGL libs

  • QtGraphicsView collision problem

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    4 Posts
    3k Views
    I

    gDEBugger showed that after a while the texture object in memory exists, but its size is zero

  • Qt and DirectX for games

    3
    0 Votes
    3 Posts
    4k Views
    L

    I've tried to use some files from the DirectX SDK with MinGW with no luck. Please keep in mind that I had no luck - there is possibly a way I do not know of.

  • 0 Votes
    5 Posts
    4k Views
    T

    Hi,
    Check about QGraphicsPixmapItem and QPixmap classes, it should be a good begin!

  • QWidget in memory. problem with events.

    7
    0 Votes
    7 Posts
    3k Views
    G

    System events (what mouse and keyboard are typically) are send in a different way:

    sendSpontanousEvent, which is an internal Qt method.

    I'm not 100% sure, if that can be achieved the way you try to do it...