LodManager QML Type

处理详细程度可见性更改的管理器。更多

Import Statement: import QtQuick3D.Helpers
Inherits:

Node

属性

详细说明

此辅助器提供了一种处理细节级别变化的方法。它的工作原理是根据与摄像机的距离改变其子节点的可见性。阈值由用户使用距离列表确定。第一个距离是管理器从显示第一个子节点到显示第二个子节点的阈值。第一个子图像应该是最详细的,因为当摄像机靠近时就会显示它。如果设置了fadeDistance ,管理器会通过改变模型的不透明度在模型之间交叉渐变。渐变只对模型节点有效。

View3D {
    LodManager {
        camera: camera
        distances: [50, 100]
        fadeDistance: 10

        Model { ... }
        Model { ... }
        Model { ... }
    }
}

属性文档

指定计算子节点距离的摄像机。


distances : list

指定细节级别变化时的阈值。第一个数字是第一个节点变为第二个节点时的距离,等等。


fadeDistance : real

指定细节级别之间开始交叉淡入淡出的距离。


© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.