Qt Quick 3D - 順序に依存しない透明度の例
Qt Quick の3Dにおける順序独立透過(OIT)の動作を示しています。

このOITサンプルでは、Qt Quick 3Dで順序非依存の透明度を有効にする方法を示しています。この機能を活用してさまざまな方法で実装した複数の例が含まれています。
サンプル
「パーティクル」の例では、透明なパーティクルでの OIT の使用法を示しています。「インスタンス化」の例では、インスタンス化を使用してレンダリングされたモデルでの OIT の使用法を示しています。「ブレンド値の正確性」の例では、透明なオブジェクトに関するソート上の問題を示し、OIT を有効にしてこの問題を解決する方法を説明しています。
OITの制御
OITは「SceneEnvironment 」オブジェクトによって制御されます。値は、ユーザーインターフェースでの選択に基づいて設定されます。
oit method は、デフォルトでOITNone に設定されており、この機能は無効になっています。OITを有効にするには、OITWeightedBlended に設定します。
environment: SceneEnvironment {
clearColor: "#000000"
backgroundMode: SceneEnvironment.Color
antialiasingMode: AppSettings.antialiasingMode
antialiasingQuality: AppSettings.antialiasingQuality
oitMethod: SceneEnvironment.OITWeightedBlended
}© 2026 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.