Prof-Butts / xwa_ddraw_d3d11

Direct3D 11 implementation of DDraw.dll for XWA with VR support and New Shaders
MIT License
6 stars 4 forks source link

Matrix-based headtracking in CockpitLook for pose_corrected_headtracking mode #54

Closed morallo closed 3 years ago

morallo commented 3 years ago

Update submodule to the new matrix-based headtracking

If pose_corrected_headtracking in CockpitLook.cfg, full rotation (yaw,pitch,roll) is applied in CockpitLook directly by matrix multiplication. This gets rid of gimbal lock problems and tracking distortion close to yaw=+-90deg

In this mode also the pose prediction correction is applied, with WaitGetPoses() called in ddraw.dll::Directe3Device::Execute(), much closer to the start of the GPU work. This improves performance and latency.

KNOWN ISSUE that needs fixing: the target reticle is not properly located. However, if pose_corrected_headtracking=0 everything should work exactly like before so it should be safe to merge.