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. How can I show in the screen 3D Render
Forum Updated to NodeBB v4.3 + New Features

How can I show in the screen 3D Render

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 316 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
    mxrm
    wrote on last edited by
    #1

    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.

    Thanks!

    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
    
        Mesh{
            id: mesh
            source: "braz.obj"
        }
    
    }
    
    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