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
    11 Posts
    3k Views
    M
    Using the minimal example above, I fixed this by removing this call in our QOpenGlWidget subclass's constructor: setAttribute( Qt::WA_PaintOnScreen, true ); Removing this got rid of the paintengine calls (and numerous other problems). Thanks!!!!
  • Qt3D sort policy (C++)

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    H
    Oops, look like my suggestion to use a render state set was not correct, sorry! I thought QSortPolicy was a render state. But I found this repo some time ago and it uses the sorting policy in OffscreenLayer.qml. Maybe this helps, because it implements transparency :)
  • OpenGL|Clip planes|Geometry shader

    Solved
    1
    0 Votes
    1 Posts
    961 Views
    No one has replied
  • Multiple Vertex Array Objects

    Unsolved qtopengl vertex buffer vertexarray vao vbo
    2
    1 Votes
    2 Posts
    2k Views
    S
    @sinanmut When I create the 3D objects in the initializeGL function, it is fine paintGL function renders these objects. Later on when I want to add new objects to the scene I don't see these new ones being rendered by painGL function. Is there any flag that I have to add in paintGL fuinction or in initializeGL function? Thanks,
  • Qt qml with raw OpenGL containing FBO

    Solved
    1
    0 Votes
    1 Posts
    648 Views
    No one has replied
  • Errors while connecting to FSUIPC

    Unsolved fsuipc c++
    3
    0 Votes
    3 Posts
    1k Views
    Pablo J. RoginaP
    @mohammad_palwala shouldn't you asked in some FSUIPC mailing list? Your issue seems not related to Qt...
  • Qt3d RenderStateSet does not works.

    Solved
    2
    0 Votes
    2 Posts
    1k Views
    D
    I find solution. The structure of entityes must include Layerfilter. Qt3DRender::QViewport *viewport = new Qt3DRender::QViewport(view->renderSettings()->activeFrameGraph());//here must be your framegraph auto surselector =new Qt3DRender::QRenderSurfaceSelector(viewport); surselector->setSurface(view); auto layerfilter = new Qt3DRender::QLayerFilter(surselector); auto layer = new Qt3DRender::QLayer(root);//yours root entity layer ->setRecursive(true); Qt3DRender::QCameraSelector *cameraSelector = new Qt3DRender::QCameraSelector(layerfilter); Qt3DRender::QClearBuffers *clearBuffers = new Qt3DRender::QClearBuffers(cameraSelector); clearBuffers->setClearColor(QColor(100.0, 100.0, 100.0)); cameraSelector->setCamera(view->camera()); clearBuffers->setBuffers(Qt3DRender::QClearBuffers::AllBuffers); Qt3DRender::QRenderStateSet* rendstate = new Qt3DRender::QRenderStateSet(clearBuffers); rendstate->setParent(clearBuffers); Qt3DRender::QDepthTest* depth = new Qt3DRender::QDepthTest();//Without this nothing will work depth->setDepthFunction(Qt3DRender::QDepthTest::LessOrEqual); rendstate->addRenderState(depth); Qt3DRender::QLineWidth* lw = new Qt3DRender::QLineWidth(rendstate);//render state for example lw->setValue(8); rendstate->addRenderState(lw); " layer " must be adde as component to entity
  • QOpenGLFunctions draw in the wrong QOpenGLWidget

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    S
    It's basically a sequence of images, but I want to play it back as "video".
  • Mouse click for latest Qt and VC++ problem....

    Solved visual c++ gui mouse events
    10
    0 Votes
    10 Posts
    3k Views
    T
    @JKSH Yes, I had to reinstalled QT on Visual C++. Works OK... THANKS!!!
  • multi scenes

    Unsolved
    10
    0 Votes
    10 Posts
    4k Views
    SGaistS
    Before dimming your problem simple, you might want to consider providing a more thorough description of what exactly you want to achieve. Using a framework where you can do 2D/3D rendering with raw OpenGL or more sophisticated high level classes as well as video rendering, asking how to show a 2D/3D scene is not exactly the same as asking how to show two videos showing 2D/3D scenes. Therefore, can you explain exactly what your application is about and what exactly you are trying to show ? On a side note, criticising all the moderators when only one of them answered you, trying to help you with the limited information you gave, isn't really a good attitude.
  • QOpenGLWidget::repaint() not immediatly repaint

    Unsolved
    9
    0 Votes
    9 Posts
    2k Views
    SGaistS
    Because if you use a tight loop you'll block Qt's event loop hence no painting.
  • Using QT3D in a widget inside of a form

    Unsolved
    1
    0 Votes
    1 Posts
    410 Views
    No one has replied
  • how to manage interactivity ?

    Unsolved
    1
    0 Votes
    1 Posts
    449 Views
    No one has replied
  • Where does appear the functions which draw the objects ?

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    raven-worxR
    @signalK said in Where does appear the functions which draw the objects ?: how to : 1)open "toyplane.obj" file ? 2)edit this file ? in the 3D application of your choice (3ds Max, Maya, Blender, ...)
  • Sequence of actions

    Unsolved
    1
    0 Votes
    1 Posts
    437 Views
    No one has replied
  • Qt3D: How to draw lines with Qt3D?

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    M
    @KillerSmath Thank you very much, but I want to know how to draw lines using the Qt3D framework.
  • Qt3D C++ Collision detection

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    _
    Hej A.K.G. I'm only found in the documentation that is possible with extensions. My idea to solve your problem is: Integrate a physic engine like Bullet (http://bulletphysics.org/wordpress/) and you find out all collision detection and physics. Qt 3D as 3D drawing engine, and Bullet (or other software) for physic & collision representation. Regards, Jakob
  • SDL events getting delayed

    Unsolved sdl2
    1
    0 Votes
    1 Posts
    657 Views
    No one has replied
  • 3D Collision detection

    Unsolved
    2
    0 Votes
    2 Posts
    874 Views
    SGaistS
    Hi, That's a question better asked on the interest mailing list. You'll find there Qt3D's developers/maintainers. This forum is more user oriented.
  • Scarping a HTML Table in a Frame with Qt

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