Qt Quick 3D - 次数に依存しない透過の例
Qt Quick 3Dにおけるオーダー非依存透過のデモンストレーション。
OITサンプルは、Qt Quick 3Dでオーダーに依存しない透明性を有効にする方法を示しています。さまざまな方法でこの機能を使用する複数の例があります。
例
Particles の例では、透明なパーティクルでの OIT の使用を示しています。インスタンス化の例は、インスタンス化を使用してレンダリングされたモデルでのOITの使用を示しています。Blend Value Correctnessの例では、透明オブジェクトのソート問題を示し、OITを有効にして問題を修正できます。
OITの制御
OITは、SceneEnvironment オブジェクトによって制御されます。値はユーザーインターフェイスでの選択に基づいて設定されます。
oit method はデフォルトでOITNone
に設定され、この機能を無効にします。また、OITWeightedBlended
に設定すれば、OITを有効にすることができます。
environment: SceneEnvironment { clearColor: "#000000" backgroundMode: SceneEnvironment.Color antialiasingMode: AppSettings.antialiasingMode antialiasingQuality: AppSettings.antialiasingQuality oitMethod: SceneEnvironment.OITWeightedBlended }
© 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.