Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Behind the Scenes
  3. Qt.io webservices
  4. How to access sub-object of an .obj file in Qt3D?
Forum Updated to NodeBB v4.3 + New Features

How to access sub-object of an .obj file in Qt3D?

Scheduled Pinned Locked Moved Qt.io webservices
1 Posts 1 Posters 1.2k Views 1 Watching
  • 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.
  • A Offline
    A Offline
    Ansjj
    wrote on last edited by
    #1

    I'm working on a 3D viewer whose job is to view a human face model and change its attribute e.g. nose length. I'm using Qt3D QML to import and view 3D face. But I want a way to interact with its vertices or some sort of way to modify this mesh on sub object level. I've done some research on Qt3D qml but could find any appropriate qml element. If its not possible with QML then I want some help that how can I do this in Qt3D C++ API.
    Code to import face.obj
    @
    import QtQuick 2.0
    import Qt3D 2.0
    import Qt3D.Shapes 2.0

    Rectangle{
    width: 1100/2
    height: 800/2
    color:'#a9a9a9'

    Viewport {
        width: 1100/2
        height: 800/2
    
    
        Item3D {
            scale:-0.1
            position: Qt.vector3d(2,1,-1)
            mesh:  Mesh {
                id: face
                source: "face.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