Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. The boxes Qt example does not work on a remote display (with export DISPLAY)
Forum Updated to NodeBB v4.3 + New Features

The boxes Qt example does not work on a remote display (with export DISPLAY)

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    elimac
    wrote on 11 Jun 2014, 14:52 last edited by
    #1

    Hello,
    I try to run the Qt OpenGL examples on a "machine-A",
    doing before an "export DISPLAY=machine-B:0.0" :
    All Qt OpenGL examples (2dpainting, framebufferobject, grabber, hellogl, textures, glhypnotizer, deform...) work fine on the remote X display but not the "boxes" example,
    it does not display the cubes at all, without any error message.

    The difference I noticed is that "boxes" is the only one Qt OpenGL example using Vertex Buffer Objects, so :

    • Does anybody would know there's an issue with Qt OpenGL on remote display ?
    • Is there a known limitation in Qt OpenGL using VBO on a distant display ?

    (I run the Qt examples 4.8 on a CentOS 5 machine)

    Thank you for your help !

    1 Reply Last reply
    0
    • E Offline
      E Offline
      elimac
      wrote on 19 Jun 2014, 09:43 last edited by
      #2

      Ok, I found the problem : the glbuffer class in boxes could be seen as a beta version of the later QGLBuffer class, implementing VBOs. It does not work with remote display. To make it work I "just" replaced GLBuffer by QGLBuffer and adapted the code to match with the low level OpenGL calls. Hope this helps if someone is confronted to the same problem. Good luck though, it wasn't an easy thing to do at all.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 19 Jun 2014, 22:00 last edited by
        #3

        Hi,

        Did you update the Qt 4 code, or are you using Qt 5 in that case ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • E Offline
          E Offline
          elimac
          wrote on 20 Jun 2014, 08:09 last edited by
          #4

          It's a little bit more complicated : my program is derivated from boxes, so we can found in it all the classes from boxes, including glroundedbox, using VBOs.
          GLRoundedBox uses VBOs from glbuffers.c, a boxes file, instead of QGLBuffers, the classic implementation of VBOs.
          So I created a simple Cube class, using VBOs from QGLBuffers, and replaced GLRoundedBox by Cube. Now, my program works on remote display, but I did not modified the code of boxes.
          I did not updated to Qt-5 because, sadly, it's one of tne constraints of my project to work with Qt-4.8.4. But I analysed the code of boxes in Qt-5 to see if my bug was found and solved with the new version and found out that except for minor changes, the code is the same tnat in the 4.8.4 version. So I guess the same problem would happen if I used Qt-5.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 20 Jun 2014, 21:36 last edited by
            #5

            Then I you should go to the "bug report system":http://bugreports.qt-project.org to see if it's something known

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved