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

moon.qml: QGLShader::link: "No errors." error on powerfulwin7

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • Qt3D TP1
    • 4.7.1
    • Qt3D
    • None
    • Qt 4.7.1 VS2008 WinXP and Win7

    Description

      I'm playing with the moon.qml example QML script.

      I included a 'Light' property.
      Code: see "moon.qml" and "moon-texture.jpg" in the attachment.

      Result: very good on my WinXP PC (see "light.works.GIF")

      But bad on a new and powerful Win7-PC (see "light.doesnt.work.win7.GIF")

      Output: Several messages like:
      "QPainter::begin: Paint device returned engine == 0, type: 1"
      "QGLShader::link: "No errors.""

      Graphic card: see "graphic.card.1.GIF" and "graphic.card.2.png".

      What could be the problem here and how could I avoid it?
      Do you have a hint for me?

      Ciao,
      George

      P.S.: all mentioned files are in the ZIP-archive "shader.problem.on.win7.ZIP" too.

      my moon.qml:
      -------------------------------------------------

      import Qt 4.7
      import Qt3D 1.0
      import Qt3D.Shapes 1.0
      
      Viewport
      {
         width: 640; height: 480
      
         light: Light
         {
             //direction: Qt.vector3d(1, 0, 2)
         position: Qt.vector3d(111, 111, 111);
         constantAttenuation: 0.3;
         spotExponent: 99;
         spotAngle: 99;
         ambientColor:"red"
         diffuseColor:"white"
         specularColor:"white"
         }
      
         Sphere
         {
             scale: 1.5
             levelOfDetail: 6
             axis: Qt.YAxis
      
             effect: Effect
             {
                 texture: "moon-texture.jpg"
             }
         }
      }
      

      details: see discussion on
      http://lists.qt.nokia.com/pipermail/qt-3d/2011-January/000319.html
      http://lists.qt.nokia.com/pipermail/qt-3d/2011-February/000338.html

      Attachments

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

        Activity

          People

            dpope Daniel Pope (closed Nokia identity) (Inactive)
            privet56@hotmail.com privet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes