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

Jitter from cockpit look #40

Closed morallo closed 2 years ago

morallo commented 3 years ago

When in VR, while moving the view with the headset there is some shake of the models specially visible in the cockpit and also in the ship markers (brackets).

There is also some jitter in non-VR mode, when cockpit inertia is enabled. When moving around and the inertia kicks in, there is some noticeable jitter. However, it is much less disturbing in 2D mode, with a lower FOV.

There is no jitter if all types of headtracking and inertia are disabled.

This makes me think that the jitter is related to the hack used to override the camera position/direction in Hook_XWACockpitLook

Prof-Butts commented 3 years ago

Yes, I also think this jitter is happening because the cockpit shake was hijacked to implement positional tracking. I'm taking a deep look at this problem now.

morallo commented 3 years ago

I am working on improving the jitter and the performance in https://github.com/morallo/xwa_ddraw_d3d11/tree/pose_prediction_jitter_fix

Some of the experimental changes have been merged into master. Still not included in any betas but if you compile from the current master, you can enable it by setting a variable in CockpitLook.cfg:

pose_corrected_headtracking = 1

morallo commented 2 years ago

Fixed in #51