Doc: Add the Optimal 3D Scene to examples

...and link to Creating Optimized 3D Scenes.

Fixes: QDS-3020
Change-Id: I666afca460e9e0e3afb2b612780f486a094cb45c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Johanna Vanhatapio
2020-10-30 12:32:34 +02:00
parent 7ac879a133
commit 8f69e3d317
120 changed files with 1468 additions and 1 deletions

View File

@@ -44,7 +44,7 @@
\section1 The Optimal 3D Scene Example
The Optimal 3D Scene example features four versions of the same kitchen
The \l {Optimal 3D Scene} example features four versions of the same kitchen
scene that have been created using different strategies: High, Low, Combined,
and Vertex Color. The High Scene includes a significantly higher number of
objects compared to the other versions of the scene. The Low, Combined and

View File

@@ -0,0 +1,60 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** 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 https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** BSD License Usage
** Alternatively, you may use this file under the terms of the BSD license
** as follows:
**
** "Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are
** met:
** * Redistributions of source code must retain the above copyright
** notice, this list of conditions and the following disclaimer.
** * Redistributions in binary form must reproduce the above copyright
** notice, this list of conditions and the following disclaimer in
** the documentation and/or other materials provided with the
** distribution.
** * Neither the name of The Qt Company Ltd nor the names of its
** contributors may be used to endorse or promote products derived
** from this software without specific prior written permission.
**
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.12
import Optimal3DScene 1.0
Item {
width: Constants.width
height: Constants.height
Screen01 {
}
}

View File

@@ -0,0 +1,46 @@
/* File generated by Qt Creator */
import QmlProject 1.1
Project {
mainFile: "Optimal3DScene.qml"
/* Include .qml, .js, and image files from current directory and subdirectories */
QmlFiles {
directory: "."
}
JavaScriptFiles {
directory: "."
}
ImageFiles {
directory: "."
}
Files {
filter: "*.conf"
files: ["qtquickcontrols2.conf"]
}
Files {
filter: "qmldir"
directory: "."
}
Files {
filter: "*.ttf;*.otf"
}
Environment {
QT_QUICK_CONTROLS_CONF: "qtquickcontrols2.conf"
QT_AUTO_SCREEN_SCALE_FACTOR: "1"
QMLSCENE_CORE_PROFILE: "true"
}
/* List of plugin directories passed to QML runtime */
importPaths: [ "imports", "asset_imports" ]
/* Required for deployment */
targetDirectory: "/opt/Optimal3DScene"
}

View File

@@ -0,0 +1,191 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** 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 https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** BSD License Usage
** Alternatively, you may use this file under the terms of the BSD license
** as follows:
**
** "Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are
** met:
** * Redistributions of source code must retain the above copyright
** notice, this list of conditions and the following disclaimer.
** * Redistributions in binary form must reproduce the above copyright
** notice, this list of conditions and the following disclaimer in
** the documentation and/or other materials provided with the
** distribution.
** * Neither the name of The Qt Company Ltd nor the names of its
** contributors may be used to endorse or promote products derived
** from this software without specific prior written permission.
**
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.12
import QtQuick3D 1.15
import Optimal3DScene 1.0
import Quick3DAssets.High 1.0
import Quick3DAssets.Low 1.0
import Quick3DAssets.Merged 1.0
import QtQuick 2.15
import Quick3DAssets.VertexColor 1.0
Rectangle {
width: Constants.width
height: Constants.height
color: Constants.backgroundColor
property alias high: high
View3D {
id: view3D
x: 0
y: 0
width: 1280
height: 720
SceneEnvironment {
id: sceneEnvironment
antialiasingQuality: SceneEnvironment.High
antialiasingMode: SceneEnvironment.MSAA
}
Node {
id: scenelow
PerspectiveCamera {
id: camera
x: 0
y: 501.999
z: 953.07697
}
Low {
id: low
eulerRotation.z: 0.00001
eulerRotation.y: -135
eulerRotation.x: 0.00002
}
PointLight {
id: lightPoint
x: 0
y: 888.433
castsShadow: true
brightness: 400
quadraticFade: 0.01318
z: -0.00007
}
}
Node {
id: scenehigh
PerspectiveCamera {
id: camera1
x: 0
y: 501.999
z: 953.07697
}
PointLight {
id: lightPoint1
x: 0
y: 888.433
brightness: 400
castsShadow: true
z: -0.00007
quadraticFade: 0.01318
}
High {
id: high
eulerRotation.y: -135
}
}
Node {
id: scenecombined
PerspectiveCamera {
id: camera2
x: 0
y: 501.999
z: 953.07697
}
PointLight {
id: lightPoint2
x: 0
y: 888.433
brightness: 350
castsShadow: true
z: -0.00007
quadraticFade: 0.01318
}
Merged {
id: merged
eulerRotation.y: -135
}
}
Node {
id: scenevertexcolor
PerspectiveCamera {
id: camera3
x: 0
y: 501.999
z: 953.07697
}
PointLight {
id: lightPoint3
x: 0
y: 888.433
brightness: 350
castsShadow: true
z: -0.00007
quadraticFade: 0.01318
}
VertexColor {
id: vertexColor
eulerRotation.y: -135
}
}
environment: sceneEnvironment
}
}
/*##^##
Designer {
D{i:0;active3dScene:10;formeditorZoom:0.6600000262260437}D{i:3;invisible:true}D{i:7;invisible:true}
D{i:11;invisible:true}
}
##^##*/

