[ui] Viewer3D: introduce new 3D media loading backend

This commit adds several components to centralize and extend 3D media loading. They are not yet integrated into Viewer3D. The entry point to this system is the MediaLibrary component that:
    * can load N medias based on a filepath or load-and-watch node attributes
    * provides a cache mechanism to instant-reload medias that were unloaded under certain conditions
    * gives access to statistics (vertex/face/camera/textureCount) through a unified interface
This commit is contained in:
Yann Lanthony 2018-11-23 21:58:30 +01:00
parent 2f50587904
commit 109b980ae5
7 changed files with 587 additions and 0 deletions

View file

@ -0,0 +1,16 @@
pragma Singleton
import QtQuick 2.9
/**
* Viewer3DSettings singleton gathers properties related to the 3D Viewer capabilities, state and display options.
*/
Item {
readonly property Component abcLoaderComp: Qt.createComponent("AlembicLoader.qml")
readonly property bool supportAlembic: abcLoaderComp.status == Component.Ready
readonly property Component depthMapLoaderComp: Qt.createComponent("DepthMapLoader.qml")
readonly property bool supportDepthMap: depthMapLoaderComp.status == Component.Ready
// Rasterized point size
property real pointSize: 4
}