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

Lildreas avatar image
Lildreas asked Lildreas commented

How to reset the VR VIEW via SimVars (like hitting SPACE)?

I need to reset the VR view using a SimVar (the same as hitting "SPACE" does). I only had success with re-setting the normal cockpit view in C++ using:

SimConnect_AddToDataDefinition(hSimConnect, DEFINITION_RESET_VIEW, "CAMERA REQUEST ACTION", "enum"); 
testValue = 1;
SimConnect_SetDataOnSimObject(hSimConnect, DEFINITION_RESET_VIEW, SIMCONNECT_OBJECT_ID_USER, NULL, 0, sizeof(testValue), &testValue);

But I wasn't able to find anything like this to reset the VR VIEW, tested it with "CAMERA ACTION COCKPIT VIEW RESET" and the bool = true, too, but it didn't work.

Background: I'm using FS2020 as an IG for our own flight simulator with real instrument panels, they are visible using the cameras of the Varjo XR-3. And I need to match the virtual with the real world, so I have to programmatically reset the VR view (the pilot is not using the FS2020 controls, we have our own sidesticks going directly into our FDM/FCL.

Anyone knows how to re-set VR view programmatically via SimVars? Thanks!

Best from Germany

Andreas

devmodesimconnecthelpdevsc++
10 |10000

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

1 Answer

·
FlyingRaccoon avatar image
FlyingRaccoon answered Lildreas commented

Hello @Lildreas

We have reproduced the problem.
Setting CAMERA REQUEST ACTION to 1 should work but the binding with the VR recenter call has not been done.
This will be fixed.

Thank you for reporting the issue.

Regards,
Sylvain

1 comment
10 |10000

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

Hi Sylvain,

thanks for this lightning-fast checking and the positive answer! This helps a lot!
Best
Andreas

0 Likes 0 ·

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 19.1 MiB each and 23.8 MiB total.