Meshroom/meshroom/ui/qml/Viewer3D/DepthMapLoader.qml
Yann Lanthony 63ffb20819
[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)
2019-12-13 17:17:03 +01:00

14 lines
497 B
QML

import DepthMapEntity 2.1
/**
* Support for Depth Map files (EXR) in Qt3d.
* Create this component dynamically to test for DepthMapEntity plugin availability.
*/
DepthMapEntity {
id: root
pointSize: Viewer3DSettings.pointSize * (Viewer3DSettings.fixedPointSize ? 1.0 : 0.001)
// map render modes to custom visualization modes
displayMode: Viewer3DSettings.renderMode == 1 ? DepthMapEntity.Points : DepthMapEntity.Triangles
displayColor: Viewer3DSettings.renderMode == 2
}