Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. No renderer settings component found
Qt 6.11 is out! See what's new in the release blog

No renderer settings component found

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 968 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Milosz
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved