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. 3D Models and Hotspots
Forum Updated to NodeBB v4.3 + New Features

3D Models and Hotspots

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 345 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.
  • 1 Offline
    1 Offline
    13057
    wrote on last edited by
    #1

    Hi guys. I'm new to QML and having a few issues that I hope you guys can help me with. I have a 3D model in a .dae file that I am trying to display. I can display it in Qt 5.4 by:

    import QtQuick 2.0
    import Qt3D 2.0

    Rectangle {
    width: 1140
    height: 700
    color: "white"

    Viewport{
    id: viewport

    anchors.fill: parent
    camera: Camera {
    eye: Qt.vector3d (400.0, 100.0, -400.0)
    fieldOfView: 90
    }

    Item3D{
    id: satellite
    mesh: Mesh{source: "ow.dae"}
    position: Qt.vector3d(0, -0, 0)
    }

    light: Light{
    position: Qt.vector3d(1000, -1000, -1000)
    }}}

    I have tried to display the same model in Qt 5.7 but all my attempts have been unsuccessful. Would any of you guys happen to know how to do it?

    Also, I would like to put hotspots on the model, that display information about a particular point on the model. However the only text I can find online, mentioning hotspots, is outdated. Is it possible to put hotspots on a model and if so, how can it be done in either 5.4 or 5.7?

    Thanks for your help.

    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