View File

@@ -0,0 +1,3 @@
visibleInNavigator: true
canBeDroppedInFormEditor: false
canBeDroppedInView3D: true

View File

@@ -0,0 +1,496 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** 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 https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** BSD License Usage
** Alternatively, you may use this file under the terms of the BSD license
** as follows:
**
** "Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are
** met:
** * Redistributions of source code must retain the above copyright
** notice, this list of conditions and the following disclaimer.
** * Redistributions in binary form must reproduce the above copyright
** notice, this list of conditions and the following disclaimer in
** the documentation and/or other materials provided with the
** distribution.
** * Neither the name of The Qt Company Ltd nor the names of its
** contributors may be used to endorse or promote products derived
** from this software without specific prior written permission.
**
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import QtQuick3D 1.15
Node {
id: rootNode
Model {
id: floor
eulerRotation.x: -90
scale.x: 800
scale.y: 800
scale.z: 800
source: "meshes/floor.mesh"
DefaultMaterial {
id: floor_material
diffuseColor: "#ff353b2a"
}
materials: [
floor_material
]
}
Model {
id: ovenLatch
x: -500
y: 100
z: -350
eulerRotation.x: -44.54277
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/ovenLatch.mesh"
eulerRotation.z: -90
eulerRotation.y: 90
DefaultMaterial {
id: induction_material
diffuseColor: "#ff040404"
}
DefaultMaterial {
id: oven_material
diffuseColor: "#ffa3a3a3"
}
materials: [
induction_material,
oven_material
]
}
Model {
id: ovenHigh
x: -600
z: -300
eulerRotation.x: -90
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/ovenHigh.mesh"
materials: [
oven_material,
induction_material
]
}
Model {
id: tapHigh
x: -679.799
y: 420
z: 100
eulerRotation.x: -90
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/tapHigh.mesh"
materials: [
oven_material
]
}
Model {
id: fridgeDoor
x: 499
y: 450.82
z: 500
eulerRotation.x: -89.98022
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/fridgeDoor.mesh"
eulerRotation.z: -160.70996
eulerRotation.y: 17.65012
materials: [
oven_material
]
}
Model {
id: fridgeHigh
x: 300
y: 0.82016
z: 600
eulerRotation.x: -90
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/fridgeHigh.mesh"
materials: [
oven_material
]
}
Model {
id: plateHigh
y: 417.734
z: 600
eulerRotation.x: -90
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/plateHigh.mesh"
DefaultMaterial {
id: plate_material
diffuseColor: "#ff8fa365"
}
materials: [
plate_material
]
}
Model {
id: plateHigh_001
x: -200
y: 417.734
z: 600
eulerRotation.x: -90
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/plateHigh_001.mesh"
materials: [
plate_material
]
}
Model {
id: plateHigh_002
y: 424.176
z: 600
eulerRotation.x: -90
eulerRotation.y: -19.7049
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/plateHigh_002.mesh"
materials: [
plate_material
]
}
Model {
id: roofLightHigh
x: -0.000179373
y: 1200.82
z: -1.67638e-06
eulerRotation.x: -90
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/roofLightHigh.mesh"
DefaultMaterial {
id: lamp_material
diffuseColor: "#ff0c0c0c"
}
materials: [
lamp_material
]
}
Model {
id: roofHighpoly
y: 1200
z: -0.999999
eulerRotation.x: -90
scale.x: 800
scale.y: 800
scale.z: 800
source: "meshes/roofHighpoly.mesh"
DefaultMaterial {
id: roof_material
diffuseColor: "#ff747474"
}
materials: [
roof_material
]
}
Model {
id: sinkCabinHigh_002
x: -500
y: 250
z: -99
eulerRotation.x: -89.97202
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/sinkCabinHigh_002.mesh"
eulerRotation.z: -18.43495
eulerRotation.y: 45
DefaultMaterial {
id: cabinDoor_material
diffuseColor: "#ff505050"
}
materials: [
cabinDoor_material
]
}
Model {
id: sinkCabinHigh_001
x: -500
y: 250
z: 299
eulerRotation.x: -90
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/sinkCabinHigh_001.mesh"
eulerRotation.z: 0
eulerRotation.y: 81.49729
materials: [
cabinDoor_material
]
}
Node {
id: tileHolderHigh
x: 200
y: 430
z: 700
eulerRotation.x: -90
scale.x: 100
scale.y: 100
scale.z: 100
Model {
id: kitchenTile_005
x: -9
y: 0.299997
z: 9.53674e-07
eulerRotation.z: -90
source: "meshes/kitchenTile_005.mesh"
DefaultMaterial {
id: tiles_material
diffuseColor: "#f6f4f4"
}
materials: [
tiles_material
]
}
Model {
id: kitchenTile_004
x: -9
y: 0.299997
z: 1.1
eulerRotation.z: -90
source: "meshes/kitchenTile_004.mesh"
materials: [
tiles_material
]
}
Model {
id: kitchenTile_002
x: -9
y: 0.299997
z: 2.2
eulerRotation.z: -90
source: "meshes/kitchenTile_002.mesh"
materials: [
tiles_material
]
}
Model {
id: kitchenTile_003
y: -9.53674e-07
z: 2.2
source: "meshes/kitchenTile_003.mesh"
materials: [
tiles_material
]
}
Model {
id: kitchenTile_001
y: -9.53674e-07
z: 1.1
source: "meshes/kitchenTile_001.mesh"
materials: [
tiles_material
]
}
Model {
id: kitchenTile
source: "meshes/kitchenTile.mesh"
materials: [
tiles_material
]
}
}
Model {
id: sinkCabinHigh
x: -600
z: 300
eulerRotation.x: -90
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/sinkCabinHigh.mesh"
DefaultMaterial {
id: sink_material
diffuseColor: "#ff2d2d2d"
}
materials: [
sink_material,
oven_material
]
}
Model {
id: cornerHigh
x: -600
z: 600
eulerRotation.x: -90
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/cornerHigh.mesh"
DefaultMaterial {
id: cabinTop_material
diffuseColor: "#ff121212"
}
materials: [
cabinTop_material,
oven_material
]
}
Model {
id: cabinsLeftDoor3
x: -399
y: 250
z: 500
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/cabinsLeftDoor3.mesh"
eulerRotation.x: -89.05581
eulerRotation.z: 179.99979
eulerRotation.y: -135.19951
materials: [
cabinDoor_material
]
}
Model {
id: cabinsLeftDoor2
x: -199
y: 250
z: 500
eulerRotation.x: -89.98022
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/cabinsLeftDoor2.mesh"
eulerRotation.z: 53.1301
eulerRotation.y: -21.80141
materials: [
cabinDoor_material
]
}
Model {
id: cabinsLeftDoor1
x: 0.999999
y: 250
z: 500
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/cabinsLeftDoor1.mesh"
eulerRotation.x: -88.52515
eulerRotation.z: -108.53853
eulerRotation.y: 173.47327
materials: [
cabinDoor_material
]
}
Model {
id: cabinsLeftHigh
x: -100
y: 240.447
z: 580.588
eulerRotation.x: -90
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/cabinsLeftHigh.mesh"
materials: [
oven_material,
cabinTop_material
]
}
Model {
id: roomBaseHigh
eulerRotation.x: -90
scale.x: 800
scale.y: 800
scale.z: 800
source: "meshes/roomBaseHigh.mesh"
DefaultMaterial {
id: wall_material
diffuseColor: "#ff7f85a3"
}
materials: [
wall_material
]
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 662 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1,2 @@
module Quick3DAssets.High
High 1.0 High.qml

View File

@@ -0,0 +1,3 @@
visibleInNavigator: true
canBeDroppedInFormEditor: false
canBeDroppedInView3D: true

View File

@@ -0,0 +1,298 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** 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 https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** BSD License Usage
** Alternatively, you may use this file under the terms of the BSD license
** as follows:
**
** "Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are
** met:
** * Redistributions of source code must retain the above copyright
** notice, this list of conditions and the following disclaimer.
** * Redistributions in binary form must reproduce the above copyright
** notice, this list of conditions and the following disclaimer in
** the documentation and/or other materials provided with the
** distribution.
** * Neither the name of The Qt Company Ltd nor the names of its
** contributors may be used to endorse or promote products derived
** from this software without specific prior written permission.
**
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import QtQuick3D 1.15
Node {
id: rootNode
Model {
id: ovenLow
x: -600
z: -300
eulerRotation.x: -90
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/ovenLow.mesh"
DefaultMaterial {
id: oven_material
diffuseColor: "#ffa3a3a3"
}
DefaultMaterial {
id: induction_material
diffuseColor: "#ff040404"
}
materials: [
oven_material,
induction_material
]
}
Model {
id: tapLow
x: -679.799
y: 420
z: 100
eulerRotation.x: -90
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/tapLow.mesh"
materials: [
oven_material
]
}
Model {
id: plateLow_002
y: 424.176
z: 600
eulerRotation.x: -90
eulerRotation.y: -19.7049
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/plateLow_002.mesh"
DefaultMaterial {
id: plate_material
diffuseColor: "#ff8fa365"
}
materials: [
plate_material
]
}
Model {
id: plateLow_001
x: -200
y: 417.734
z: 600
eulerRotation.x: -90
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/plateLow_001.mesh"
materials: [
plate_material
]
}
Model {
id: plateLow
y: 417.734
z: 600
eulerRotation.x: -90
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/plateLow.mesh"
materials: [
plate_material
]
}
Model {
id: fridgeLow
x: 300
y: 0.82016
z: 600
eulerRotation.x: -90
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/fridgeLow.mesh"
materials: [
oven_material
]
}
Model {
id: roofLightLow
x: -0.000179373
y: 1200.82
z: -1.67638e-06
eulerRotation.x: -90
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/roofLightLow.mesh"
DefaultMaterial {
id: lamp_material
diffuseColor: "#ff0c0c0c"
}
materials: [
lamp_material
]
}
Model {
id: kitchenTilesLow
x: 200
y: 430
z: 700
eulerRotation.x: -90
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/kitchenTilesLow.mesh"
DefaultMaterial {
id: tiles_material
diffuseColor: "#ffcccccc"
}
materials: [
tiles_material
]
}
Model {
id: sinkCabinLow
x: -600
z: 300
eulerRotation.x: -90
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/sinkCabinLow.mesh"
DefaultMaterial {
id: sink_material
diffuseColor: "#ff2d2d2d"
}
DefaultMaterial {
id: cabinDoor_material
diffuseColor: "#ff505050"
}
materials: [
sink_material,
oven_material,
cabinDoor_material
]
}
Model {
id: corner
x: -600
z: 600
eulerRotation.x: -90
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/corner.mesh"
DefaultMaterial {
id: cabinTop_material
diffuseColor: "#ff121212"
}
materials: [
cabinTop_material,
oven_material
]
}
Model {
id: roomBaseLow
eulerRotation.x: -90
scale.x: 800
scale.y: 800
scale.z: 800
source: "meshes/roomBaseLow.mesh"
DefaultMaterial {
id: floor_material
diffuseColor: "#ff353b2a"
}
DefaultMaterial {
id: wall_material
diffuseColor: "#ff7f85a3"
}
DefaultMaterial {
id: roof_material
diffuseColor: "#ff747474"
}
materials: [
floor_material,
wall_material,
roof_material
]
}
Model {
id: cabinsLeftLow
x: -100
y: 238.4
z: 553.885
eulerRotation.x: -90
scale.x: 100
scale.y: 100
scale.z: 100
source: "meshes/cabinsLeftLow.mesh"
materials: [
oven_material,
cabinDoor_material,
cabinTop_material
]
}
}
/*##^##
Designer {
D{i:0;active3dScene:0}
}
##^##*/

Binary file not shown.

After

Width:  |  Height:  |  Size: 640 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -0,0 +1,2 @@
module Quick3DAssets.Low
Low 1.0 Low.qml

View File

@@ -0,0 +1,3 @@
visibleInNavigator: true
canBeDroppedInFormEditor: false
canBeDroppedInView3D: true

View File

@@ -0,0 +1,85 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** 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 https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** BSD License Usage
** Alternatively, you may use this file under the terms of the BSD license
** as follows:
**
** "Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are
** met:
** * Redistributions of source code must retain the above copyright
** notice, this list of conditions and the following disclaimer.
** * Redistributions in binary form must reproduce the above copyright
** notice, this list of conditions and the following disclaimer in
** the documentation and/or other materials provided with the
** distribution.
** * Neither the name of The Qt Company Ltd nor the names of its
** contributors may be used to endorse or promote products derived
** from this software without specific prior written permission.
**
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import QtQuick3D 1.15
Node {
id: rootNode
Model {
id: roomBaseLow_002
eulerRotation.x: -90
scale.x: 800
scale.y: 800
scale.z: 800
source: "meshes/roomBaseLow_002.mesh"
DefaultMaterial {
id: colormap_material
diffuseMap: element
diffuseColor: "#ffffff"
Texture {
id: element
source: "colormap.png"
}
}
materials: [
colormap_material
]
}
}
/*##^##
Designer {
D{i:0;active3dScene:0}
}
##^##*/

Binary file not shown.

After

Width:  |  Height:  |  Size: 548 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View File

@@ -0,0 +1,2 @@
module Quick3DAssets.Merged
Merged 1.0 Merged.qml

View File

@@ -0,0 +1,3 @@
visibleInNavigator: true
canBeDroppedInFormEditor: false
canBeDroppedInView3D: true

View File

@@ -0,0 +1,88 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** 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 https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** BSD License Usage
** Alternatively, you may use this file under the terms of the BSD license
** as follows:
**
** "Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are
** met:
** * Redistributions of source code must retain the above copyright
** notice, this list of conditions and the following disclaimer.
** * Redistributions in binary form must reproduce the above copyright
** notice, this list of conditions and the following disclaimer in
** the documentation and/or other materials provided with the
** distribution.
** * Neither the name of The Qt Company Ltd nor the names of its
** contributors may be used to endorse or promote products derived
** from this software without specific prior written permission.
**
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import QtQuick3D 1.15
Node {
id: rootNode
Model {
id: roomBaseLow_005
eulerRotation.x: -90
scale.x: 800
scale.y: 800
scale.z: 800
source: "meshes/roomBaseLow_005.mesh"
DefaultMaterial {
id: vert_material
diffuseColor: "#ffa3a3a3"
}
materials: [
vert_material
]
}
PointLight {
id: point
x: 2355.4
y: -1009.92
z: 2002.04
eulerRotation.x: 90
quadraticFade: 3.2e-07
}
}
/*##^##
Designer {
D{i:0;active3dScene:0}
}
##^##*/

Binary file not shown.

After

Width:  |  Height:  |  Size: 490 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Some files were not shown because too many files have changed in this diff Show More