Comments on: New VR APIs Are Available Now https:/2018/04/new-vr-apis-available-now/ Developer resources for the X-Plane flight simulator Mon, 23 Apr 2018 12:36:14 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: Tyler Young https:/2018/04/new-vr-apis-available-now/#comment-28886 Mon, 23 Apr 2018 12:36:14 +0000 http://developer.x-plane.com/?p=8459#comment-28886 In reply to sparker.

No… there’s no support currently for positioning a newly created window anywhere but attached to the HMD. Your best bet is to simply reconfigure the widget window that existed previously (rather than creating a new one).

]]>
By: sparker https:/2018/04/new-vr-apis-available-now/#comment-28884 Mon, 23 Apr 2018 12:12:49 +0000 http://developer.x-plane.com/?p=8459#comment-28884 In reply to sparker.

Here is my report and have the Xchecklist widget working with one issue remaining but think I know the issue,

When we use the “Next” or “Previous” buttons to get another checklist page we use destroy widget and then create a new widget with the new info for the updated checklist page.

The result of that is the updated checklist is attached to your headset so wondered if there was a way to remember where it was and put the updated checklist there? That is what I was doing with the X-Plane 11 new GUI windows but they are solid and the widget Xchecklist is translucent which is what I am looking for.

Thanks Bill

]]>
By: sparker https:/2018/04/new-vr-apis-available-now/#comment-28682 Fri, 20 Apr 2018 16:57:02 +0000 http://developer.x-plane.com/?p=8459#comment-28682 In reply to Tyler Young.

Thankyou that got it working and will be doing further testing and let you know how it goes.

]]>
By: Tyler Young https:/2018/04/new-vr-apis-available-now/#comment-28676 Fri, 20 Apr 2018 16:10:55 +0000 http://developer.x-plane.com/?p=8459#comment-28676 In reply to sparker.

XPGetWidgetUnderlyingWindow() returns the XPLMWindowID you need to pass to all the window manipulation APIs—passing a widget ID won’t do it.

You want something like this:

XPLMWindowID window = XPGetWidgetUnderlyingWindow(xcvr_widget_window);
XPLMSetWindowIsVisible(window, 1);
]]>
By: sparker https:/2018/04/new-vr-apis-available-now/#comment-28622 Fri, 20 Apr 2018 02:15:20 +0000 http://developer.x-plane.com/?p=8459#comment-28622 I have tried to get Xchecklist window into VR but not having any luck. I call this with a menu selection of open checklist.

void xcvr_create_gui_widget_window() {
XPGetWidgetUnderlyingWindow(xcvr_widget_window);
vr_is_enabled = XPLMGetDatai(g_vr_dref);
XPLMSetWindowIsVisible(xcvr_widget_window,1);
XPLMSetWindowPositioningMode(xcvr_widget_window, vr_is_enabled ? xplm_WindowVR : xplm_WindowPositionFree, -1);
}

Does this look like it should work or should I file a bug report?

Thanks Bill

]]>
By: Jack https:/2018/04/new-vr-apis-available-now/#comment-28388 Mon, 16 Apr 2018 21:45:40 +0000 http://developer.x-plane.com/?p=8459#comment-28388 Brilliant, Tyler!

Any chance the SDK could be formally published via Git/Github?

]]>
By: Tyler Young https:/2018/04/new-vr-apis-available-now/#comment-28379 Mon, 16 Apr 2018 20:09:21 +0000 http://developer.x-plane.com/?p=8459#comment-28379 In reply to sparker.

Excellent! 🙂

]]>
By: sparker https:/2018/04/new-vr-apis-available-now/#comment-28377 Mon, 16 Apr 2018 19:40:21 +0000 http://developer.x-plane.com/?p=8459#comment-28377 Hi Tyler,

Thankyou for the updated docs as it helped me update Xchecklist that now resizes in VR just like it did in 2d.

Bill

]]>