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

DirectRender is not working

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.7.0
    • Qt3D TP2
    • Qt3D
    • None
    • 5

    Description

      Problem: Rendering to the GL context directly is not working.

      Error message: "QOpenGLBuffer::map(): pending implementation"

      Proposed resolution: Need to render in "raw" OpenGL inside a beforeRendering() handler.

      Example.qml
      import QtQuick 2.0
      import Qt3D 1.0
      import Qt3D.Shapes 1.0
      
      Viewport {
          width: parent.width; height: parent.height
          renderMode: "DirectRender"
          fillColor: "darkblue"
          objectName: "cube viewport"
      
          Cube {
              scale: 1.5
              objectName: "cube"
      
              transform: Rotation3D {
                  angle: 45
                  axis: Qt.vector3d(1,1,1)
              }
      
              effect: Effect {
                  color: "#aaca00"
                  decal: true
              }
          }
      }
      

      Attachments

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

        Activity

          People

            sergey.dubitskiy Sergey (closed Nokia identity) (Inactive)
            minshin Minjung Shin (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes