Important: Please read the Qt Code of Conduct -

How can I show in the screen 3D Render

  • I'm new to Qt 3D, I want to render a 3D model (OBJ file) in the screen I read in Qt Documentation that I can use Viewport and Mesh to load the file. But I did not find how to send to screen my current Mesh.

    Bellow a sample of my code. Let me know your suggestions.


    import QtQuick 2.7 as QQ2
    //import QtQuick.Controls 2.0
    //import QtQuick.Layouts 1.3
    import Qt3D.Core 2.0
    import Qt3D.Render 2.0
    import Qt3D.Input 2.0
    //import Qt3D.Logic 2.0
    import Qt3D.Extras 2.0
    //import Qt3D.Animation 2.0
    Viewport {
        id: root
            id: mesh
            source: "braz.obj"

Log in to reply