3D Models and Hotspots



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.