Details
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