OrthographicCamera QML Type

定义带有正投影矩阵的相机。更多

Import Statement: import QtQuick3D
Inherits:

Camera

属性

详细说明

Camera 定义了如何将三维场景的内容投射到二维表面(如View3D )上。一个场景至少需要一个Camera 才能将其内容可视化。

可以像场景中其他空间Node 一样定位和旋转CameraNode 的位置和方向决定了Camera 在场景中的位置和朝向。Camera 的默认方向是向前矢量沿负 Z 轴指向,向上矢量沿正 Y 轴指向。

OrthographicCamera 是一种平行投影Camera ,其中平行线保持平行,物体的感知比例不受其与Camera 之间距离的影响。此类Camera 的典型用例是 CAD(计算机辅助设计)应用和制图。

下面的示例在场景中[0, 200, 300]处创建了一个正交摄影机,俯仰角为 30 度。

OrthographicCamera {
    position: Qt.vector3d(0, 200, 300)
    eulerRotation.x: -30
}

另请参阅 Qt Quick 3D - View3D 示例PerspectiveCamera,FrustumCameraCustomCamera

属性文档

clipFar : real

该属性定义了OrthographicCamera 圆锥体的远夹平面。距离Camera 远于远夹平面的几何体将不可见。

默认值为 10000.0。

另请参阅 clipNear


clipNear : real

该属性定义了OrthographicCamera 的近剪辑平面。比近剪辑平面更靠近Camera 的几何体将不可见。

默认值为 10.0。

另请参阅 clipFar


horizontalMagnification : real

此属性用于保存OrthographicCamera 的球面水平放大率。

默认值为 1.0。

另请参阅 verticalMagnification


verticalMagnification : real

该属性用于保存OrthographicCamera 的缩放比例。

默认值为 1.0。

另请参阅 horizontalMagnification


© 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.