0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Meta Quest3 MRアプリ開発 - Post Processing編

Last updated at Posted at 2025-08-03

はじめに

BloomなどのPostprocessを使用するためにHDR設定を有効にすると、パススルーの映像が真っ黒になってしまう問題がありました。

Unity6ではこの問題が解消されているようです。

本記事はこちらの記事の続きとして設定方法を記載します。
Quest向けパススルーアプリの基本的な設定方法はこちらのを参照してください。

開発環境

Unity 6000.0.48f1
Unity Open XR Meta 2.2.0
OpenXR Plugin 1.15.0
XR Interaction Toolkit 3.2.0

プロジェクト設定

  1. MainCameraのPostProcessingをON
    image.png

  2. MainCameraのHDR設定
    Camera > Output > HDR Renderingは "Render Pipline Asset" の設定を使用する。
    image.png

  3. URPのQuality > HDR Precisionを64bitにする
    image.png

  4. URPのPostProcessing-AlphaProcessingをON
    これをしないと背景が真っ黒になります
    image.png

Bloomの設定

Post ProcessingでBloomを追加する

まず、Hierarchyを右クリックし、Volume > Global を選択。
Global Volumeを追加します。

image.png

Global Volume GameObjectにあるVolumeコンポーネントにて、NewボタンでVolume Profile Assetを作成。
image.png

Add Overrideで Post-processing > Bloom を選択
image.png

Bloomの設定値の例。Intensityの値が強さになるので、0より大きな値を設定してください(ここでは1)
image.png

光るCubeを追加する

次に、光らせるGameObjectを配置します。

Materialを作成。ShaderはUniversal RenderPipline/Lit。
Emissionにチェックを入れ、Emmision MapのIntensityを上げるとCubeが光ります。

image.png

image.png

そこで、Emission ColorのIntensityを一定周期で変更し、HDRが有効になっている事を確認します。

image.png

Script Graphで_EmissionColorを変更。
値の変化が見た目で分かりやすいように値に従って回転させてみました。

Bloomの広がり具合の変化でHDRが有効になっている事が分かります。

課題

パススルーの映像はスリープすると停止し、スリープから復帰してもパススルーは復帰せず真っ暗のままになっています。
解決方法が分かりましたら追記します。↓追記しました。

2025/09/18追記

Unity Open XR Meta 2.2.0 での不具合です。
有志によるパッチで対応可能です
https://github.com/mschult2/meta-passthrough-patch
image.png

または、2.1.1へダウングレードすれば本不具合は起きません。
https://discussions.unity.com/t/app-losing-passthrough-access-when-putting-down-headset/1667533

おわりに

HDRが使えると表現の幅が広がって嬉しいです。
今回のプロジェクトはこちらのレポジトリで共有しています。

GitHub Repository

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?