plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.

Please take a moment to read the platform’s guidelines before you get started!

question

thealx avatar image
thealx asked

Get VR/TrackIR cockpit camera pitch and yaw values

I have tried to ask the same question on the main MSFS forum but looks like it is too specific, maybe here I can get some clues.

I’m trying to simulate a helmet-mounted display for my jetpack project (it’s like a HUD glass but always in front of the cockpit camera).

I have partial success - by using simvars CAMERA GAMEPLAY PITCH YAW:0 and CAMERA GAMEPLAY PITCH YAW:1 I am able to rotate dynamic texture quite smoothly, but with mouse movements only. When I use a head tracker or VR, this variable does not react to head pitch/yaw changes. It doesn't seem to be a bug - during VR mode the mouse still works, so what I really miss - another variable specifically for tracking device rotation values. Are there any? Or tracking angles can be added to the CAMERA GAMEPLAY PITCH YAW value - not perfect but fair solution.

Years ago I worked as a dev on a helicopter sim, where we had an actual node in the cockpit following the camera, so it was possible to add a child element to it and then the child always rotated/moved together with the camera, but that will not work in MSFS as I can see. Maybe alternative methods of rendering exist that can do the same job - draw dynamic data on the screen in a fixed position. Any suggestions are welcome.

aircraft
10 |10000 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.