summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/qgltf/Scene.qml
blob: 65bf9af1af0545de4fe13f53e57d4c6277d33391 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright (C) 2016 The Qt Company Ltd and/or its subsidiary(-ies).
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

import Qt3D.Core 2.0
import Qt3D.Render 2.0

Entity {
    id: root

    Entity {
        components: [
            Transform {
                translation: Qt.vector3d(-30, 0, 0)
                rotation: fromEulerAngles(-90, 180, 0)
            },
            SceneLoader {
                source: "qrc:/models/test_scene.qgltf"
            }
        ]
    }

    Entity {
        components: [
            SceneLoader {
                source: "qrc:/models/toyplane.qgltf"
            }
        ]
    }

    Entity {
        components: [
            Transform {
                translation: Qt.vector3d(0, -20, 0)
            },
            SceneLoader {
                source: "qrc:/models/trefoil.qgltf"
            }
        ]
    }
}