-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #593 from Kicer86/_360_viewer
360⁰ viewer
- Loading branch information
Showing
16 changed files
with
205 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
https://github.com/mymike00/photosphere2-ut | ||
https://github.com/mymike00/qphotosphere | ||
https://github.com/mymike00/photosphere-ut | ||
https://github.com/lazarus-pkgs/panini | ||
https://github.com/paoletto/qphotosphere | ||
https://forum.shotcut.org/t/plugins-for-360-video/12396 | ||
https://wiki.panotools.org/Panorama_Viewers | ||
https://legacy-www.math.harvard.edu/archive/21a_spring_06/exhibits/panoramas/index.html | ||
https://github.com/cazitouni/QgisGLViewer | ||
https://stackoverflow.com/questions/56293314/how-can-i-load-a-qpaintedtextureimage-into-a-qtexturematerial |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
src/gui/desktop/quick_items/Components/EquirectangularView.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
|
||
import QtQuick | ||
import QtQuick3D | ||
import QtQuick3D.Helpers | ||
|
||
View3D { | ||
id: viewport | ||
anchors.fill: parent | ||
|
||
property alias source: sourceTexture.source | ||
|
||
property real _scaleF: 1.0 | ||
|
||
environment: SceneEnvironment { | ||
antialiasingMode: SceneEnvironment.MSAA | ||
antialiasingQuality: SceneEnvironment.VeryHigh | ||
lightProbe: Texture { | ||
id: sourceTexture | ||
} | ||
backgroundMode: SceneEnvironment.SkyBox | ||
} | ||
|
||
Node { | ||
id: originNode | ||
PerspectiveCamera { | ||
id: cameraNode | ||
fieldOfView: 60 * viewport._scaleF | ||
} | ||
} | ||
|
||
OrbitCameraController { | ||
origin: originNode | ||
camera: cameraNode | ||
xInvert: true | ||
yInvert: false | ||
xSpeed: 0.5 * (viewport.width / viewport.height) * ySpeed // equation made up to keep horizonal moves as natural as possible | ||
ySpeed: (1024 / viewport.height) / 10 * viewport._scaleF // All parameters chosen empirically. | ||
} | ||
|
||
MouseArea { | ||
anchors.fill: parent | ||
|
||
onWheel: function(wheel) { | ||
var scaleF = viewport._scaleF - wheel.angleDelta.y / 120 * 0.05 | ||
|
||
if (scaleF > 2) | ||
scaleF = 2 | ||
if (scaleF < 0.5) | ||
scaleF = 0.5 | ||
|
||
viewport._scaleF = scaleF | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.