aboutsummaryrefslogtreecommitdiffstats
path: root/apps/com.luxoft.vehicle/panels/Vehicle3DPanel.qml
diff options
context:
space:
mode:
authorGrigorii Zimin <gzimin@luxoft.com>2019-04-12 16:37:34 +0300
committerGrigorii Zimin <gzimin@luxoft.com>2019-04-22 06:19:20 +0000
commit7175428236b75f30825b879206fa5fa1ae0cc9e9 (patch)
tree6545e5fd1697f8fc5bac9d3823474aa166fd3598 /apps/com.luxoft.vehicle/panels/Vehicle3DPanel.qml
parent3c6c6f39e72e1eb11f005eebbd700dd311e44a90 (diff)
[vehicle] optimize it a little
-add objects with reduced polygons amount -introduce binary objects -decrease unnecessary loops animation -return missed 3d part Task-number: AUTOSUITE-588 Change-Id: I5745efeebd211c37be2f4d7106a15dd2fdc38c34 Reviewed-by: Egor Nemtsev <enemtsev@luxoft.com>
Diffstat (limited to 'apps/com.luxoft.vehicle/panels/Vehicle3DPanel.qml')
-rw-r--r--apps/com.luxoft.vehicle/panels/Vehicle3DPanel.qml30
1 files changed, 18 insertions, 12 deletions
diff --git a/apps/com.luxoft.vehicle/panels/Vehicle3DPanel.qml b/apps/com.luxoft.vehicle/panels/Vehicle3DPanel.qml
index e4a93488..9c767719 100644
--- a/apps/com.luxoft.vehicle/panels/Vehicle3DPanel.qml
+++ b/apps/com.luxoft.vehicle/panels/Vehicle3DPanel.qml
@@ -50,7 +50,10 @@ Item {
property real cameraPanAngleOutput: 0.0
property real cameraPanAngleInput: 0.0
- property string modelQuality
+ property string modelVersion
+
+ property int scene3DHeight
+ property int scene3DWidth
//ToDo: This is a part of a work around for the Scene3D windows&macOS bug
property real roofOpenProgress: 0.0
@@ -90,7 +93,10 @@ Item {
}
Scene3D {
- anchors.fill: parent
+ height: root.scene3DHeight
+ width: root.scene3DWidth
+ anchors.verticalCenterOffset: Sizes.dp(80)
+ anchors.centerIn: parent
aspects: ["input", "logic"]
focus: false
@@ -114,11 +120,11 @@ Item {
Camera {
id: camera
projectionType: CameraLens.PerspectiveProjection
- fieldOfView: 25
+ fieldOfView: 15
nearPlane: 0.1
farPlane: 100.0
position: Qt.vector3d(0.0, 5.0, 18.0)
- viewCenter: Qt.vector3d(0.0, 1.6, 0.0)
+ viewCenter: Qt.vector3d(0.0, 0.6, 0.0)
upVector: Qt.vector3d(0.0, 1.0, 0.0)
}
@@ -182,37 +188,37 @@ Item {
Shadow {}
AxisFront {
- quality: root.modelQuality
+ version: root.modelVersion
}
AxisRear {
- quality: root.modelQuality
+ version: root.modelVersion
}
Seats {
- quality: root.modelQuality
+ version: root.modelVersion
}
RearDoor {
id: trunk
open: root.trunkOpen
- quality: root.modelQuality
+ version: root.modelVersion
}
LeftDoor {
id: leftDoor
open: root.leftDoorOpen
- quality: root.modelQuality
+ version: root.modelVersion
}
RightDoor {
id: rightDoor
open: root.rightDoorOpen
- quality: root.modelQuality
+ version: root.modelVersion
}
Roof {
id: roof
openProgress: root.roofOpenProgress
- quality: root.modelQuality
+ version: root.modelVersion
}
Body {
id: body
- quality: root.modelQuality
+ version: root.modelVersion
}
}
}