OrthographicCamera QML Type
定义带有正投影矩阵的相机。更多
Import Statement: | import QtQuick3D |
Inherits: |
属性
- clipFar : real
- clipNear : real
- horizontalMagnification : real
- verticalMagnification : real
详细说明
Camera 定义了如何将三维场景的内容投射到二维表面(如View3D )上。一个场景至少需要一个Camera 才能将其内容可视化。
可以像场景中其他空间Node 一样定位和旋转Camera 。Node 的位置和方向决定了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,FrustumCamera 和CustomCamera 。
属性文档
clipFar : real |
clipNear : real |
horizontalMagnification : real |
verticalMagnification : 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.