sencercoltu / openvr-customhmd

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

Some Game Image Upside Down in Direct Mode #3

Open vicdxxx opened 7 years ago

vicdxxx commented 7 years ago

Hi, buddy! So hard work you are, I see you update github frequently. And I got my direct mode follow you code. Thanks again. You don't know how appreciate I shall. There is a new issue coming, I think maybe you know some clue. My DirectMode using IVRDriverDirectModeComponent class in Jan31 openvr driver version, met a problem that some game showed upside down in HMD. I found Unity games showed and Unreal games don't show. Other games may show(I test one, it shows upside down). But the Steam driver seems all normal. I find Steam official update logs said they fixed it in 2015 july, while no solution given. Any suggestion is highly appreciate.

sencercoltu commented 7 years ago

A wild guess would be to check and update the texture bounds parameter in the IVRDirectModeComponent::SubmitLayer function. But to be honest, I don't even know what the parameter is for. I switched to the VirtualDisplay component which already presents the final backbuffer, always same pixelformat and orientation.