Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-89140

QOpenGLWidget rendering certain models wrong

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Out of scope
    • Affects Version/s: 5.15
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Linux Manjaro XFCE4, nvidia geforce 1060
    • Platform/s:
      Linux/X11

      Description

      When integrated with OpenSceneGraph, some models load in a wrong fashion. Screenshots are attached. OpenSceneGraph alone renders the same models correctly.

      This was tested using a modified version of osgQt ( https://github.com/openscenegraph/osgQt ), which uses QOpenGLWidget along with osgViewer::CompositeViewer. The same bug however occurs with Qt4 and Qt5 using QGLWidget as well (which is clearly visible in OpenMW-CS, another free software using osgQt).

      The problem exists, when loading dae/collada models. When tested with fbx-model and osgt-model, the rendering is correct (although the model itself has a minor problem with non-applied mirror modifier). Perhaps OSG's dae-plugin sets some variable in a fashion that is not compatible with Qt4 and Qt5?

      An example code along with modifier osgQt for CompositeViewer is at https://gitlab.com/unelsson/osgqt_tests/

      This line (and the ones next to it) are for testing models in different formats: https://gitlab.com/unelsson/osgqt_tests/-/blob/master/osgViewerQt_CompositeViewer.cpp#L157

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            lagocs Laszlo Agocs
            Reporter:
            nelsson Nelsson Huotari
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes