# Ray Tracing in a VR Application

**URL:** <https://forums.unrealengine.com/t/ray-tracing-in-a-vr-application/786319>\
**Category:** Rendering\
**Tags:** SteamVR, Ray-Tracing, unreal-engine, OpenXR, Desktop-VR\
**Created:** [March 8, 2023, 11:50am UTC](https://forums.unrealengine.com/t/ray-tracing-in-a-vr-application/786319 "2023-03-08T11:50:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![banished\_angel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/banished_angel/32/625614_2.png) [@banished\_angel](https://forums.unrealengine.com/u/banished_angel)\
**Post date:** [March 8, 2023, 11:50am UTC](https://forums.unrealengine.com/t/ray-tracing-in-a-vr-application/786319/1 "2023-03-08T11:50:45Z")

</div>

Hello everyone,

I have a desktop VR application. I want to enable DirectX12 and ray tracing. If the application uses OpenXR, it crashes at random moments with an error the cause of which I couldn’t find. When it uses SteamVR, it seems to be working. I haven’t had any crash in this case. However, the rendering with SteamVR is slower, and I’d rather use OpenXR. I’ve tried both UE4.27 and UE5.1 in a template VR project. I’m attaching screenshots that show where the application broke.

Has anyone had the same problem? Maybe anyone have a VR project with ray tracing and OpenXR and could provide their project settings? I’ll be grateful for any help.

Best regards,  
Alexander Temnyakov

 ![crash-ue4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/1/9/819f799c575653e1a91932f41f61dc775ea501f8.jpeg)

 ![crash-ue5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/0/7/207e728e6169c734c2af9bd245f31ba654a49894.jpeg)
