0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[Unity] VRでPost Processing StackのVignetteが2分割されてしまう時の対処法

Last updated at Posted at 2020-04-08

#はじめに
ゲームなどでダメージを受けたときに周りが赤くなる表現をVRで作ろうと思ったところ,思ったようにうまくいかず小一時間ほどはまったので共有します.

#環境
windows10
unity2019 1.4f1
Oculus Integration ver1.44
Oculus rift s

#問題のシーン
ダメージ2分.PNG

周囲だけ赤くしようとしたはずが2分される

#解決策
・PlaySettingを開いてXRSettingにあるStereoRenderingModeをマルチパスからシングルパスにする
シングルパス.PNG

###マルチパスのままで解決したい場合
・Packag/PostProcessing/RunTime/PostProcessingRenderer.csを開く
・48行目のnumberOfEyesを2から1に変更する


if (stereoRenderingMode == StereoRenderingMode.SinglePass)
                    {
                        //numberOfEyes = 2;
                        numberOfEyes = 1;
                        xrDesc.width /= 2;
                        xrDesc.vrUsage = VRTextureUsage.None;
                    }

#設定後
ダメージ.PNG

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?