Results 1 to 3 of 3

Thread: Qt 5.5 3D 2.0, is it possible to render in a separate thread other than GUI thread?

  1. #1
    Join Date
    Nov 2007
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Qt 5.5 3D 2.0, is it possible to render in a separate thread other than GUI thread?

    Hi,
    I have already tried out the solution of Qt 3D 1.0 version's QGLView (is now deprecated) its hard(and seems as impossible without changing QT3D 1.0 source code) to have seperate 3D rendering thread (not blocking UI thread)
    In some applications, you might need to have separate 3D rendering thread (when you have video rendering on GUI side and have a 3d renderer on the same application). For such cases, you might need to be able to separate 3D rendering operations away from GUI thread.
    Is the Qt 5.5's road map or current feature set supports seperate thread support for QT 3D 2.0 rendering ? (In previous Qt versions, when we use bare QGLWidget, its somehow possible to move the 3D rendering to other thread). I would like to query whether core QT3D 2.0 view classes/components will include the feature of seperate thread? (e.g. an integrative class which makes it available to seperate by inheriting?)

    In Qt 5.4 and QT 3D 1.0 version, If the view classes dont inherit from QPaintDevice based classes (e.g. QGLView), i found it that its hard to make them separable since the scene graph nodes expect a QPainter object. But without inheriting from QPaintDevice based classes, i could not establish to create my own painter so which i willuse in painting in other thread. For QT3D 2.0 version, does this dependency still exist? (is it impossible to render advanced 3D view classes in other thread?)


    Thank you very much
    KR

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,153
    Thanks
    295
    Thanked 854 Times in 841 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt 5.5 3D 2.0, is it possible to render in a separate thread other than GUI threa

    You should probably be making use of shader programs and the other new OpenGL objects that push much of the rendering into the GPU. In an application written in this way, there should be little if anything done in a paintGL() method.

    I have not yet D/L Qt 5.5, so I don't know too much about Qt3D 2.0 yet. I would expect that given Qt's push to support shaders and other OpenGL GPU-side processing in Qt 5.x, Qt 3D 2.0 will have been rewritten to make full use of this. That's one reason why it has taken so long to get into an official release.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,365
    Thanks
    3
    Thanked 5,014 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt 5.5 3D 2.0, is it possible to render in a separate thread other than GUI threa

    Qt Quick should already render in a different thread (at least on platforms that support it).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. -how to run a function in separate thread
    By shivendra46d in forum Newbie
    Replies: 22
    Last Post: 28th October 2013, 07:20
  2. How to Have a class run in a separate thread.
    By sona1111 in forum Newbie
    Replies: 7
    Last Post: 29th August 2013, 07:44
  3. GUI Updates from separate Thread
    By sa5webber in forum Newbie
    Replies: 5
    Last Post: 16th June 2012, 21:08
  4. QGLWidget and QThread, how to render in separate thread?
    By DIMEDROLL in forum Qt Programming
    Replies: 3
    Last Post: 2nd December 2010, 20:56
  5. new QWidget in separate thread
    By magland in forum Qt Programming
    Replies: 15
    Last Post: 7th February 2008, 13:32

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.