sencercoltu / openvr-customhmd

Generic OpenVR Driver, STM32 based HeadTracker and wireless motion controller firmware.
57 stars 15 forks source link

UE4 game can't display normally using the driver implemented IVRDriverDirectModeComponent #7

Open bsufo111 opened 7 years ago

bsufo111 commented 7 years ago

Hi sencercoltu. I really learned a lot from this project. So appreciate for this. I implemented the IVRDriverDirectModeComponent in my driver following your code. With the direct mode, the vrmonitor and Unity games run normally, but it seems there are some problems for UE4 games. I see when launching the UE4 game, CreateSwapTextureSet will be called with the texture format to DXGI_FORMAT_B8G8R8A8_UNORM_SRGB, different from the vrmonitor and Unity games which using DXGI_FORMAT_R8G8B8A8_UNORM_SRGB. The UE4 game texture can't be displayed and I even can't save the UE4 texture to file with the system call D3DX11SaveTextureToFile. Did you ever met similar issue before? Do you have any idea for this? Thanks in advance.

sencercoltu commented 7 years ago

@bsufo111 Hi. I just moved to a new place, after unboxing my computer stuff I'll look into this.