Hi, I’ve tried again with PCVR foveated rendering to no success.
I’ve tried a fresh URP project (Note: I need HDRP foveation), and still can’t get it to work. My HDRP project is on 6000.0.54 DX12. The URP test was 6000.3.2 and is DX12 by default.
When enabling SRP Foveation with the “FoveationStarter” script I took from the Unity docs (and following the other brief setup instructions, URP): Foveated rendering in OpenXR | OpenXR Plugin | 1.17.0-pre.1.
The following log is spammed:
Use of GfxDeviceD3D12::DispatchComputeProgram is forbidden during a render pass!
The Editor log also contains this:
Features requested to be enabled: (1)
[XR] [24964] [05:06:31.951][Info ] Foveated Rendering: Version=1, Company="Unity", Extensions="XR_UNITY_foveation XR_FB_foveation XR_FB_foveation_configuration XR_FB_swapchain_update_state XR_FB_foveation_vulkan XR_META_foveation_eye_tracked XR_META_vulkan_swapchain_create_info"
[XR] [24964] [05:06:31.951][Info ]
[XR] [24964] [05:06:31.951][Info ] Requested feature extensions not supported by runtime: (6)
[XR] [24964] [05:06:31.951][Info ] XR_FB_foveation: Feature="Foveated Rendering": Version=1, Company="Unity"
[XR] [24964] [05:06:31.951][Info ] XR_FB_foveation_configuration: Feature="Foveated Rendering": Version=1, Company="Unity"
[XR] [24964] [05:06:31.951][Info ] XR_FB_swapchain_update_state: Feature="Foveated Rendering": Version=1, Company="Unity"
[XR] [24964] [05:06:31.951][Info ] XR_FB_foveation_vulkan: Feature="Foveated Rendering": Version=1, Company="Unity"
[XR] [24964] [05:06:31.951][Info ] XR_META_foveation_eye_tracked: Feature="Foveated Rendering": Version=1, Company="Unity"
[XR] [24964] [05:06:31.951][Info ] XR_META_vulkan_swapchain_create_info: Feature="Foveated Rendering": Version=1, Company="Unity"
[XR] [24964] [05:06:31.951][Info ]
[XR] [24964] [05:06:31.951][Info ] System Properties: Name="Oculus Quest2", VendorId=-11714
[XR] [24964] [05:06:31.951][Info ] System Graphics Properties: MaxWidth=16384, MaxHeight=16384, MaxLayers=16
[XR] [24964] [05:06:31.951][Info ] System Tracking Properties: OrientationTracking=True, PositionTracking=True
[XR] [24964] [05:06:31.951][Info ]
[XR] [24964] [05:06:31.951][Info ] ==== OpenXR API Spec Version ====
[XR] [24964] [05:06:31.951][Info ]
[XR] [24964] [05:06:31.951][Info ] XrInstance Created with OpenXR API Version: 1.0.34
With strength 1 or 0, there is no difference in VR.
There is mixed messaging from Unity as to whether foveated rendering is supported in HDRP; and following the documentation, I can’t get it working in either URP or HDRP (though HDRP support is what I need).
CharlesWard stated in June 2024 that foveated rendering works in PCVR: OpenXR foveated rendering in Unity 6 - #4 by CharlesWard.
Attempting to tag @CharlesWard as he may be the only person who knows how this works. It would be super helpful if you could provide instructions or a working sample project (for HDRP please). Thanks!
EDIT: Just noticed that Charles Ward’s profile says he hasn’t posted or been seen since June 2024… in that case, I really hope someone else at Unity can explain this.
EDIT 2: Opened bug report IN-130668.