mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-23 05:56:36 +02:00
[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:
parent
fbfb7d6143
commit
63ffb20819
5 changed files with 82 additions and 9 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue