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
  • Qt Creator integration with PhysX

    Unsolved
    1
    0 Votes
    1 Posts
    788 Views
    No one has replied
  • 0 Votes
    3 Posts
    971 Views
    L

    I'd be happy to look into this if you could provide a small example to reproduce the crash (ideally in a bugreport). This may already be fixed in the git version of Qt3D.

  • Removing Qt3D's default point light

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    L

    We can discuss removing the default point light. I think the reason it was added was that you would still have some light effect even if you forget to set a light. Obviously that may not be what everyone wants.

  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • Qt Overlay Existing VS2015 Project

    Unsolved
    1
    0 Votes
    1 Posts
    507 Views
    No one has replied
  • 0 Votes
    2 Posts
    3k Views
    johngodJ

    Hi Clockwork

    I didnt read your code with much attention, but for starters if all you want is draw a triangle, check this tutorials I did https://bitbucket.org/joaodeusmorgado/opengltutorials
    I'm using vbos, to draw triangles. I'm using all OpenGL native calls, but should be pretty easy to convert to Qt OpenGL functions. I also recommend you this book wich is great, it has a lot of details that usually are ommited in other books http://alfonse.bitbucket.org/oldtut/index.html

  • Updating buffer data frame by frame

    Unsolved
    1
    1 Votes
    1 Posts
    517 Views
    No one has replied
  • 0 Votes
    3 Posts
    2k Views
    SGaistS

    Hi,

    What kind of camera are you going to connect to ? Are they already supported by GStreamer ?

  • Simple example of displaying a point in Qt3D

    Unsolved
    8
    0 Votes
    8 Posts
    6k Views
    ?

    @Dabulla Hi! Would be great if you'd file a bug report for this PointSize RenderState issue. Thank you :)

  • Focusing on item

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    W

    I had misconfigured ensureVisible's margins , and the view's size and the scene's rect .
    Now it works fine :)

  • Unclear Map Definitions

    Solved
    2
    0 Votes
    2 Posts
    1k Views
    Joel BodenmannJ

    I'd recommend reading this article which explains everything fairly well: Coordinate System

    As the article explains, each graphics item maintains it's own coordinate system. The methods you are referring to are used to translate coordinates between those items, between the items and the scene and so on.
    I hope that reading that article will help, otherwise feel free to ask if clarification is needed.

  • 0 Votes
    10 Posts
    5k Views
    SGaistS

    Haaaaaa… I missed that… You didn't pass the pointer to the QImage data...

  • Qt3d Input in c++

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    njbrownN

    The new qt3d update fixed the input api for c++.

    Thanks for the help guys.

  • QtQuick into an SDL2 window

    Unsolved
    4
    0 Votes
    4 Posts
    3k Views
    I

    According to the QWGLNativeContext documentation and some online examples, I set up this little function to try and initialize a QOpenGLContext from an existing and already initialized SDL2 context:

    void QtHooks::initQtOpenGlContext(SDL_Window *screen) { assert(screen); QOpenGLContext *context = new QOpenGLContext; SDL_SysWMinfo sysInfo; SDL_VERSION(&sysInfo.version); SDL_GetWindowWMInfo(screen, &sysInfo); HGLRC currentContext = wglGetCurrentContext(); HWND currentWindow = sysInfo.info.win.window; assert(currentContext); assert(currentWindow); QWGLNativeContext nativeContext(currentContext, currentWindow); context->setNativeHandle(QVariant::fromValue(nativeContext)); assert(qtContext->isValid()); // <<-- this line always fails context->create(); // if i remove the previous assert, this line kills the application very badly }

    This little example always fails in the last two lines. Am I missing something?

  • MainWindow's instant disappearence problem :c

    Locked Solved
    3
    0 Votes
    3 Posts
    821 Views
    kshegunovK

    Hello,
    Please don't double post in multiple forums.

    Kind regards.

    [Topic closed as duplicate of https://forum.qt.io/topic/68396/simple-mainwindow-problem]

  • QSurfaceFormat buffer sizes

    Unsolved
    1
    0 Votes
    1 Posts
    665 Views
    No one has replied
  • Custom QSGGeometryNode Scene blending issue

    Unsolved
    1
    0 Votes
    1 Posts
    510 Views
    No one has replied
  • Disabling culling in qt3d

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    SGaistS

    Hi,

    Qt3D being still a tech preview and it's API evolving, I'd recommend posting this question on the interest mailing list. You'll find there Qt's developers/maintainers. This forum is more user oriented.

  • Applying Texture on Custom Mesh

    Unsolved
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • OpenGL load textures from QImage

    2
    0 Votes
    2 Posts
    3k Views
    njbrownN

    There could be quite a few thing wrong. Could you try using power-of-two textures to see if the images start showing (resize the images to a 512x512 or 256x256) and ensure the image is completely defined?
    https://www.opengl.org/wiki/Common_Mistakes#Creating_a_complete_texture

    It would help if you provided code for the entire application.