[ui][3D] add EnvironmentMapEntity to display equirectangular images

Load EXR files in the 3D viewport as environment maps mapped on a sphere "attached"  to the camera.
* improve exr loading strategy by considering depthmaps and env maps
* update to DepthMapEntity 2.1 (required to get the loading status)
This commit is contained in:
Yann Lanthony 2019-12-12 19:10:08 +01:00
parent fbfb7d6143
commit 63ffb20819
No known key found for this signature in database
GPG key ID: 519FAE6DF7A70642
5 changed files with 82 additions and 9 deletions

View file

@ -16,6 +16,9 @@ Entity {
property bool pickingEnabled: false
readonly property alias count: instantiator.count // number of instantiated media delegates
/// Camera to consider for positionning
property Camera camera: null
/// True while at least one media is being loaded
readonly property bool loading: {
for(var i=0; i<m.mediaModel.count; ++i) {
@ -173,6 +176,7 @@ Entity {
// source based on currentSource + "requested" property
readonly property string finalSource: model.requested ? currentSource : ""
camera: root.camera
renderMode: root.renderMode
enabled: visible