Scaleform Objects do not show up in VR

Discussion related to Mission design and creation.
Locked
User avatar
Raynald1
Posts: 89
Joined: Mon Jun 24, 2013 10:11 pm
Location: Prescott, AZ
Contact:

Scaleform Objects do not show up in VR

Post by Raynald1 »

None of the Scaleform objects show up in P3D native VR.
They do show up when I am using FlyInside but it would be nice not to have to go through a third party.
I am using Scaleform PanelWindows to display warnings and checklists and P3D PointOfInterest.
They are on the 2D window but not inside the Oculus headset.

Here is a screenshot of my desktop:
Image

Ray
Ray Bedard
True Course Simulations
AlexReynolds1
Posts: 8
Joined: Fri Apr 06, 2018 12:37 am

Re: Scaleform Objects do not show up in VR

Post by AlexReynolds1 »

Hi Ray,

How did you get the checklist items to appear within the sim and VR ?

I've been trying to work this out but having great difficulty.

Thanks,
Alex
SimJet Flight Training | Lead Training Systems Developer
User avatar
Raynald1
Posts: 89
Joined: Mon Jun 24, 2013 10:11 pm
Location: Prescott, AZ
Contact:

Re: Scaleform Objects do not show up in VR

Post by Raynald1 »

Alex

1. I make an image of the checklist and save it as a .jpg
2. I import it into Flash to save it as a .swf file.
3. I use OpenWindowAction and CloseWindowAction with a ScaleformPanelWindow to open and close the checklist.

You just have to be a bit careful to match the size of the .swf in the OpenWindowAction to make sure it shows up correctly.

Ray
Ray Bedard
True Course Simulations
User avatar
Rob McCarthy
Lockheed Martin
Posts: 3703
Joined: Wed Aug 24, 2011 1:37 pm

Re: Scaleform Objects do not show up in VR

Post by Rob McCarthy »

Hi Ray,

Using a ScaleformObject instead of a ScaleformPanelWindow should give you the desired behavior in VR.

Regards,
Rob McCarthy
Rob McCarthy
Prepar3D® Core Lead
User avatar
Raynald1
Posts: 89
Joined: Mon Jun 24, 2013 10:11 pm
Location: Prescott, AZ
Contact:

Re: Scaleform Objects do not show up in VR

Post by Raynald1 »

Rob

It worked. Thanks!!!
Any trick to make the PointOfInterest compass appear as well?

Ray
Ray Bedard
True Course Simulations
User avatar
Rob McCarthy
Lockheed Martin
Posts: 3703
Joined: Wed Aug 24, 2011 1:37 pm

Re: Scaleform Objects do not show up in VR

Post by Rob McCarthy »

Hi Ray,

ScaleformObjects are rendered in the world instead of using a 2D panel window which is why they work in VR. Currently UI and Panel windows will not display in VR by default. For windows to render in VR they require a 3D position which is settable using the PDK. The HmdSample in the SDK shows how to use this. Unfortunately this would require work outside of SimDirector.

Regards,
Rob McCarthy
Rob McCarthy
Prepar3D® Core Lead
User avatar
Raynald1
Posts: 89
Joined: Mon Jun 24, 2013 10:11 pm
Location: Prescott, AZ
Contact:

Re: Scaleform Objects do not show up in VR

Post by Raynald1 »

Rob

Thanks for the explanation. I will give it a try.
Ray
Ray Bedard
True Course Simulations
User avatar
Raynald1
Posts: 89
Joined: Mon Jun 24, 2013 10:11 pm
Location: Prescott, AZ
Contact:

Re: Scaleform Objects do not show up in VR

Post by Raynald1 »

I was able to put in the alerts and checklists in the VR game using Scaleform Objects.

However, I was not able to get the POI in the 3D space despite many hours of programming.
It would be a great addition to the VR space if you could incorporate in a future release.

Thanks for the help.
Ray

Image
Ray Bedard
True Course Simulations
Locked