summaryrefslogtreecommitdiffstats
path: root/examples/rollerball/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/rollerball/main.qml')
-rw-r--r--examples/rollerball/main.qml165
1 files changed, 0 insertions, 165 deletions
diff --git a/examples/rollerball/main.qml b/examples/rollerball/main.qml
deleted file mode 100644
index 85ec2c89f..000000000
--- a/examples/rollerball/main.qml
+++ /dev/null
@@ -1,165 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: http://www.qt-project.org/legal
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import Qt3D 2.0
-import Qt3D.Render 2.0
-
-Entity {
- id: root
- objectName: "root"
-
- // Use the renderer configuration specified in ForwardRenderer.qml
- // and render from the mainCamera
- components: [
- FrameGraph {
- activeFrameGraph: ForwardRenderer {
- id: renderer
- camera: mainCamera
- clearColor: "black"
- }
- }
- ]
-
- BasicCamera {
- id: mainCamera
- position: Qt.vector3d( 0.0, 20.0, 70.0 )
- }
-
- Configuration {
- controlledCamera: mainCamera
- }
-
- AdsEffect {
- id: adsEffect
- }
-
- PlaneEntity {
- id: floor
- scale: 50
- material: AdsMaterial {
- effect: adsEffect
- ambient: Qt.rgba( 1.0, 1.0, 1.0, 1.0 )
- diffuse: Qt.rgba( 1.0, 1.0, 1.0, 1.0 )
- }
- }
-
- AdsMaterial {
- id: wallMaterial
- effect: adsEffect
- ambient: Qt.rgba( 0.1, 0.0, 0.1, 1.0 )
- diffuse: Qt.rgba( 1.0, 0.0, 1.0, 1.0 )
- }
-
- BoxEntity {
- id: eastWall
- width: 3
- height: 4
- depth: floor.scale + 2 * width
- x: (floor.scale + width) / 2.0
- y: height / 2
- material: wallMaterial
- }
-
- BoxEntity {
- id: westWall
- width: 3
- height: 4
- depth: floor.scale + 2 * width
- x: -(floor.scale + width) / 2.0
- y: height / 2
- material: wallMaterial
- }
-
- BoxEntity {
- id: northWall
- width: 3
- height: 4
- depth: floor.scale
- z: (floor.scale + width) / 2.0
- y: height / 2
- angle: 90
- material: wallMaterial
- }
-
- BoxEntity {
- id: southWall
- width: 3
- height: 4
- depth: floor.scale
- z: -(floor.scale + width) / 2.0
- y: height / 2
- angle: 90
- material: wallMaterial
- }
-
- AdsMaterial {
- id: redMaterial
- effect: adsEffect
- ambient: Qt.rgba( 0.2, 0.0, 0.0, 1.0 )
- diffuse: Qt.rgba( 0.8, 0.0, 0.0, 1.0 )
- }
-
- AdsMaterial {
- id: greenMaterial
- effect: adsEffect
- ambient: Qt.rgba( 0.0, 0.2, 0.0, 1.0 )
- diffuse: Qt.rgba( 0.0, 0.8, 0.0, 1.0 )
- }
-
- AdsMaterial {
- id: blueMaterial
- effect: adsEffect
- ambient: Qt.rgba( 0.0, 0.0, 0.2, 1.0 )
- diffuse: Qt.rgba( 0.0, 0.0, 0.8, 1.0 )
- }
-
- BallEntity {
- id: redBall
- material: redMaterial
- x: -5
- }
-
- BallEntity {
- id: greenBall
- material: greenMaterial
- }
-
- BallEntity {
- id: blueBall
- material: blueMaterial
- x: 5
- }
-}