Skip to content

Game Development

What can we say - we like games. And you can use Qt to write some. Questions? Ask here.
871 Topics 4.1k Posts
  • 0 Votes
    4 Posts
    9k Views
    K
    Hi I inserted the two lines (with both GL_GLEXT_PROTOTYPES and GL_GLEXT_LEGACY i.e. first one then the other). The code is compiling fine but its crashing with an assertion in the qglfunctions.h file. Exact debugger output: bq. Initializing shaders... Initializing geometries... ASSERT: "QGLFunctions::isInitialized(d_ptr)" in file ........\Desktop\Qt\4.8.0\mingw\include/QtOpenGL/qglfunctions.h, line 719 Invalid parameter passed to C runtime function. Invalid parameter passed to C runtime function. I also tried directly including glext.h, but the same assertion persists.
  • Using sounds in Qt Linux?

    5
    0 Votes
    5 Posts
    3k Views
    B
    So, any progress on this yet?
  • Position touch event in QWidget

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Qt and OpenGL problems

    2
    0 Votes
    2 Posts
    4k Views
    M
    I've had problems with glew myself and was able to work around it by making sure glew.h (actually gltools.h in my case) was before any qt opengl header files in my source. With multiple header files, this was surprisingly difficult, but it finally worked after some re-arranging. morris
  • Pbo works with ATI but not nvidia

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Error: 'QGLBuffer::IndexBuffer' is not a type

    2
    0 Votes
    2 Posts
    2k Views
    Z
    Try adding: @ #include <QGLBuffer> @ at the top of your file.
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • Cannot use gl primitives in my mobile application

    5
    0 Votes
    5 Posts
    3k Views
    A
    okay.. got it.. thanks...
  • Bullet physics engine in qt

    4
    0 Votes
    4 Posts
    6k Views
    A
    thanks shahid.pk.. it was helpful.. :)
  • Integrating opengl with qt

    3
    0 Votes
    3 Posts
    3k Views
    B
    You have to link against the module by adding QT += opengl to your .pro file. You should also #include <QtOpenGL>.
  • 3d game in Qt

    3
    0 Votes
    3 Posts
    4k Views
    M
    I would suggest honing your Qt skills with basic (yes, perhaps boring) projects to get the basics down. Same with any of the other technologies you'll need which you may be new at. Once you have a good grasp of them in simple scenarios, then it will make it that much easier to put it together into a more complex application. If you dive into something very complex without having a good grasp of the basics, then it will be much harder to peel back the complex layers of the problem to get to any simple errors.
  • How to make a database with various levels?

    6
    0 Votes
    6 Posts
    3k Views
    T
    I see that way in the qt-flying bus example, but I make the lvls with qml, and one loader that read a signal next game and change the level, but the way to make that the level-loader read the scores of each level is this that I dont know how to do. I do this to make one database to the first lvl: @function guardardatos() { var db = openDatabaseSync("lvl1", "1.0", "primerlvl", 1000000); var rs; db.transaction( function(tx) { // Create the database if it doesn't already exist tx.executeSql('CREATE TABLE IF NOT EXISTS Niveluno(uno INT, dos INT)'); // Add (another) greeting row tx.executeSql('INSERT INTO Niveluno VALUES(?, ?)', [ recto.score, recto.burbujas1]); // Show all added greetings rs = tx.executeSql('SELECT * FROM Niveluno ORDER BY uno desc LIMIT 1'); } ) if (rs.rows.length > 0) { var record = rs.rows.item(0); recto.lvl1 = record.uno; } }@ When the lvl ends I write 2 values: the score and and the quantity of bubbles eated, lather I created a other datbase called guardarDatos1() for the lvl 2 etc..., when I start the game one Timer reads all the databases and update the scores in the levelmenu and show which is active, pased with his score and which is bocked to the user. I dont know other form to make this, and in C++ buff is other world. if other knows other form to do this please explain me!!
  • Multithreading in qt

    9
    0 Votes
    9 Posts
    5k Views
    T
    Thank you so much for your help! Now I get it... I'll just post here if I have more question.. Thank you again for your help!
  • QGlWidget for 2D graphics and layered image composition

    2
    0 Votes
    2 Posts
    3k Views
    Q
    You can have a look at some QGraphicsView videos on this website Also you may want to look at Cocos2D for Qt in here http://developer.qt.nokia.com/forums/viewthread/14208 Bests
  • How to calculate the collision (if boxes overlap)

    6
    0 Votes
    6 Posts
    5k Views
    K
    Its not really any sort of formula. If this was in 3D you would need formulas, but this are just basic comparisons. I'd suggest you draw two boxes in a coordinate system on a paper and do the comparisons for left and right (as already exist in the code above) by hand to get a better understanding of what's happening.
  • Use Qt Quick or traditional Qt

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    T
    Closing this thread: Please see http://developer.qt.nokia.com/forums/viewthread/14234/ instead.
  • Use Qt Quick or traditional Qt

    2
    0 Votes
    2 Posts
    2k Views
    G
    Hi, a better heading would ease this up. Just writing need help, does not help the people to get your question easily. I would try it with "Use Qt Quick or traditional Qt"
  • [ANNOUNCE] Cocos2D GameEngine for Qt

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Beginner creating a 2D game, need help and expert advice

    4
    0 Votes
    4 Posts
    3k Views
    Q
    You can have a look at "mini cocos2d-clone":https://projects.developer.nokia.com/cocos2d/files/, I'm adding android support and iOS soon, so your cross-platform game support! Check the example to see how easy it is!
  • Get "motion blur" in animations

    2
    0 Votes
    2 Posts
    2k Views
    M
    For motion blur you need to blur the item in the vector which item moves. I hope you understood me. If item moves in x coordinates then you need to do blur only on x axis.