Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

No renderer settings component found



  • I would like to create some 3D scene. My code is rather simple:

    ApplicationWindow
    {
        id: mainWindow
    
        property rect filmRect: loggingView.getFilmRect()
        property rect mainRect: loggingView.getMainRect()
        property bool showVideo: loggingView.getIsVideoToShow()
    
        visible: true
        x: 0
        y: 0
        width: mainRect.width
        height: mainRect.height + filmRect.height
        flags: Qt.FramelessWindowHint
    
    
        Scene3D {
            id: scene3d
            anchors.fill: parent
            anchors.margins: 10
            focus: true
            aspects: ["render", "input", "logic"]
            cameraAspectRatioMode: Scene3D.AutomaticAspectRatio
    
            // PLANET
            Entity {
                id: planetEntity
    
                Transform {
                    id: planetTransform
                    property real userAngle: 0.0
                    matrix: {
                        var m = Qt.matrix4x4();
                        m.rotate(20, Qt.vector3d(1, 0, 0));
                        m.rotate(userAngle, Qt.vector3d(0, 1, 0));
                        m.scale(1.4); //1.2 * globalScale);
                        return m;
                    }
                }
    
                Mesh {
                    id: planetMesh
                    source: "qrc:/Models/Planeta.obj"
                }
    
                NormalDiffuseMapMaterial {
                    id: planetMaterial
                    diffuse: TextureLoader { source: "qrc:/Tekstures/Planeta_01_Albedo.jpg" }
                    normal: TextureLoader { source: "qrc:/Tekstures/Planeta_01_Normal.jpg" }
                    shininess: 1.0
                }
    
                 components: [planetMesh, planetMaterial, planetTransform ]
            }
        }
    }
    
    

    but after running I have nothing but white window and an error "No renderer settings component found" appears.
    Where am I wrong?

    thank in advance


Log in to reply