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
  • GLTF importer with C++ Qt

    Unsolved
    2
    0 Votes
    2 Posts
    573 Views
    SGaistS

    Hi and welcome to devnet,

    As the string suggests, it's base64 encoded. Therefore you can use QByteArray::fromBase64 to load the data that is available after the "base64,".

  • Does Qt3D support OpenGL 2.1?

    Solved
    2
    0 Votes
    2 Posts
    403 Views
    A

    I just received the information from KDAB that Qt3D support starts with OpenGL ES 2 and ranges to modern versions of the API. In the future the RHI will be supported as well.

  • 0 Votes
    2 Posts
    537 Views
    jsulmJ

    @Mquaza said in QPainter drawRects without draging a line behind:

    How do you make it so, that 2 rectangles are moving across the scene?

    I would say change their coordinates?

  • 0 Votes
    2 Posts
    439 Views
    S

    Not generally good form to reply to oneself, but it seems OpenGL isn't scaled on hiDpi screens, according to this

    So calling QApplication::desktop()->devicePixelRatio() gives me a pixel ratio of 2, which means I guess I just set 'trect' in the code to have w and h scaled by 2.

    Interestingly, the screen is not scaled by 2, it's a 3200x1800 display on a native resolution of 5120x2880. The ultra-high DPI is just too much, but I want more than the standard half-resolution.

  • Performance issues animating hundreds of OpenGL shapes

    Unsolved
    1
    0 Votes
    1 Posts
    281 Views
    No one has replied
  • My Qt creater version is v5.14.1

    Unsolved
    4
    0 Votes
    4 Posts
    432 Views
    JonBJ

    @aha_1980 said in My Qt creater version is v5.14.1:

    @learningOpenGL

    My Qt creater version is v5.14.1

    No. Surely not.

    This mysterious post comes from the future... ;-)

  • How to make QDockWidget and QOpenGLWidget combination?

    Unsolved
    1
    0 Votes
    1 Posts
    545 Views
    No one has replied
  • Replace Pixel Map from the package Qt in package Wt

    Unsolved
    2
    0 Votes
    2 Posts
    241 Views
    SGaistS

    Hi and welcome to devnet,

    Since you want to translate to Wt, you might want to ask the authors of that library.

  • the fps of QOpenglWidget is reduced by label->setText()

    Unsolved
    1
    0 Votes
    1 Posts
    246 Views
    No one has replied
  • 1 Votes
    8 Posts
    6k Views
    B

    @Alkoou

    Hi Alkoou,
    can you share your full code? I am currently working on the same topic.. It would be really helpful.

  • How to use FBX files with QMesh?

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    SGaistS

    Hi and welcome to devnet,

    At what point ? Building the plugin ?
    When running your application ?
    On what platform ?

  • 1 Votes
    3 Posts
    3k Views
    tobias_mT

    Allright, I have got a few answers from other places that are potential options, so here's a list of potential ways to do what I want.

    QQuickPaintedItem but will use software rasterizer (or an FBO which will be a texture upload on every frame). QQuickItem and updatePaintNode. More low level then QQuickPaintedItem which will use the SceneGraph API. How this performs is entirely up to how painting is "done". QQuickFrameBufferObject https://doc.qt.io/qt-5/qquickframebufferobject.html lets you use OpenGL directly in your custom item. The QML Canvas element can draw primitives using the Canvas API known from HTML5. Can also use an FBO to draw. "Shapes" in QML can draw lines and, Shapes. But requires dynamically creating the elements and then updating them from C++. QNanoPainter which is an OpenGL accelerated C++ vector drawing library for Qt: https://github.com/QUItCoding/qnanopainter

    I haven't explored the suggested options in code yet. But this list looks pretty exhaustive to me. I'm marking this question as solved since I don't expect more alternatives to arise :)

  • Using QJoystick for Joystick Axes & Buttons?

    Unsolved
    4
    0 Votes
    4 Posts
    539 Views
    SGaistS

    You have to give more details. Otherwise it's pretty much Crystal Ball debugging and not very efficient.

  • Qt3DWindow inside of a QDockWidget is buggy

    Unsolved
    1
    0 Votes
    1 Posts
    230 Views
    No one has replied
  • 0 Votes
    2 Posts
    299 Views
    M

    Created a bug report for this problem https://bugreports.qt.io/browse/QTBUG-81087.

  • Progressbar for loading a heavy *.OBJ file

    Unsolved
    3
    0 Votes
    3 Posts
    531 Views
    Rcc21R

    @Orad
    You could place a progress bar with indefinite status. You can use the QProgressDialog and setting

    progressBarDialog->setMaximum(0); progressBarDialog->setMinimum(0);

    will show an infinite progress bar.

  • OpenGL queries

    Unsolved
    2
    0 Votes
    2 Posts
    369 Views
    JKSHJ

    @haoxiang002 said in OpenGL queries:

    Re: Question about OpenGL queries

    Hi, what is your question?

  • How to move QGraphicsView in a QGraphicsScene

    Unsolved
    2
    0 Votes
    2 Posts
    568 Views
    sierdzioS

    All the solutions you listed are correct.

  • mouse pos() returns wrong position

    Solved
    9
    0 Votes
    9 Posts
    2k Views
    F

    @Cheng-shi-hua
    QML ?

  • Qt3D point picking doesn't work

    Unsolved
    1
    0 Votes
    1 Posts
    292 Views
    No one has replied