FrustumCamera QML Type
PerspectiveCamera をカスタムフラスタムで定義します。詳細...
Import Statement: | import QtQuick3D |
Inherits: |
プロパティ
詳細説明
Camera は、3D シーンのコンテンツが、View3D のような 2D サーフェスにどのように投影されるかを定義します。シーンのコンテンツを視覚化するには、少なくとも 1 つのCamera が必要です。
シーン内の他の空間Node のように、Camera の位置と回転が可能です。Node の位置と向きは、Camera がシーンのどこにあり、どの方向を向いているかを決定します。Camera のデフォルトの向きは、前方ベクトルが負の Z 軸を、上方ベクトルが正の Y 軸を指しています。
FrustumCamera タイプは、フラスタムの境界をカスタマイズできるPerspectiveCamera を提供します。これは、非対称のフラストラムを作成するのに便利です。
次の例では、シーン内の [0, 0, 100] に FrustumCamera を作成しています。near plane はカメラの 100 ユニット前、原点に配置されます。フラストゥムとニアプレーンの交点は、左下の角を [-5, -5] に、右上の角を [5, 5] に持つ矩形で与えられ、カメラから 1000 ユニット離れた [0, 0, -900] にあるfar plane と交わるまで続きます。
注: vertical field of view の角度は、カメラとnear plane の間の距離と、ニアプレーンのtop
とbottom
の間の長さの積である。
注: 上下または左右の値が非対称の場合、フラストラムの頂点が移動し、カメラの位置が効果的にオフセットされます。
FrustumCamera { position: Qt.vector3d(0, 0, 100) clipNear: 100 clipFar: 1000 top: 5 bottom: -5 left: -5 right: 5 }
PerspectiveCamera,OrthographicCamera,CustomCameraも参照 。
プロパティの説明
bottom : real |
bottom
の値は、ローカル座標でのカメラの位置に対するnear clip plane の底辺を指定します。
left : real |
left
の値は、ローカル座標におけるカメラの位置に対して、near clip plane の左を指定します。
right : real |
right
の値は、ローカル座標におけるカメラの位置に対して、near clip plane の右を指定します。
top : real |
top
の値は、ローカル座標におけるカメラの位置に対して、near clip plane の上部を指定します。
© 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.