4 property real _pan: 0.001
5 property real _tilt: 0.001
6 property real _zoom: 1500
7 property alias cameraOne: cameraPerspectiveOne
8 property alias cameraOneRotation: cameraPerspectiveOne.eulerRotation
9 property alias cameraTwoPosition: cameraPerspectiveTwo.position
10 property real lightsBrightness: 0.3
11 property real viewDistance: 50000
13 function resetCamera() {
14 camNode.position = Qt.vector3d(0, 0, 0);
15 camNode.eulerRotation = Qt.vector3d(90, 0, 0);
17 cameraPerspectiveTwo.position = Qt.vector3d(_zoom * Math.sin(_tilt) * Math.cos(_pan), _zoom * Math.cos(_tilt), _zoom * Math.sin(_tilt) * Math.sin(_pan));
18 cameraPerspectiveTwo.eulerRotation = Qt.vector3d(0, 0, 0);
20 cameraPerspectiveOne.position = Qt.vector3d(0, 0, 0);
21 cameraPerspectiveOne.eulerRotation = Qt.vector3d(-90, 0, 0);
25 brightness: lightsBrightness
35 lockShadowmapTexels: true
39 shadowMapFar: viewDistance
40 shadowMapQuality: Light.ShadowMapQualityHigh
41 softShadowQuality: Light.PCF16
45 brightness: lightsBrightness
50 brightness: lightsBrightness
55 brightness: lightsBrightness
60 brightness: lightsBrightness
72 id: cameraPerspectiveTwo
75 x: _zoom * Math.sin(_tilt) * Math.cos(_pan)
76 y: _zoom * Math.cos(_tilt)
77 z: _zoom * Math.sin(_tilt) * Math.sin(_pan)
81 id: cameraPerspectiveOne
85 frustumCullingEnabled: true