Top/Devel/OculusRift/色収差やビネット効果を無効にする

色収差やビネット効果を無効にする の変更点はてなブックマーク


公式フォーラムにて色収差やビネット効果を無効にする方法が紹介されていたので試してみました。 

印刷物へのスクリーンショットの掲載時や他の画像との合成の際などに利用できるかもしれません。

*手順
下記のDisableDistortion.csのようなスクリプトを作って、ゲームオブジェクトにアタッチする。

#code(,nonumber,nooutline){{
using UnityEngine;
using Ovr;

public class DisableDistortion : MonoBehaviour {

    void Start()
    {
        OVRManager.display.distortionCaps &= ~(uint)DistortionCaps.Chromatic;
        OVRManager.display.distortionCaps &= ~(uint)DistortionCaps.Vignette;
    }
}
}}

~
Chromaticの行が色収差オフ、
Vignetteの行がビネット効果オフのためのコードです。

*デフォルト
#ref(distortion01.png,nothumb)

*色収差オフ
#ref(distortion02.png,nothumb)

*色収差オフ + ビネット効果(画像の周囲を暗くする効果)オフ
#ref(distortion03.png,nothumb)


*参考
-[[Can I disable or reduce the default chromatic aberration | Unity Integration | Oculus VR Forums>https://forums.oculus.com/viewtopic.php?f=37&t=18383&p=232945#p232945]]
-[[Oculus Unity Integration: Package Ovr>https://developer.oculus.com/doc/0.4.4-unity/namespace_ovr.html#a9247d003574f28552e21a8559eb55a7f]]

*Amazon
#amazon(B0199DNJHO,left)
#amazon(B00WMCTJW4,left)
#amazon(4798137464,left)
#amazon(479737490X,left)
#amazon(B012VRQX4G,left)
#amazon(B0058QFZYC,left)
#amazon(4091848184,left)


差分 一覧